hi, I am having a problem with a scenario that I created. wants the scenario is loading it doesnt play the dawn of man intro movie and just loads right to the pop up screen. how do I add the dawn of man intro movie to my scenario so that the scenario loads the dawn of man intro movie first before anything else loads?
Announcement
Collapse
No announcement yet.
scenario dawn of man video problem
Collapse
X
-
By default scenarios don't have the DoM screen. You need to initialise it in python.
Usual spot is in onGameStart() is CvEventManager.py.
Code:def onGameStart(self, argsList): # display DoM message 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)
Comment