Getting Started with Python

The great thing about Civilization IV using Python for most of its GUI and event system is that you don't need to do anything other than open up .py files in a text editor (such as notepad), edit them and save it. No compiling necessary.

Python files are located in Assets\Python. The base of this directory varies, as it can be the Civilization 4 root game directory, or a mod directory, but the layout of directories under Assets\Python shouldn't change.

Here's a look at the directories:

\…\Civilization 4\Assets\Python

|— EntryPoints
|— PitBoss
|— Screens
|— System
| |— email
| |— encodings
| `— wx
| |— build
| |— lib
| | |— colourchooser
| | |— editor
| | |— floatcanvas
| | |— masked
| | |— mixins
| | `— ogl
| |— py
| | `— tests
| `— tools
| `— XRCed
|— _DebugTools
|— pyHelper
|— pyUnit
`— pyWB

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License