Announcement

Collapse
No announcement yet.

[MOD] Cleanly Disable Intro Movies

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

  • [MOD] Cleanly Disable Intro Movies

    In a thread over on CivFanatics some folks discussed ways to diable the intro movies. Most of their methods required deletion or changing of original movie files. I've found a cleaner way to do it and just wanted to share it with you all.

    (For those of you looking for the bottom line, simply cut to the end of this post--I've attached a copy of the file, you can just d/l it and copy it over).

    The file CvIntroMovieScreen.py under /assets/python/screens/ controls the introductory movies. About 15 lines in there is a function called "interfaceScreen". the lines you're looking for are these:

    Code:
    class CvIntroMovieScreen:
    	"Intro Movie Screen"
    	bMovieState = 0
    	def interfaceScreen (self):
    
                    self.currentMovie = "ART_DEF_MOVIE_2K_INTRO"
                    self.X_SCREEN = 0...blah blah blah...
    The first declares the class, the "def interfaceScreen(self):" line is defining the function we're interested in. This function shows the opening movies. Sooo...we just insert a little "return" command and it'll bounce right back and take you straight to the menu. The disabled function looks like this:

    Code:
    class CvIntroMovieScreen:
    	"Intro Movie Screen"
    	bMovieState = 0
    	def interfaceScreen (self):
    
                    return
    
                    self.currentMovie = "ART_DEF_MOVIE_2K_INTRO"
                    self.X_SCREEN = 0...blah blah blah
    (Make sure the return is tabbed exactly the same as the lines below). Voila! The game now boots directly to the main menu; no clicks, no blue flashes, no problem.

    The adjusted file is attached below. You can copy into your /Custom assets/python/screens/ directory and it'll do away with the intros.
    Attached Files
Working...
X