Removing Data

Grumble Grumlbe Grumble

Hello,


While working on a mod, I've noticed that teh Changes I was making to the xml's were not showing up. This was Encredibly frustrating.

I then noticed what appears to be the cause. I had removed data from the game, inorder to move and rearrange it (tech tree xml). I noticed in my tests, that the Tech tree techs I had removed were still there!

I also noticed that the products of the research (in this case, modules and weapons) were still listed under the old tech tree even though I had removed those too from teh game!!

What I am trying to accomplish is overwriting and removing data from the game. Totally. I don't want to alter the original Data files (that kinda ruins the purpose of a mod), but I can't figure out anyother way.

Can anyone offer some light on this subject?
4,145 views 3 replies
Reply #1 Top
ok, I figured it out, Here is a detailed explanations.

The organization of the Mod folder is cut into two different sections. One section is for file replacement and overwriting, the other is for file addition (at least as far as I can tell).

Here is the folder structure:

Mods
\yourmod
\Data
\Sub Directories.

If you want your file to REPLACE a game file, you must place your moded file in the \Data Directory. It must also have the same name as the file you want to replace.

For example, if you want to Remove the trade technologies, you must create a new TechTree.xml with all the Techs you want in the game and place it in \Data. The game will use your TechTree.xml instead of its own TechTree.xml

If you place your TechTree.xml in a \SubDirectory, say the one marked Techs (makes sense right?), your "removed technology" will magically appear in your games. The Game looks at the files in the \Sub Directories as addons. It will think that your files are just new techs to add to the existing tech tree.

Hope that helps anyone who has the magical urge to throw soething out the window cause thier mod isn't working.

Note: It seems that this "addon vs replace" is limited to \Data files. Other folders seem to look at files in a replacement-esque mannor.
Reply #2 Top
If you want your file to REPLACE a game file, you must place your moded file in the \Data Directory. It must also have the same name as the file you want to replace.

For example, if you want to Remove the trade technologies, you must create a new TechTree.xml with all the Techs you want in the game and place it in \Data. The game will use your TechTree.xml instead of its own TechTree.xml

If you place your TechTree.xml in a \SubDirectory, say the one marked Techs (makes sense right?), your "removed technology" will magically appear in your games. The Game looks at the files in the \Sub Directories as addons. It will think that your files are just new techs to add to the existing tech tree.


Correct.
Reply #3 Top
thanks K R Y O

I was seriously going nuts for the last 2 evenings trying to figure it out.
Now I can finish my damn mod and test it.

On a side, note, is this info in the modding guide? I skimmed through it, but didn't see anything (perhaps I was looking in the wrong spots though)