hemoglobin
Chieftain
- Joined
- Sep 3, 2012
- Messages
- 44
Ack, just thought of something that I should have mentioned straight away... do you have getBuildingCost enabled in PythonCallbackDefines.xml? If your mod doesn't have this file, you'll need to copy it from BTS. It's located in /Assets/XML/. In it, find the following section:
Code:<Define> <DefineName>USE_GET_BUILDING_COST_MOD_CALLBACK</DefineName> <iDefineIntVal>0</iDefineIntVal> </Define>
Set that 0 to 1 and it will enable it. Several Python routines are disabled by default as they can be performance-degrading. getBuildingCost is one of them, though nowhere near as much a performance hit as some of the other entries in that file. But yeah, if you attach code to any of the routines listed in that file in the future, you'll need to enable each of them there in the same manner.
Apologies for not mentioning that up front, my second child was born earlier this week so I'm a bit sleep deprived![]()
This was it. It's working now. Thanks!