Frustrating XML Problems

fdrpi

Prince
Joined
Feb 14, 2012
Messages
373
Location
Massachusetts
I was trying to alter a couple XML values in BAT to reflect the changes I made in my mod many years ago. However, while some of these changes worked, several others did not, despite me doing the same thing that worked previously.

What changes worked: unit tech requirement, tech costs

What changes aren't working: building tech requirements, XML-based abilities for buildings, city names for civilizations, national wonder names (it instead creates a duplicate wonder that "replaces" the other)

I suspect that there might be some coding in BAT that I'm not aware of that is interfering, but I don't know what it is. Could anybody provide some insight into what exactly is going on?
 
I was trying to alter a couple XML values in BAT to reflect the changes I made in my mod many years ago. However, while some of these changes worked, several others did not, despite me doing the same thing that worked previously.

What changes worked: unit tech requirement, tech costs

What changes aren't working: building tech requirements, XML-based abilities for buildings, city names for civilizations, national wonder names (it instead creates a duplicate wonder that "replaces" the other)

I suspect that there might be some coding in BAT that I'm not aware of that is interfering, but I don't know what it is. Could anybody provide some insight into what exactly is going on?
I would need a lot more information on what you're doing and what you've modified before I could even begin to help you.

Please elaborate.
 
For example: I was trying to make the Jail reduce city maintenance by 15%.

I changed the value of the iMaintinenceModifier in the CIV4BuildingInfos file from 0 to -15. This change was and is not reflected in the Civilopedia, but it was reflected in the base game Civilopedia when I accidentally altered the base game XML, which leads me to suspect an interaction with the mod.
 
I still don't understand...

But I would definitely urge you not to alter your base game files. If you want to tinker with them, copy them to the BAT mod directories and alter them there. Messing with the main game files will just buy you a reinstall of Civ.
 
Essentially, changing the normal appropriate XML tags in the standard files (as described above) only sometimes effects the game. I have made all of these changes successfully before, just not in BAT, which is what makes it strange.
 
XML changes work fine in BAT. I do them all the time. There is nothing particularly unique about the XML or Python in BAT that would cause it to work only sometimes.

If I had a bit more detail on what you were trying to do, rather than blindly guessing, maybe I could be of more help.

And by detail, I mean a code fragment or a more concise description.
 
As I stated earlier, I changed the value of the iMaintinenceModifier line in the CIV4BuildingInfos file from 0 to -15.

When I accidentally did so in the base game, it changed the effect of the Jail. When I fixed my mistake and reverted the tag to its default value, the change went away. There was no change when I did the same thing in the corresponding BAT file.
 
As I stated earlier, I changed the value of the iMaintinenceModifier line in the CIV4BuildingInfos file from 0 to -15.

When I accidentally did so in the base game, it changed the effect of the Jail. When I fixed my mistake and reverted the tag to its default value, the change went away. There was no change when I did the same thing in the corresponding BAT file.

Well, I altered both the base game CIV4BuildingInfos file and the BAT file and saw no difference in either 'Pedia. How did you determine that there was a different effect?
 
Back
Top Bottom