PythonCallbackDefines
The PythonCallbackDefines.xml file was added in the Beyond the Sword expansion to disable some unnecessary callbacks. A callback is a python function called from the SDK, and some callbacks were called often but did not actually do anything. This file allows you to disable or enable the callbacks listed in it.
All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values.
This page is missing information. Do not remove this notice until it is complete.
Tags
Headers
These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data.
Tag Name | Description |
---|---|
Civ4Defines | Begins and ends the file. Everything must go between these two tags |
Define | Begins and ends an individual python callback define |
Text
Tag Name | Description |
---|---|
DefineName | The python callback that is being defined in each entry |
Integers=
All of these tags have a numerical value. Though it sometimes can be negative, it usually is not.
Tag Name | Description |
---|---|
iDefineIntValue | Defines whether the game will use the callback, acts like a boolean |
Example
In the following example of code, please note that there is a specific order of all of the tags. You must list the tags in this order for the game to properly interpret your file.
<Define> <DefineName>USE_CAN_TRAIN_CALLBACK</DefineName> <iDefineIntVal>0</iDefineIntVal> </Define>