• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days (this includes any time you see the message "account suspended"). For more updates please see here.

Editing xml's has no effect

Bullet

Chieftain
Joined
Oct 31, 2012
Messages
5
Just as the titles says, if I make ANY adjustments to the xml files it Makes for absolutely no effect on the gameplay. Needless to say I cannot create or add units nor can I edit their stats. What could be the cause of this?
 
Moderator Action: Moved to C&C.

If you're on WinVista/7, then please check if your changes are really still there, and not that the security settings have reverted your changes.
If this is not the case, then please hold down shift during loading. This should clear the cache and your changes should be applied then.
 
Moderator Action: Moved to C&C.

If you're on WinVista/7, then please check if your changes are really still there, and not that the security settings have reverted your changes.
If this is not the case, then please hold down shift during loading. This should clear the cache and your changes should be applied then.

I am using 7. I am not sure about the caching. I don't think it is caching for two reasons

1. The files I have altered are still altered before and after loading the game. I checked them and rechecked them.

2. When the loading screen is up is specifically says that it is loading uncached XMLs

I don't know sir. I tried pressing shift as you asked. I tapped it vigorously, held it down, etc.

I at first thought that this was becuase there was something wrong with how I was trying to create units since they simply would not show up in the game after I attempted to create them. I then thought that it might be that no XML edits I do show up at all. To test this I went to EVERY unitinfo XML listed in my Beyond the Sword directory whether it was the main assets folder or for the mod I am loading and I adjusted the stats for the HRE Landsknecht. I start up a new game quickly and then go into the world editor and place a few Landsknechts on the map only to find their stats are the same and my editing is not working. I don't know what I'm doing wrong.
 
I am using 7. I am not sure about the caching. I don't think it is caching for two reasons

1. The files I have altered are still altered before and after loading the game. I checked them and rechecked them.

2. When the loading screen is up is specifically says that it is loading uncached XMLs

I don't know sir. I tried pressing shift as you asked. I tapped it vigorously, held it down, etc.

I at first thought that this was becuase there was something wrong with how I was trying to create units since they simply would not show up in the game after I attempted to create them. I then thought that it might be that no XML edits I do show up at all. To test this I went to EVERY unitinfo XML listed in my Beyond the Sword directory whether it was the main assets folder or for the mod I am loading and I adjusted the stats for the HRE Landsknecht. I start up a new game quickly and then go into the world editor and place a few Landsknechts on the map only to find their stats are the same and my editing is not working. I don't know what I'm doing wrong.

Did you make sure that the files are actually being changed? Vista and 7 don't allow non-admin programs to change the contents of the Program Files directories.
 
Vista and 7 don't allow non-admin programs to change the contents of the Program Files directories.

Right click, Run As Administrator when opening notepad, or turn off the User Account Control. Better still especially if your going to do a lot of editing and modding, re-install the game to another drive or to another folder, other than Program Files which is a protected folder, on the C: drive.
 
Then please .zip the whole thing and attach it here. I want to take a look at it.

The whole thing? As in my entire BTS directory or just the XML folder? Because the BTS directory would be almost one and a half gigs. I went ahead and added the XML folder if that's what you meant.
 

Attachments

Did you make sure that the files are actually being changed? Vista and 7 don't allow non-admin programs to change the contents of the Program Files directories.

Well as I said I have checked the XML files and the changes I have made appear on the text every time I open them with an XML editor. If there's another way to check the files that you are referring to then I'll sure try it.
 
AAAAHHHH! You didn't edit the original files, did you? NEVER do that!
Civ has a very easy modding system, so don't edit the original files, create a mod!


And what sort of changes are we supposed to see in your files?
Checked the Landsknecht, looks normal :dunno:.
 
Well as I said I have checked the XML files and the changes I have made appear on the text every time I open them with an XML editor. If there's another way to check the files that you are referring to then I'll sure try it.

Try opening them with another program than what you used to make the changes, or better yet, another user account if you can. Windows SANDBOXES changes to the Program Files folders, so even though you can't edit the files, it fools you into thinking that you can.
 
AAAAHHHH! You didn't edit the original files, did you? NEVER do that!
Civ has a very easy modding system, so don't edit the original files, create a mod!


And what sort of changes are we supposed to see in your files?
Checked the Landsknecht, looks normal :dunno:.

I just upped its strength a little. It should be at 8 instead of 6. I did edit files from a mod originally but it wasn't working. THat's why I edited the original files. Basically I ran out of options and thought that was the last thing I hadn't done
 
Actually, not a big deal if you know what you are doing.

Whenever I am designing new python traits, I do my tests by editing the original leader info files themselves, because obviously none of the BTS leaders will start with those new traits.

If I edit the original file, all I need is change 1 trait of any leader, usually Alexander since he is the first, and I am done and can do my testings. Of course, after my tests are done, I switch him back to original traits.

Following the common advise not to edit original files, then I will have to copy and paste a new leaderinfo XML file and do the same thing as above, and then after my test I still have to delete that new file. Too troublesome.
 
Actually, not a big deal if you know what you are doing.

Whenever I am designing new python traits, I do my tests by editing the original leader info files themselves, because obviously none of the BTS leaders will start with those new traits.

If I edit the original file, all I need is change 1 trait of any leader, usually Alexander since he is the first, and I am done and can do my testings. Of course, after my tests are done, I switch him back to original traits.

Following the common advise not to edit original files, then I will have to copy and paste a new leaderinfo XML file and do the same thing as above, and then after my test I still have to delete that new file. Too troublesome.

And if something goes wrong, bye bye civ. Not really an issue for someone who's good at modding and is careful, but the last thing you need is someone overestimating their skills blowing up their civ install because they decided to edit original files.
 
Yup, so the common advise "NEVER" to edit original files, is only true when you have no idea what you are doing, or making big changes that are hard to revert.

Changing a leader trait is just changing one word, followed by ctrl z to undo it after I am done.
No reason to make a new file and go through so many extra steps just for that.
 
You COULD use CustomAssets.
 
Isn't that the same? I have to create a new file in Custom Assets, edit it, and delete it after I am done, and empty recycle bin.

Compared to editing one word in original file, and simply ctrl z after I am done, which is easier?
 
... ... ... Speechless
How hard is it to type back one word even if the computer crashes?
You made it sound like it is very difficult to open up the file again, and change back just one word...
 
Back
Top Bottom