Civ4 Python: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
(organized links to BTS Python API project and added GC project)
 
(44 intermediate revisions by 28 users not shown)
Line 1: Line 1:
== Template ==
Please use the following template for python files.
* [[Format for new Python pages]]
== Tutorials and Reference ==
== Tutorials and Reference ==


Line 9: 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=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]


== Commonly Edited Files ==
== Files ==


=== Assets\Python ===
* [[CvAdvisorUtils]]
* [[CvCameraControls]]
* [[CvDebugTools]]
* [[CvDefineEditor]]
* [[CvDiplomacy]]
* [[CvEventManager]]
* [[CvEventManager]]
* [[CvGameUtils]]
* [[CvGameUtils]]
* [[CvMagGeneratorUtil]]
* [[CvPerfTest]]
* [[CvQuestManager]]
* [[CvScreenUtils]]
* [[CvUtil]]
* [[DomPyHelpers]]
* [[PyHelpers]]
* [[ScreenImput]]
* [[vector]]
=== Assets\Python\_DebugTools ===
* [[AudioLogParser]]
=== Assets\Python\EntryPoints ===
* [[CvAppInterface]]
* [[CvDebugInterface]]
* [[CvDiplomacyInterface]]
* [[CvEventInterface]]
* [[CvGameInterface]]
* [[CvGameInterfaceFile]]
* [[CvMapScriptInterface]]
* [[CvOptionScreenCallbackInterface]]
* [[CvPopupInterface]]
* [[CvRandomEventInterface]]
* [[CvScreensInterface]]
* [[CvScreenUtilsInterface]]
* [[CvTranslator]]
* [[CvUnitControlInterface]]
* [[CvWBInterface]]
* [[PbMain]]
=== Assets\Python\PitBoss ===
* [[PbAdmin]]
* [[PbWizard]]
=== Assets\Python\pyHelper ===
* [[Popup]]
* [[Unit]]
* [[UnitEntity]]
=== Assets\Python\pyUnit ===
* [[CvUnitController]]
=== Assets\Python\pyWB ===
* [[CvWBDesc]]
* [[CvWBPopups]]
=== Assets\Python\Screens ===
* [[CvAdvisorScreen]]
* [[CvCivicsScreen]]
* [[CvCorporationAdvisor]]
* [[CvDanQuayle]]
* [[CvDawnOfMan]]
* [[CvDebugInfoScreen]]
* [[CvDomesticAdvisor]]
* [[CvEraMovieScreen]]
* [[CvEspionageAdvisor]]
* [[CvExoticForeignAdvisor]]
* [[CvFinanceAdvisor]]
* [[CvForeignAdvisor]]
* [[CvGFCScreen]]
* [[CvHallOfFameScreen]]
* [[CvInfoScreen]]
* [[CvIntroMovieScreen]]
* [[CvMainInterface]]
* [[CvMilitaryAdvisor]]
* [[CvOptionsScreen]]
* [[CvPediaBonus]]
* [[CvPediaBuilding]]
* [[CvPediaCivic]]
* [[CvPediaCivilization]]
* [[CvPediaCorporation]]
* [[CvPediaFeature]]
* [[CvPediaHistory]]
* [[CvPediaImprovement]]
* [[CvPediaLeader]]
* [[CvPediaMain]]
* [[CvPediaProject]]
* [[CvPediaPromotion]]
* [[CvPediaReligion]]
* [[CvPediaScreen]]
* [[CvPediaSpecialist]]
* [[CvPediaTech]]
* [[CvPediaTerrain]]
* [[CvPediaUnit]]
* [[CvPediaUnitChart]]
* [[CvReligionScreen]]
* [[CvReplayScreen]]
* [[CvScreen]]
* [[CvScreenEnums]]
* [[CvSpaceShipScreen]]
* [[CvTechChooser]]
* [[CvTechSplashScreen]]
* [[CvTopCivs]]
* [[CvTutorialQuestScreen]]
* [[CvUNVictoryScreen]]
* [[CvVictoryMovieScreen]]
* [[CvVictoryScreen]]
* [[CvWonderMovieScreen]]
* [[CvWorldBuilderDiplomacyScreen]]
* [[CvWorldBuilderScreen]]
* [[IconGrid]]
* [[TechTree]]
=== Assets\Python\System ===
* These files are mostly compiled python files that cannot be modified.
{{Civ4_Python_Files}}
[[Category:Civilization 4]]

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.