1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Culture specific era splashes

Discussion in 'Civ4 - Creation & Customization' started by Sword_Of_Geddon, Jan 2, 2020.

  1. Sword_Of_Geddon

    Sword_Of_Geddon Mysterious Jungle Warrior

    Joined:
    Dec 21, 2003
    Messages:
    13,483
    Gender:
    Male
    Location:
    New England, USA
    I was wondering if it were possible to do this and if anyone would be willing to code this so that in addition to era, the splashes also count artstyles(greco-roman, asian, etc).
     
  2. Sword_Of_Geddon

    Sword_Of_Geddon Mysterious Jungle Warrior

    Joined:
    Dec 21, 2003
    Messages:
    13,483
    Gender:
    Male
    Location:
    New England, USA
    Nobody knows?
     
  3. Zeta Nexus

    Zeta Nexus Deity

    Joined:
    Jan 23, 2014
    Messages:
    3,818
    Gender:
    Male
    Location:
    In a constant brainstorm...
    Isn't that controlled by the exe? just guessing...
     
  4. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    34,055
    Gender:
    Male
    Location:
    Leblanc
    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.
     
  5. Sword_Of_Geddon

    Sword_Of_Geddon Mysterious Jungle Warrior

    Joined:
    Dec 21, 2003
    Messages:
    13,483
    Gender:
    Male
    Location:
    New England, USA
    I figured it was a DLL thing. Unfortunately I'm not sure how to mod that :(
     
  6. f1rpo

    f1rpo plastics

    Joined:
    May 22, 2014
    Messages:
    735
    Location:
    Germany
    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 )
     
    Leoreth and Zeta Nexus like this.
  7. Zeta Nexus

    Zeta Nexus Deity

    Joined:
    Jan 23, 2014
    Messages:
    3,818
    Gender:
    Male
    Location:
    In a constant brainstorm...
    I wonder if it can really play a movie?
     
  8. f1rpo

    f1rpo plastics

    Joined:
    May 22, 2014
    Messages:
    735
    Location:
    Germany
    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).
     
  9. Sword_Of_Geddon

    Sword_Of_Geddon Mysterious Jungle Warrior

    Joined:
    Dec 21, 2003
    Messages:
    13,483
    Gender:
    Male
    Location:
    New England, USA
    Is it not liking the way the python is done or the choice in movie because the era movies are dds files, splashes basically, the term movie can be misleading in this case I think.
     
  10. Zeta Nexus

    Zeta Nexus Deity

    Joined:
    Jan 23, 2014
    Messages:
    3,818
    Gender:
    Male
    Location:
    In a constant brainstorm...
    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: Jan 15, 2020
  11. Zeta Nexus

    Zeta Nexus Deity

    Joined:
    Jan 23, 2014
    Messages:
    3,818
    Gender:
    Male
    Location:
    In a constant brainstorm...
    @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? :)
     
  12. Sword_Of_Geddon

    Sword_Of_Geddon Mysterious Jungle Warrior

    Joined:
    Dec 21, 2003
    Messages:
    13,483
    Gender:
    Male
    Location:
    New England, USA
    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
     
  13. Zeta Nexus

    Zeta Nexus Deity

    Joined:
    Jan 23, 2014
    Messages:
    3,818
    Gender:
    Male
    Location:
    In a constant brainstorm...
    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.
     
  14. Sword_Of_Geddon

    Sword_Of_Geddon Mysterious Jungle Warrior

    Joined:
    Dec 21, 2003
    Messages:
    13,483
    Gender:
    Male
    Location:
    New England, USA
    Yeah everything era splash related would be in CvEraMovieScreen.py

    I understand the idea of movies for eras but it may be wise to stick with simple splashes for now, get that working then try nif files, since splashes are dds
     

Share This Page