View Full Version : [HELP] Change CivivOptions caused instant defeat


ww2commander
Apr 21, 2007, 12:07 AM
I am in the process of modifying the civics for my scenario. The problem is that if I simply change one of the categories in the CivicOptions xml file from CIVICOPTION_LEGAL to CIVICOPTIOC_MILITARY, and also make the corresponding changes in teh Civic xml file, it crashes the game.

I will start the game and it will simply say 'You have been defeated' without even giving me a first turn :(

Is there some kind of hard coding for civic options?

ww2commander
Apr 21, 2007, 05:27 AM
Ok....let me rephrase the question.

Is there something specific I have to modify in the XML files before I can change the values in CIV4CivicOptionInfos.xml?

ww2commander
Apr 21, 2007, 07:17 PM
Anyone can help at all?

Paasky
Apr 22, 2007, 08:55 AM
Why exactly would you want to even do this? Just rename the description into Military, and you're set. :p

ww2commander
Apr 22, 2007, 05:40 PM
I have since tried GRM7584's Nyomod mod as it already has a 6th column added in for the extra civic category I need to add. However this in itself has hadsome issues with my mod.

I have also come across Aussie Lurker's Civic Phase projects which would also adress my 'ideology' issue but he is still working on this along with other projects.

I bever figures something so straight forward would be an issue with this game. I am trying to finish each area one by one so I am not kleaving things half finished all over the place.

Very fustrating :(

Paasky
Apr 23, 2007, 12:38 AM
Ah! Check civilizationInfos. There's the DefaultCivics, you might need to change those aswell.

ww2commander
Apr 23, 2007, 12:57 AM
I did but that made no difference. It seems that if you rename any of the civicoptions and the load a new game, it thinks about it and then says "You have been defeated". You then click through all the available screens and when you reach the 'Dan Qayle' ranking screen and click ok it then CTD.

ww2commander
Apr 28, 2007, 10:35 PM
In case anyone is interested in the solution to this problem, I had updated all the relevent XML files (CivicOptionsInfo, CivicInfo, Text/Pedia files)........but I forgot to update the actual WBS file so everytime the game would load, it would attempt to set the initial civic options and civics before the first turn. Obviously it could not find the old civics and would bomb out with a defeated message and a nice CTD error message!

primordial stew
Apr 29, 2007, 02:56 AM
Yeah, almost anything wrong with the map and it's no message + instant defeat :(

I wonder if this is the advantage of adding stuff to the map in python? In python I'd expect the typical error messages if there were a problem.

strategyonly
Apr 29, 2007, 03:00 AM
Did you change the civics in the map option also? And as blocks go, how many do you have or want? Remember never to use a scenario when trying new stuff, always use an empty map.

ww2commander
Apr 29, 2007, 04:36 AM
Yeah I agree it is truly annoying that the game gives you clues when the XML files are incorrect, but will just CTD if the actual map file is not correct or has broken references :(

strategyonly, as I mentioned in my previous post, the civic in the map file were broken....I spent countless hours trying to solve this problem. I work from the scenario map as a lot of the stuff I am trying to do is interconnected. Bad habit I guess!

strategyonly
Apr 29, 2007, 07:15 AM
So you have it solved then?

ww2commander
Apr 29, 2007, 07:41 AM
Yes its resolved now. I just thought I would post the solution to the problem, as I for one find it very fustrating when I find a post that talks about a problem with no solution.

You know the feeling when you read it and say 'Hey, I have that same problem!"....then you keep reading through all the replies only to find its a dead end with no solution as the person gave up or did not post their solution. :(