Announcement

Collapse
No announcement yet.

scenario dawn of man video problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • scenario dawn of man video problem

    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?

  • #2
    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


    • #3
      I went into python, typed in the code and then saved it. I then went into my game and loaded the scenario but did not see the dawn of man. please tell me what else I need to do to so that I can get the movie to work.

      Comment

      Working...
      X