View Full Version : [MOD] Better way to disable intro movies


Sevo
Dec 20, 2005, 04:04 PM
Stuie et al. in another thread discussed ways to diable the intro movies. Most of their methods required deletion or changing of original movie files. I found a nice way to do it, though as someone else pointed out SimCutie actually beat me to this fix; I just didn't read the posts very closely...:wallbash:)

Anyway, the gist of the fix was this:

(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:


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:


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.

[

Kolyana
Dec 20, 2005, 05:45 PM
Well done. A much cleaner and more logical way to approach this problem!!! No other solution is even viable ... truly thr way to go :tup:

EDIT: Tested and works PERFECTLY.

Dr Elmer Jiggle
Dec 20, 2005, 10:37 PM
Nevermind. Figured it out, and editing this post is as close as I can get to deleting it.

flamedphoenix
Dec 23, 2005, 06:51 AM
I put the code down manually exactly as you did (since I wasn't able to goto the link) and I get an error during boot that says:

"Failed to load python module CvEventInterface."

The movies don't load just like you said, but instead of clicking them away I have to do that for this error. Any idea what the problem might be?

Btw, I saved over my original CvIntroMovieScreen.py file...is there anyway you can link me to your code to see maybe I screwed it up somehow?

Corey
Dec 23, 2005, 04:00 PM
Link not working!?please fix it

Nials
Feb 28, 2006, 07:34 AM
*Bump*

This is probably still the most clean way to disable the intro movies :)

CurtSibling
Mar 02, 2006, 07:00 AM
Nice tweak - I will try it tonight!

:)

Hyronymus
Mar 02, 2006, 08:21 AM
*Bump*

This is probably still the most clean way to disable the intro movies :)
That's true if you only want to diasble the intro movie. If you want to disable all in-game movies you should open CivilizationIV.ini and change this line:

; Set to 1 for no in-game movies
NoMovies = 0
to this:

; Set to 1 for no in-game movies
NoMovies = 1
Might be somewhat offtopic but if people bumpthis topic after 2 months to just say how 'clean' it is I don't think anyone cares.

Nials
Mar 03, 2006, 12:01 PM
Thanks for sharing that tweak even though I already knew about it. I like to keep wonder movies around still, it's just the intro that tends to be annoying for me.


Might be somewhat offtopic but if people bumpthis topic after 2 months to just say how 'clean' it is I don't think anyone cares.

Neither do I.

I bumped it because it is still relevant for people who seek to disable the intro movies in an easy and fairly doable way.

Hyronymus
Mar 04, 2006, 02:11 PM
Wonder movies kept a-synchronical on my system, even with 1.52, so I decided to 'kill' all movies.

MHKnights
Mar 07, 2006, 06:44 PM
Nice work!

[KC]Abyss
Mar 28, 2006, 03:27 PM
Might be somewhat offtopic but if people bumpthis topic after 2 months to just say how 'clean' it is I don't think anyone cares.

Well I care, it makes it much nicer to quickly get into the game to test something, without disabling all the movies.


~Abyss