What's the consensus on the best way to implement this feature? Gaius's Python-based method or the SDK method by frekk? Could anyone elaborate on the merits/drawbacks of the two?
Cheers,
ripple01
It isn't my method, it's Mexico's. Credit where credit's due!! All I did was update it to BTS.
As for the question, it really depends on your preferences and what sort of mod you're running. Mexico's SDK mod will allow you to create GP UUs and have them appear properly, and even in order of names rather than at random. The other advantage is that there are no python calls, which draw heavily on system resources. If you want only a very limited selection of GP UUs - like say, just one complete set for one civ or group of civs - I'd go the SDK route. Otherwise Gaius' mod is more applicable.
I updated it for myself because for my particular mod, I've already got too much python, I only wanted generals, I only needed broad ethnic flavours (eg European, Asian, Native American, African, etc) and I didn't need them to be era-specific, so there were only about 10 units to add. I couldn't get Great Generals to appear properly, the SDK - all it really does - is fixes that, so that GGs appear correctly according to the civs the UU belongs to (otherwise you just get random GGs, anyone can get any GG UU).
I posted it thinking that Gaius still needed this for Great Generals to appear properly in his mod. I'm confused now as to whether he still needs it or not.
Personally, I prefer the Python version, because it does not require a DLL and thus is easily compatible with mods like the Unofficial Patch.
Actually I included Bhruic's patch.
I honestly don't understand why so many are against Python when they go to the extra trouble of doing SDK work!
I sort of surprised myself doing that. Merging SDK is no harder than merging python, once you've got compiling figured out. In this case, it was actually much easier for me to update Mexico's SDK mod and merge it with BTS 3.13
and Bhruic's patch, than it was to try to merge your python with my mod. There were only about a dozen lines of code, and copy and paste Bhruic's source files into the gamecore directory. Not very difficult at all.
I'm not really against python, it's just that my mod is already python-heavy and python draws heavy on system resources. SDK is alot more efficient.