SimCutie
Warlord
- Joined
- Dec 10, 2005
- Messages
- 197
Add getVersion Python API to SDK.
gc.getDefineINT("CIV4_VERSION") works only after loading "GlobalDefines" XML file.
It is unusable on Python "Init" event time or Python module load time. ( at least in vanilla Civ 161. I don't have Warlords yet.)
It should be usable right after Python subsystem initialized.
We can add it to our project. But it is essential that plain unmoded DLL also have same get version call so that python mod can work without modded DLL.
I suggest to add GC.setDefineINT("CIV4_VERSION", VERSION_NUMBER ); to CvGlobal initilization routine.
( after GlobalVaiable system is initialized.)
gc.getDefineINT("CIV4_VERSION") works only after loading "GlobalDefines" XML file.
It is unusable on Python "Init" event time or Python module load time. ( at least in vanilla Civ 161. I don't have Warlords yet.)
It should be usable right after Python subsystem initialized.
We can add it to our project. But it is essential that plain unmoded DLL also have same get version call so that python mod can work without modded DLL.
I suggest to add GC.setDefineINT("CIV4_VERSION", VERSION_NUMBER ); to CvGlobal initilization routine.
( after GlobalVaiable system is initialized.)