RobO
King
That's not difficult, but you need to use a text editor, like Notepad. I use Editpad lite (it's free). You need to merge the CustomEventManager used in the two mods.grazwell said:RobO, thanks for the change (and of course for the original idea, Bhruic) it's just what I was looking for.
Please help me though....How can I use it with Alerum's Unaltered gameplay mod?
Step 1: Copy SettlerReligion.py to the Python directory in Alerum's mod.
Step 2: Open CvCustomEventManager.py from the Python directory in Alerum's mod and from the SettlerReligion mod in separate tabs or windows.
Step 3: Copy the following lines from the top of the SettlerReligion CustomEventManager to Alerum's:
Code:
import SettlerReligion
sr = SettlerReligion.SettlerReligion()
Step 4: Copy the three events onUnitBuilt, onUnitLost, onCityBuilt from the bottom of the SettlerReligion CustomEventManager to the bottom of Alerum's.
Step 5: Save the modified CvCustomEventManager.py from Alerum's mod.
That's it. You do not need to change Python\entrypoints\CvEventInterface.py - the same file is included in both mods.
I've included my own CvCustomEventManager.py so you can see how I do it. Don't use it with your mods - my mod selection is not identical to Alerum's and it may not be compatible with your mod selection.