With this method here, you'll get the movie after you've set up your civ, before the actual game starts, and not while loading the mod .
LOL! Oh ok... well is it possible to get the movie BEFORE the game loads?
EDIT: Ok so I tried it out, I selected a faction, but when I started up the game it said "You have been defeated", and never loaded, can you tell me what I'm doing wrong!
Thanks
And i hope you saw that i said that it seems you've removed by accident some lines after onGameStart. These are the lines for the dawn of man screen. So if you didn't revert these changes...
def onGameStart(self, argsList):
# display mod's intro movie
introMovie = CvIntroMovieScreen.CvIntroMovieScreen()
introMovie.interfaceScreen()
def onGameStart(self, argsList):
# display mod's intro movie
introMovie = CvIntroMovieScreen.CvIntroMovieScreen()
introMovie.interfaceScreen()
# 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)
Ok, I did the change you asked me to, and I added the DoM text back to the code, but now, after the movie finishes, the game says you have been defeated
Are you loading a map (i guess so) or starting a "normal" game?
Because "you are defeated" messages after the start normally point to problems with map settings, that something is in the worldbuilder file which is actually not anymore existent in the game.
And if i see it right, you forgot to make the needed changes in the CvIntroMovieScreen.py.
introMovie = CvIntroMovieScreen.CvIntroMovieScreen()
introMovie.interfaceScreen()
then the game will not even try to load the intro movie.