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://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 == | ||
=== 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]] | ||
=== 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]] | ||
* [[ | * [[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
- TGA's Python Tutorial
- How to Call a Function at the End of a Turn
- Jon Shafer's Guide to Python in Civ4
- Sample Python Code
- BTS Python API
- Modding CvGameUtils
- How to Make Python Action Buttons
- Import Guide
- How to make a Python mod
- A guide to the API and basic Python modding
Files
Assets\Python
- CvAdvisorUtils
- CvCameraControls
- CvDebugTools
- CvDefineEditor
- CvDiplomacy
- CvEventManager
- CvGameUtils
- CvMagGeneratorUtil
- CvPerfTest
- CvQuestManager
- CvScreenUtils
- CvUtil
- DomPyHelpers
- PyHelpers
- ScreenImput
- vector
Assets\Python\_DebugTools
Assets\Python\EntryPoints
- CvAppInterface
- CvDebugInterface
- CvDiplomacyInterface
- CvEventInterface
- CvGameInterface
- CvGameInterfaceFile
- CvMapScriptInterface
- CvOptionScreenCallbackInterface
- CvPopupInterface
- CvRandomEventInterface
- CvScreensInterface
- CvScreenUtilsInterface
- CvTranslator
- CvUnitControlInterface
- CvWBInterface
- PbMain
Assets\Python\PitBoss
Assets\Python\pyHelper
Assets\Python\pyUnit
Assets\Python\pyWB
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.