Small Moddifications to the XML does not work: Attempting to Mod Terrain

I wanted to make my first modding test.

I Split the file "terrainTypes.xml" in 2 seperate files: One for the world map and one for the tactical battles.

Then I made the following modifications

- Allowed land units to move on cliff tiles

- Allowed sea units to move on beaches

- Change the name of terrain "Submerged" to "Water".

I deleted the original "TerrainType.xml" file, I deleted the "data.zip"

I loaded the game and none of the modifications above seems to work.

Is it possible that the file "TerrainType.xml" is obsolete and not used anymore?

What is weird is that in the original game, the sea units can move on beaches. The second weird thing was that there is no link to the graphic files used for the clothmap.

I tried looking for all other files that could contain terrain information and cannot find any.

2,363 views 7 replies
Reply #1 Top

You cannot break up TerrainTypes.xml without breaking its functionality. It has to be in one file.

PS. You should post these mod questions in the mod section.

Reply #2 Top

You cannot break up TerrainTypes.xml without breaking its functionality. It has to be in one file.

OK if I cannot break the file. But since the original file does not exist anymore, where is it getting it's information. Certainly not from my files because the modifications does not applies.

PS. You should post these mod questions in the mod section.

Sorry, since it was more like a bug, I thought it would be posted here.

 

 

Reply #3 Top

If a map has terrain that is properly defined, and then you load the map without the terrain.xml, the map will crash the game. I can only assume that the basic terrains therefore have some sort of redundancy built into the main elemental.exe. It is, in my mind, propbable that these redundant terraintypes were what was loaded, since you broke the structure of the original terraintypes.xml.

As far as I know, these redundancy checks only appear in terraintypes and environmenttypes.

If you do not break the file, your changes will function.

Sorry, since it was more like a bug, I thought it would be posted here.
End of quote

In my opinion, a mod that does not function does not qualify as a "bug". The problem is the mod, not the original files. Maybe I am wrong, but that's how I see it.

 

Reply #4 Top

I'll try fusionning back the files but change the name. If it does not work, I'll change the values directly.

Reply #5 Top

So I recopies the terraintype.xml in it's original position and removed my files.

I have modifiied 3 parameters in the terraintype.xml (exacly the same as above)

and nothing happens.

It really looks like an obsolete file, or like you said, there is a backup file somewhere.

 

Reply #6 Top

Strange, it works for me. Just open the original terraintypes.xml and do your edits.

Reply #7 Top

Hmm Weird. I have 2 computers with the same game, I'll try doing it on my second computer.