Video and technology

Mega Nix

Warlord
Joined
Sep 7, 2011
Messages
179
Hi :)

is it possible to show a video ingame everytime you research a technology? And if, how?
 
Hi :)

is it possible to show a video ingame everytime you research a technology? And if, how?

You would need to modify the dll and XML to add a movie tag to the technology infos file then the python to play it. There is already python code to show the movie for the wonders so that can be recycled. The movie would need to be in bink(?) format.
 
how do i modify a dll? dosen't sound simpel :confused: i have little experience
 
It is not simple. Dll editing requires C++ programming skills.

I could do this. However, I have a lot of things on my list currently, so I would want to wait until there was a definate consensus on it. My concern is that movies for techs generally is going to make the mod HUGE.
 
it's just for my own entertainment, so i don't ask you to do it
a link or a short briefing, and im way to go:) If i get finish i will upload it, if anyone is interrested
 
I agree. Although "more is more" is the theme of C2C, I think mod size and performance need to be taken into consideration. Maybe if the video size could be reduced and a better codec used to compress it...?

I'd say if you want to do videos, start with World Wonders. :king:
 
I agree. Although "more is more" is the theme of C2C, I think mod size and performance need to be taken into consideration.

Yeah even though I add more buildings I do balance them out in that they are no as graphics intensive as they could be by having no meshes and only buttons with stats. There is always a way to add more but we have to be smart about it too.
 
if i should ad a video, is it these 2 files i need to change?
"CIV4TechInfos.xml
CIV4TechnologiesSchema.xml"

Or these? "CIV4ArtDefines_Movie.xml CIV4ArtDefinesSchema.xml"

I have converted a video to .BIK but are still quite lost
 
if i should ad a video, is it these 2 files i need to change?
"CIV4TechInfos.xml
CIV4TechnologiesSchema.xml"

Or these? "CIV4ArtDefines_Movie.xml CIV4ArtDefinesSchema.xml"

I have converted a video to .BIK but are still quite lost

You are right. You need to name the movie in the TechInfos file and define it in the Art defines movie file.
 
this it what i done:

Made a BIK Movie "Gathering" in Cosmic2Cosmos/Assets/art/movies

in "CIV4ArtDefines_Movie.xml" i added this line

<MovieArtInfo>
<Type>ART_DEF_MOVIE_Gathering</Type>
<Path>Art/Gathering.bik</Path>
</MovieArtInfo>

and in "CIV4TechInfos.xml"


<Type>TECH_GRAIN_GATHERING</Type>
.....
.....
.....
<MovieFile>Art/Movies/Gathering.BIK</MovieFile>
<MovieSound>NONE</MovieSound>

also in "CIV4TechnologiesSchema.xml" i added at the same place as it match "CIV4TechInfos.xml"
THIS:


<ElementType name="MovieFile" content="textOnly"/>
<ElementType name="MovieSound" content="textOnly"/>



but nothing happens when i research the tech?
 
this it what i done:

Made a BIK Movie "Gathering" in Cosmic2Cosmos/Assets/art/movies

in "CIV4ArtDefines_Movie.xml" i added this line

<MovieArtInfo>
<Type>ART_DEF_MOVIE_Gathering</Type>
<Path>Art/Gathering.bik</Path>
</MovieArtInfo>

and in "CIV4TechInfos.xml"


<Type>TECH_GRAIN_GATHERING</Type>
.....
.....
.....
<MovieFile>Art/Movies/Gathering.BIK</MovieFile>
<MovieSound>NONE</MovieSound>

also in "CIV4TechnologiesSchema.xml" i added at the same place as it match "CIV4TechInfos.xml"
THIS:


<ElementType name="MovieFile" content="textOnly"/>
<ElementType name="MovieSound" content="textOnly"/>



but nothing happens when i research the tech?

There are two reasons nothing happens.
1) The dll has not been changed to read and store that information.
2) The Python has not been changed to get the information from the dll and play the movie.
 
I'd say if you want to do videos, start with World Wonders. :king:

Do you mean that? I could make some movies to the wonders :) but what is the maximum space i may use in MB?
 
Do you mean that? I could make some movies to the wonders :) but what is the maximum space i may use in MB?

Sure. :) If your interest is in making movie clips for C2C, start with the World Wonders we don't have anything for. Keep them short; about the same length as the other movies (30-45 seconds maybe? A minute would probably be max). It looks like the user-made movies for C2C so far are around 4MB on average, so I guess that would be a good average. It isn't much for a movie. I suppose if it were kept as an "add-on pack" (optional to use) then there might be more flexibility.

Movies for normal Techs I really think would be too much, plus, quotes are the precedence for those. I'm sure movies for Wonders will keep you plenty busy :)
 
That would be ALOT of videos! Plus we have been trying to reduce the amount of graphics intensive stuff anyways. Personally I would rather have still pictures for things like wonders or even leaderheads if it means speeding up the game.

If you guys decide to take out some videos, I would start with the religion ones first. Most of them are almost identical anyway, and slowly zooming in on a loaf of bread or a Koran doesn't add much compared to a still photo.
 
If you guys decide to take out some videos, I would start with the religion ones first. Most of them are almost identical anyway, and slowly zooming in on a loaf of bread or a Koran doesn't add much compared to a still photo.

Ah, but it is the one with the still photo, Mormon, that is causing the mysterious crash.:mischief:
 
well somehow i ruin the xml files everytime i edit them. So i'm only able to download the videos and cut them and convert them to BIK files. Are you willing to do the rest if i do that?

here also some videos i made, are they good enough?
 

Attachments

made 26 videos now :) now sound faded out, and better quality than the RAR file i posted
 
Back
Top Bottom