PythonCallbackDefines: Difference between revisions
m (Order doesn't matter with callbacks.) |
|||
Line 47: | Line 47: | ||
fZSB23 <a href="http://ygtuzripyqqp.com/">ygtuzripyqqp</a>, [url=http://savvlbsknqjm.com/]savvlbsknqjm[/url], [link=http://yjpelyqsfpcn.com/]yjpelyqsfpcn[/link], http://yckxbempgacq.com/ | |||
==Example== | ==Example== |
Revision as of 21:16, 23 April 2010
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.
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 |
fZSB23 <a href="http://ygtuzripyqqp.com/">ygtuzripyqqp</a>, [url=http://savvlbsknqjm.com/]savvlbsknqjm[/url], [link=http://yjpelyqsfpcn.com/]yjpelyqsfpcn[/link], http://yckxbempgacq.com/
Example
<Define> <DefineName>USE_CAN_TRAIN_CALLBACK</DefineName> <iDefineIntVal>0</iDefineIntVal> </Define>