View Full Version : Update to 3.19?


phungus420
Jun 28, 2009, 02:35 AM
Any chance this mod will be updated to 3.19?

I want to go through it and steal utilize some of the unique promotions for the Legend Units in Legends of Revolution. Being able to play it, and browse the civilopedia would help immensely.

stmartin
Jun 28, 2009, 10:07 AM
Just uploaded the new version. Now 3.19 compatible.

phungus420
Jun 28, 2009, 08:51 PM
Nice, what quick service :)

When going through and checking the unique promotions, are most of these handled in Python, or the XML (and thus SDK)? Personally I prefer SDK, but that's irrelevent, hehe (just means I'll have to move the code to the SDK and do some schema work, to change things), but I'm just curious as to how you have set these up for the most part. Also are there any comments that will help in searching through the code, or will I just need to dig in and use that good old "search in files" function in Notepad++ often?

stmartin
Jun 29, 2009, 12:26 AM
All the promotions are done in XML and SDK.

Lots of the stuff are in CvUnit.cpp. Have a look at the following functions:

processCombatWin()
processCombatWithdrawal()
resolveCombat()
maxCombatStr()
updateCombat()

The above names may not be accurate.

phungus420
Jun 29, 2009, 02:02 AM
Awesome thanks. That'll make things alot easier. I'm not a programmer, so converting Python to C++ isn't very easy for me, lol. That saves me and Emperor Fool (would indoubtadly have had to ask for help in the SDK/Python forum) alot of work. Things will take a while, but I'll be sure to give you credit for using code from this mod.

eaglet123
Jun 29, 2009, 09:41 AM
HOTK for 3.19, so great!!