Movie troubles continue...

SailorLazarus said:
Whose my cream puff?
I am.

I have figured it out. It was indeed how the python code tries to handle the religion movies. It handles animation (.nif) and movie (.bik) files differently when it goes to display them as in game movies. All that needs to be done is to tell the game to handle them the same. I will write my tutorial shortly. :)

Great job!
 
Thank you everyone, for all your help. The tutorial is up.

I only have one problem left. That is to figure out how to make the game differentiant between .nif files and .bik or .dds files. I think I have a good idea of how to do it, but if anyone already knows, your input is always welcome.

I am thinking I should be able to edit an "if-else" check for the type of file.

and adding a new tag to the religoninfo file.

something like adding this to the ReligionInfos file

<MovieFileALT>NONE</MovieFileALT>
<MovieFile>Art/Movies/Religion/Judaism/Jud_Found.nif</MovieFile>
<MovieSound>AS2D_BUILD_JEWISH_MOVIE</MovieSound>

and

<MovieFileALT>Art/Movies/Religion/KenjiMiyazawa/GoodEats.bik</MovieFileALT>
<MovieFile>NONE</MovieFile>
<MovieSound>NONE</MovieSound>

Then you could add a python check like this:

Code:
		if self.iMovieType == MOVIE_SCREEN_RELIGION:
			szFileType = gc.getReligionInfo(self.iWonderId).getMovieFile()
			if len(szFileType) == 0:
				screen.playMovie(gc.getReligionInfo(self.iWonderId).getMovieFileALT(), self.X_SCREEN + self.X_MOVIE, self.Y_SCREEN + self.Y_MOVIE, self.W_MOVIE, self.H_MOVIE, -2.3 )
			else:
				screen.addReligionMovieWidgetGFC( "ReligionMovie", gc.getReligionInfo(self.iWonderId).getMovieFile(), self.X_SCREEN + self.X_MOVIE, self.Y_SCREEN + self.Y_MOVIE, self.W_MOVIE, self.H_MOVIE, WidgetTypes.WIDGET_GENERAL, -1, -1)
				CyInterface().playGeneralSound(gc.getReligionInfo(self.iWonderId).getMovieSound())

What do you think? Barking up the wrong tree?

<edit>
<puts code into files, changes Schema. Runs Civ4, researches religion. Computer crashes.>

NOPE, definatly not.
</edit>
 
Back
Top Bottom