Zebular
Apr 25, 2007, 05:16 PM
Howdy,
I'm going through all the XML files now removing everything pretaining to Rennasance and beyond Eras.
I'm wanting to make a Mod for me and my bud who hotseat tons of games. We want to restrict the Era to not go beyond Medieval era.
I'm making the mod "Dungeons & Dragons" theme.
Is there an easy way to disable Eras and everything that becomes available (Tech, Buildings, Units, Civics, etc.)? Or do I have to continue majorily modding all the files that reference things in the eras I am disabling/removing?
primordial stew
Apr 26, 2007, 12:43 AM
Probably just remove the techs (from CIV4Techinfos.xml) past your era of interest. The techs are what unlock new govts, resources, etc.. IIRC the AI will keep allocating.. 70% or so to research, even after it has all the possible techs.
Zebular
Apr 26, 2007, 11:13 AM
Probably just remove the techs (from CIV4Techinfos.xml) past your era of interest. The techs are what unlock new govts, resources, etc.. IIRC the AI will keep allocating.. 70% or so to research, even after it has all the possible techs.
Aye, that's what I am doing. However, say for instance, I remove Communism from the xml tech file, I then need to go into the Units file and all other files that call for TECH_UTOPIA and remove those references as well.
There are a TON of things that will need to be removed manually if I have to do it this way, for if I do not, a seemingly infinite ammount of error messages pop up when loading the modification.
I was just hoping there'd be an easy way to toggle the Maximum Era so I can focus upon editing the Modification to a Dungeons & Dragons theme and not spend googles of hours trying to find all the coding to remove that is generating all the error messages from having removed the later Era Techs.
I followed the brief instructions in the EraInfo xml file, however, even after removing all references to just the files named in that file, it still generated error messages for missing information.
Head Serf
Apr 26, 2007, 01:52 PM
Just disable all of the techs you don't want.
To disable a tech switch the 0 to a 1 in the xml tag called Disable in the TechInfos file.
Zebular
Apr 26, 2007, 01:57 PM
Just disable all of the techs you don't want.
To disable a tech switch the 0 to a 1 in the xml tag called Disable in the TechInfos file.
Ah, Thank you! <bDisable> ?
Head Serf
Apr 26, 2007, 06:56 PM
Yea, that should be the one.
Zebular
Apr 27, 2007, 09:37 PM
Yea, that should be the one.
Many thanks! Works perfectly and was just what we were looking for. Not sure how I missed that line of code when I was scouring through it. heh. Too little sleep... just one more turn.. one more turn...