wotan321 said:
Wow Jeckel, you are impressive! Thanks.
Thanx, glad to help.
wotan321 said:
..BUT I have another question.
I am working from the WW2SF&B mod and wanting to incorporate other mods into it, but still retain the events of that mod, and add the dawnofman screen at the beginning of the scenario. Below is from the CvEventInterfance.py file.
Well, first, what is WW2SF&B? Give me a link to it so I can check it out and I can help ya better.

Specificly to integrating these mods, the best idea is to make this WW2SF&B mod use the Dr. custom event manager, but that might be a tall order depending on your python knowledge, time constraints, and how that mod is written. The simplest solution is to make that one line change I posted in post #9. The mod I made with this change is just for those people that dislike making any changes in python on their own.
But to the more general question, I'm happy to help ya out with some explanation, here is the basics of what that file you posted is doing. Its pretty simple once ya get the hang of it.
Code:
from CvPythonExtensions import *
import CvUtil
This is importing the main python methods and classes and whatnot. For what all these make available, do a google for the Civ4 python API.
This just registers the normal event manager.
Code:
import CvWWIIsfnbEvents
#WWII SF&B OVERRIDE
wwiisfnbEventManager = CvWWIIsfnbEvents.CvWWIIsfnbEvents()
normalEventManager = CvEventManager.CvEventManager()
First this is importing the two event manager files to the local python name space. The bottom two lines are initializing a class instance of each event manager.
Code:
def getEventManager():
return wwiisfnbEventManager
This method just returns the class instance set in the above blurp.
Code:
def onEvent(argsList):
'Called when a game event happens - return 1 if the event was consumed'
return getEventManager().handleEvent(argsList)
def applyEvent(argsList):
context, playerID, netUserData, popupReturn = argsList
return getEventManager().applyEvent(argsList)
def beginEvent(context, argsList=-1):
return getEventManager().beginEvent(context, argsList)
These three methods just get data from the hardcode when events are run and they pass it to the mentioned methods in the file CvWWIIsfnbEvents.py. This whole file is what is know as a 'wrapper' in that it doesn't really do anything but take information and pass it on to somthing else. It seems like most of the work is done in the CvWWIIsfnbEvents.py file, look through it and if you have any questions just post them and i'll be happy to help.