TheLadiesOgre
Aspiring Codesmith
- Joined
- Jan 16, 2009
- Messages
- 505
interesting stuff here....
interesting stuff here....
)I presume that it breaks saves that were made before the dll was introduced....
can you fix it so that it doesn't break saves?
will this affect worldbuildersaves?
I'm working on the Python but having some problems with the English unhappiness under occupation. Because I'm using CyCity.changeExtraHappiness() to adjust the (un)happiness level of the city on conquest, but the CyCity.getExtraHappiness() method isn't returning what I'm expecting it to. It seems that the game is adjusting the extra happiness on its own, making it hard to predict what to add/subtract. At least it reads zero while the city is under occupation...
Asaf: I guess what I need is CyCity.setExtraHappiness() then...
I've attached the Python files - unpack the archive in the mods Python folder. Since I suggest you only try my code out at this stage - without any other custom Python interfering - you should back-up your CvEventManager.py and CvGameUtils.py and replace with mine. (This will disable any other Python mod component you currently have running.) Because we can merge the code later - in fact, I'd like to do it once you're satisfied with the powers code.
Its actually your job to find the error(s) - so that i can fix it. (I trust that you have enabled Python exceptions, by the way.)
) <Define>
<DefineName>USE_CAN_DO_CIVIC_CALLBACK</DefineName>
<iDefineIntVal>1</iDefineIntVal>
</Define>
# mod settings
iCarthageMoves = 1
eGreeceCivic = getIndex("Civic", "Universal Suffrage")
iEnglishUnhappiness = 2
iEnglishCulture = 10
iGallicDefenseBonus = 10
iPicticFood = 1
(edit: first draft done No Python exceptions?ok on first anylisis... Greek works.... Carthage does no longer works.... Pictish does not work... not sure how to find out if gaul works or briton for that matter
also there is no uploadable version for the one I'm using
it's unfiinished but if you want it I can make a little zip for you... (can you unpack 7zip because I might use that just for this...)