[Python] Need a toggle in CivilizationIV.ini for code

jkp1187

Unindicted Co-Conspirator
Joined
Aug 29, 2004
Messages
2,496
Location
Pittsburgh, Pennsylvania
I need to set up an on/off toggle in the CivilizationIV.ini file for the resource depletion code I've set up for NextWar. I'm still on the fence as to whether or not I want to include it, but I'm still going to play around with it, but want people to have the option to turn it on/off without having to edit a Python file. Can someone help me out on this?

(If I decide to keep the code, I'll get around to putting it in as an official option via the SDK, but for now, I figure that a toggle in the INI file should be enough.)

Thanks.
 
If you pop it into GlobalDefinesAlt.xml it's easier. After setting up the global in 8 spots in the SDK you can call it from anywhere, python or SDK.

Can be turned on/off via the xml file.

See DCM for examples as I use it. Search on DCM_CIV_CHANGER_CHANGES in the SDK for the cleanest example (I only use that one in python).
 
So I will have to do a small SDK change to implement this?

Oh, and do you have the DCM SDK available anywhere? I didn't get it with the download.
 
Back
Top Bottom