Quick Modding Questions Thread

I added a new civic to the game just above the decentralization. But as a new game starts, decentralization still is selected as default. I already gave it a prereq tech. What am I doing wrong?

You have to change the default civic in CivilizationInfos iirc.
 
How do flavor units work? I see that they're not set up like UU, so how does the game know to switch up the unit graphics?
 
I think he means the image that is shown when a game is loading or starting, the one behind the green bar and the advice.
 
Ah, that one.
The file has to be a .dds, and it's referenced in Art\ArtDefines_interface.xml via MAINMENU_LOAD, MAINMENU_LOAD_WARLORDS, MAINMENU_LOAD_BTS and MAINMENU_LOAD_CLASSICAL (depending on which main menu you use; not sure why there are 4 entries :dunno:).
 
Hmm... I hope this is a quick question. I want to add a new era, but I can't seem to find the art files that are used when a new era is reached. Nor can I find references to them in CIV4EraInfos.xml. Is it easy to change them/add a new one?
 
...god...don't mess with that!

You'll have to add entries for everything in the Buildings\CityLSystem.xml and PlotLSystem.xml. Additionally you'll have to change the UnitInfos.xml, because the era dependent art defines rely just on the numbering of the eras (means: early art defines entries = era 1 + 2, middle art define entries = era 3 + 4, late art define entries = everything afterwards).
Next, you'll have to change the TechInfos.xml, because the AI can't deal with it if an era is missing in there.
And the LeaderHeadInfos.xml will need additional music entries.

mmhh...don't know if more is needed...but that's already really enough.

Edit: :huh:...did you check what's written on the top of the EraInfos.xml :D?
 
Ha yeah, I knew it would be a lot based on that, but I couldn't find how the game knew to show that compass image for Renaissance or the watch for Future. I wanted to add a post future era eventually, pain though it may be.
 
Ok, I now know that the images I was talking about are movies (found in Assets/Art/Movies/Era), but where are these referenced? Is it Python?
 
Mihgt be, don't know atm. But you also don't have to know that :D.
because you can just replace the files in your mod. The era "movies" are also just .dds files, and are located in Civ4\Art\Movies\Era.
Just create an Art\Movies\Era folder in your mod, and create .dds images with the same names like the original .dds files. That will override the normal era movies.
 
CvEraMovieScreen

Since he intends to add a new era, he has to modify this
 
Ha, perhaps one last question on the subject, where is the information for "iEra" drawn from in CvEraMovieScreen.py? It doesn't seem to be in the XMLs, so is there a counter or something?

Spoiler :

class CvEraMovieScreen:
"Wonder Movie Screen"
def interfaceScreen (self, iEra):
 
Back
Top Bottom