Culture specific era splashes

You can control which splash image an era has (not sure where right now though ...), so I think it should be controllable from the DLL.
 
Looks to me like it's all done in Python (CvEraMovieScreen.py in the Vanilla Civ 4 files):
Code:
      # Play the movie
       if iEra == 1:
           szMovie = "Art/Movies/Era/Era01-Classical.dds"
       elif iEra == 2:
           szMovie = "Art/Movies/Era/Era02-Medeival.dds"
       elif iEra == 3:
           szMovie = "Art/Movies/Era/Era03-Renaissance.dds"
       elif iEra == 4:
           szMovie = "Art/Movies/Era/Era04-Industrial.dds"
       else:
           szMovie = "Art/Movies/Era/Era05-Modern.dds"

       screen.addDDSGFC("EraMovieMovie" + str(iEra), szMovie, self.X_SCREEN + 27, self.Y_SCREEN + 50, 720, 540, WidgetTypes.WIDGET_GENERAL, -1, -1 )
 
To check the art style type, I've tried:
if gc.getCivilizationInfo(player.getCivilizationType()).getArtStyleType() == gc.getTypesEnum("ARTSTYLE_GRECO_ROMAN"):
And after changing
player = PyPlayer(CyGame().getActivePlayer())
near the start of the function to
player = gc.getPlayer(CyGame().getActivePlayer())
it worked correctly in the single test I've run (playing as Augustus of Rome).

@ Zeta: In a quick test with code copied from CvIntroMovieScreen.py
Code:
movieFilePath = CyArtFileMgr().getMovieArtInfo("ART_DEF_MOVIE_2K_INTRO").getPath()
screen.playMovie(movieFilePath, -1, -1, -1, -1, 0)
... the movie appeared, played for a second and then froze (along with the rest of the program).
 
Is it possible that the movie and game froze because of wrong dimensions?

CvEraMovieScreen.py has:
Code:
        self.X_SCREEN = 100
        self.Y_SCREEN = 40
        self.W_SCREEN = 775
        self.H_SCREEN = 660
        self.Y_TITLE = self.Y_SCREEN + 20
       
        self.X_EXIT = self.X_SCREEN + self.W_SCREEN/2 - 50
        self.Y_EXIT = self.Y_SCREEN + self.H_SCREEN - 50
        self.W_EXIT = 120
        self.H_EXIT = 30

While CvEraMovieScreen.py h (EDIT) CvVictoryMovieScreen.py has:
Code:
        self.X_SCREEN = 0
        self.Y_SCREEN = 0
        self.W_SCREEN = 1024
        self.H_SCREEN = 768
        self.Y_TITLE = 12
        self.BORDER_HEIGHT = 100
       
        self.X_EXIT = 410
        self.Y_EXIT = 326

Just guessing because I'm not a programmer just a merger.
 
Last edited:
@Sword_Of_Geddon :
If we could find out how to make the game play movies that are culture specific, would you like to team up with me for such a project?

E.g:
I'd love to have the intro of Age of Empires 2 as an introduction to the Mediaeval era (at least for European civs),
The later part of the intro of Empire Earth would be cool for the Trans-Human era.
For a Meso-American Classical era there is the intro of Theocracy (maybe without the very last, bloody scene) and its victory scene for the Modern and Trans-Human eras (with some editing, like changing the music).

I'd volunteer for video editing and partly for the search of proper videos to edit.

What do you say? :)
 
Sure I'd be up for that. It would involve combining the recognition of era with the art style tag in civilizations(not the unit art style, but the one that controls what city graphics are used). I lack the skill in python to figure that out but I'll help in any way I can
 
Okay, than if we get help with the code we shall start searching for proper cutscenes. But before that it is pointless to waste any time on it.

I just realized an error in my previous post (#10). The second code is not from CvEraMovieScreen.py but CvVictoryMovieScreen.py.
 
Back
Top Bottom