Civ4 Python: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
 
(26 intermediate revisions by 15 users not shown)
Line 13: Line 13:
** [http://code.google.com/p/civ4-python-api/ Project @ Google Code]
** [http://code.google.com/p/civ4-python-api/ Project @ Google Code]
** [http://forums.civfanatics.com/showthread.php?t=238839 Forum Discussion]
** [http://forums.civfanatics.com/showthread.php?t=238839 Forum Discussion]
* [http://civilization4.net/files/modding/PythonAPI/ Warlords Python API]
* [http://forums.civfanatics.com/showthread.php?t=323805 Modding CvGameUtils]
* [http://forums.civfanatics.com/showthread.php?t=323805 Modding CvGameUtils]
* [http://forums.civfanatics.com/showthread.php?t=331001 How to Make Python Action Buttons]
* [http://forums.civfanatics.com/showthread.php?t=331001 How to Make Python Action Buttons]
* [[Civ4_Python/import|Import Guide]]
* [http://forums.civfanatics.com/showthread.php?t=374238 How to make a Python mod]
* [http://forums.civfanatics.com/showthread.php?t=472819 A guide to the API and basic Python modding]


== Files ==
== Files ==
'''*''' Warlords/BtS only


'''**''' BtS Only
=== Assets\Python ===
=== Assets\Python ===
* [[CvAdvisorUtils]]
* [[CvAdvisorUtils]]
Line 34: Line 34:
* [[CvScreenUtils]]
* [[CvScreenUtils]]
* [[CvUtil]]
* [[CvUtil]]
* [[DomPyHelpers]]**
* [[DomPyHelpers]]
* [[PyHelpers]]
* [[PyHelpers]]
* [[ScreenImput]]
* [[ScreenImput]]
Line 48: Line 48:
* [[CvEventInterface]]
* [[CvEventInterface]]
* [[CvGameInterface]]
* [[CvGameInterface]]
* [[CvGameInterfaceFile]]*
* [[CvGameInterfaceFile]]
* [[CvMapScriptInterface]]
* [[CvMapScriptInterface]]
* [[CvOptionScreenCallbackInterface]]
* [[CvOptionScreenCallbackInterface]]
* [[CvPopupInterface]]
* [[CvPopupInterface]]
* [[CvRandomEventInterface]]**
* [[CvRandomEventInterface]]
* [[CvScreensInterface]]
* [[CvScreensInterface]]
* [[CvScreenUtilsInterface]]
* [[CvScreenUtilsInterface]]
Line 69: Line 69:
* [[UnitEntity]]
* [[UnitEntity]]


NHgUAf  <a href="http://ncjlytphzhzm.com/">ncjlytphzhzm</a>, [url=http://dxxzqbxemsjn.com/]dxxzqbxemsjn[/url], [link=http://pgvzvrdgjvdu.com/]pgvzvrdgjvdu[/link], http://essomjbqvdaw.com/
=== Assets\Python\pyUnit ===
* [[CvUnitController]]


=== Assets\Python\pyWB ===
=== Assets\Python\pyWB ===
Line 78: Line 79:
* [[CvAdvisorScreen]]
* [[CvAdvisorScreen]]
* [[CvCivicsScreen]]
* [[CvCivicsScreen]]
* [[CvCorporationAdvisor]]**
* [[CvCorporationAdvisor]]
* [[CvDanQuayle]]
* [[CvDanQuayle]]
* [[CvDawnOfMan]]
* [[CvDawnOfMan]]
Line 84: Line 85:
* [[CvDomesticAdvisor]]
* [[CvDomesticAdvisor]]
* [[CvEraMovieScreen]]
* [[CvEraMovieScreen]]
* [[CvEspionageAdvisor]]**
* [[CvEspionageAdvisor]]
* [[CvExoticForeignAdvisor]]**
* [[CvExoticForeignAdvisor]]
* [[CvFinanceAdvisor]]
* [[CvFinanceAdvisor]]
* [[CvForeignAdvisor]]
* [[CvForeignAdvisor]]
Line 99: Line 100:
* [[CvPediaCivic]]
* [[CvPediaCivic]]
* [[CvPediaCivilization]]
* [[CvPediaCivilization]]
* [[CvPediaCorporation]]**
* [[CvPediaCorporation]]
* [[CvPediaFeature]]
* [[CvPediaFeature]]
* [[CvPediaHistory]]
* [[CvPediaHistory]]
Line 114: Line 115:
* [[CvPediaUnit]]
* [[CvPediaUnit]]
* [[CvPediaUnitChart]]
* [[CvPediaUnitChart]]
* [[CvRelitonScreen]]
* [[CvReligionScreen]]
* [[CvReplayScreen]]
* [[CvReplayScreen]]
* [[CvScreen]]
* [[CvScreen]]
* [[CvScreenEnums]]
* [[CvScreenEnums]]
* [[CvSpaceShipScreen]]**
* [[CvSpaceShipScreen]]
* [[CvTechChooser]]
* [[CvTechChooser]]
* [[CvTechSplashScreen]]
* [[CvTechSplashScreen]]
Line 129: Line 130:
* [[CvWorldBuilderDiplomacyScreen]]
* [[CvWorldBuilderDiplomacyScreen]]
* [[CvWorldBuilderScreen]]
* [[CvWorldBuilderScreen]]
* [[IconGrid]]**
* [[IconGrid]]
* [[TechTree]]**
* [[TechTree]]


=== Assets\Python\System ===
=== Assets\Python\System ===

Latest revision as of 21:19, 17 August 2012

Template

Please use the following template for python files.

Tutorials and Reference

Files

Assets\Python

Assets\Python\_DebugTools

Assets\Python\EntryPoints

Assets\Python\PitBoss

Assets\Python\pyHelper

Assets\Python\pyUnit

Assets\Python\pyWB

Assets\Python\Screens

Assets\Python\System

  • These files are mostly compiled python files that cannot be modified.


CvAdvisorUtilsCvCameraControlsCvDebugToolsCvDefineEditorCvDiplomacyCvEventManagerCvGameUtilsCvMagGeneratorUtilCvPerfTestCvQuestManagerCvScreenUtilsCvUtilDomPyHelpersPyHelpersScreenImputvector

_DebugTools; PitBoss:

AudioLogParserPbAdminPbWizard

EntryPoints:

CvAppInterfaceCvDebugInterfaceCvDiplomacyInterfaceCvEventInterfaceCvGameInterfaceCvGameInterfaceFileCvMapScriptInterfaceCvOptionScreenCallbackInterfaceCvPopupInterfaceCvRandomEventInterfaceCvScreensInterfaceCvScreenUtilsInterfaceCvTranslatorCvUnitControlInterfaceCvWBInterfacePbMain

pyHelper; pyUnit; pyWB:

PopupUnitUnitEntityCvUnitControllerCvWBDescCvWBPopups

Screens:

CvAdvisorScreenCvCivicsScreenCvCorporationAdvisorCvDanQuayleCvDawnOfManCvDebugInfoScreenCvDomesticAdvisorCvEraMovieScreenCvEspionageAdvisorCvExoticForeignAdvisorCvFinanceAdvisorCvForeignAdvisorCvGFCScreenCvHallOfFameScreenCvInfoScreenCvIntroMovieScreenCvMainInterfaceCvMilitaryAdvisorCvOptionsScreenCvPediaBonusCvPediaBuildingCvPediaCivicCvPediaCivilizationCvPediaCorporationCvPediaFeatureCvPediaHistoryCvPediaImprovementCvPediaLeaderCvPediaMainCvPediaProjectCvPediaPromotionCvPediaReligionCvPediaScreenCvPediaSpecialistCvPediaTechCvPediaTerrainCvPediaUnitCvPediaUnitChartCvReligionScreenCvReplayScreenCvScreenCvScreenEnumsCvSpaceShipScreenCvTechChooserCvTechSplashScreenCvTopCivsCvTutorialQuestScreenCvUNVictoryScreenCvVictoryMovieScreenCvVictoryScreenCvWonderMovieScreenCvWorldBuilderDiplomacyScreenCvWorldBuilderScreenIconGridTechTree

Note: this list is for Beyond the Sword 3.19; other versions may not have all these files.