Merging Bug with Great Person Mod BTS

ostar

Warlord
Joined
Nov 13, 2005
Messages
160
I have BUG 3.5 installed in the Custom Assets, and BAT 1.1 in the MODS folder. It runs fine.

However, I want to combine the Great Person Mod BTS with BAT. This mod gives a popup for the player when they birth a GP, with an image and a quote by/about them. For example, a picture of Einstein and his quote "The most incomprehensible thing about the world is that it is comprehensible."

I have no problem with the XML files, just the Python. (EDIT: fixed one problem myself.)

The GP mod wants to use a Custom Event Manager called CvGreatPersonModEventManager.py.

However, I am afraid this may step on the BUG/BAT events. Should I merge this file into one of the BAT python files?

I read the modding section on events, but while I have done programming I'm still a Python novice and am not sure where in BAT to put the GP event entries. I am attaching the CvGreatPersonModEventManager.py just in case.
 

Attachments

You can ditch the CvCustomEventManager class -- BUG/BAT has its own. Instead, you need to create an XML config file for the GP mod that initializes CvGreatPersonModEventManager and call it from init.xml.

With your coding background, you might be able to figure it out using Dresden's example for merging in BetterAI. You shouldn't need to make any changes to the Python files.
 
You can ditch the CvCustomEventManager class -- BUG/BAT has its own. Instead, you need to create an XML config file for the GP mod that initializes CvGreatPersonModEventManager and call it from init.xml.

With your coding background, you might be able to figure it out using Dresden's example for merging in BetterAI. You shouldn't need to make any changes to the Python files.

Thanks, I did and got it working.
 
Thanks, I did and got it working.

Is this something you can share with us, or would I have to be a coding god as well? << >> I'd love to get the Great People mod in here.
 
Back
Top Bottom