Could someone tell me the purpose of the following change to the EventManager?
I am interested for several reasons:
1 - trying to figure out Python and modding practice
2 - the commented out line didn't seem to do anything, as the event is OnGameStart so isn't the year the start year to begin with? But it seemed to do something as you found it necessary to remove it.
3 - It kinda violates Dr. Jiggle's event management as it goes into the EventManager code directly. Would it be better to just create a new function without that line and override the event. That way no change to CvEventManager would be necessary.
Code:
## HOF MOD V1.61.001
## if (gc.getGame().getGameTurnYear() == gc.getDefineINT("START_YEAR")):
for iPlayer in range(gc.getMAX_PLAYERS()):
player = gc.getPlayer(iPlayer)
if (player.isAlive() and player.isHuman()):
popupInfo = CyPopupInfo()
popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_PYTHON_SCREEN)
popupInfo.setText(u"showDawnOfMan")
popupInfo.addPopup(iPlayer)
## above section unindented once
## end HOF MOD V1.61.001
I am interested for several reasons:
1 - trying to figure out Python and modding practice
2 - the commented out line didn't seem to do anything, as the event is OnGameStart so isn't the year the start year to begin with? But it seemed to do something as you found it necessary to remove it.
3 - It kinda violates Dr. Jiggle's event management as it goes into the EventManager code directly. Would it be better to just create a new function without that line and override the event. That way no change to CvEventManager would be necessary.
Don't know what I'm doing wrong. For the first game I had the mod in C:\Documents and Settings\stacks\My Documents\My Games\Sid Meier's Civilization 4\MODS\HOF-1.61.003. That's the place it is in the screenshot of the mod download page. The victory screen warning says the mod must be installed in C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Mods\HOF-1.61.003 so I redownloaded it and reinstalled it there. (Still have it in the original place as well.) But I'm still getting the warning. Anyone know what I'm doing wrong?
Anyway, I'll email if I haven't got it to go through by the end of the day.