Mods Folder not Working Properly (TotA)

I'm using TotA 2.03.  I made a mods folder in my main Twilight directory and made a sub-folder called "Default".  I've copied "ModDescription.xml" from the original mod example provided in the game inside Galciv2/Mods/Example.  I launched the game (TotA) and chose "use mods" and selected this new directory I've created (Twilight/Mods/Default).  I exited the game to let it create all the new folders inside Default. 
Then I've copied "Planetimprovements.xml" from Twilight into Twilight/Mods/Default/Data/Planetimprovements.  I made one change to this file inside the mods folder - I've modded the Planetary Defense improvement (so that it gives +33% planetary defense). 
The result?  The game reads both the main, unmodded Planetimprovements.xml from Twilight/Data/English, as well as the modded version inside the Twilight mods folder.  As a result I have two instances of every planetary improvement available to build, including super projects/galactic achievements.  These two instances are exactly the same with the exception of the Planetary Defense building, whose first instance costs 1bc and does nothing (unmodded game) and the second instance costs 1bc and increases defense by 33% (my modification).  Obviously, the game is reading both Planetimprovements.xml files instead of just the one in mods folder.

According to the manual any file inside the Mods folder ought to replace an original file with the same name.  So WHY does it not do that?

Help appreciated.

45,605 views 11 replies
Reply #1 Top

It's because you put it in the Data/Planetimprovements folder - it should have gone in the \Data folder.

If it goes in the \Data folder it will replace the original file. If you put something in a sub-folder of \Data it will be appended to the original (or appended to the the replaced original in \Data).

Just move the file to the correct location and the duplicates will go away. (You will probably have to begin a new game)

Reply #2 Top

Thank you, that worked.

However, there is another problem.  The above procedure apparently does not work with Techtree.xml.  I copied Techtree.xml over from Twilight/Data/English to Twilight/Mods/Default/Data, but the game still reads the Techtree.xml contained in Data/English.  I can tell because I've modded the file contained in Mods folder a bit.  What's more, if I move Techtree.xml from Data/English to desktop, the game continues to read the original file!  Where the heck is the game reading this from and how do I make the Mods folder work in this case? 

I'm starting a new game each time I test to make sure it's not reading from the savefiles.

Reply #3 Top

Looks like no one else is going to chime in.

The TechTree.xml file works exactly the same. If you are having this problem I can only think that you are using the mod folders for one version of the game, but playing another.

+1 Loading…
Reply #4 Top

It appears that the problem has been resolved, somehow.

I've downloaded a mod to see how it worked there, and I've noticed that Techtree.xml was read-only.  So I've also checked read-only on my own Techtree.xml.  I can't remember if it worked right of the bat, but when I unchecked it again and restarted the game, the game all of a sudden began reading the file from my Mods folder!  After that I've made changes again, without making the file read-only and it worked again; and again, and again...  It now works fine, just like Planetaryimprovement.xml. 

Since that read-only box was the only thing I messed with, I must assume that it was responsible for the problem somehow.

Reply #5 Top

Not sure if everyone can see my above reply (some problems posting), so I'll post it again:

 

It appears that the problem has been resolved, somehow.

I've downloaded a mod to see how it worked there, and I've noticed that Techtree.xml was read-only.  So I've also checked read-only on my own Techtree.xml.  I can't remember if it worked right of the bat, but when I unchecked it again and restarted the game, the game all of a sudden began reading the file from my Mods folder!  After that I've made changes again, without making the file read-only and it worked again; and again, and again...  It now works fine, just like Planetaryimprovement.xml. 

Since that read-only box was the only thing I messed with, I must assume that it was responsible for the problem somehow.

 

Reply #6 Top

 

Hi community,

 

why is this forum only in english language??

I think we have here a great german speaking community.

Also please a german language forum too.

 

Nochmal auf deutsch:

 

Warum gibt es keine deutschsprachige  Version dieses Forums, obwohl es doch sicherlich eine große deutsche Fangemeinde dieses Spiels gibt??

Ich habe einige Fragen - meine Englischkenntnisee sind jedoch begrenzt.

 

Gruß

 

Sir William the Conquerer

 

 

 

 

Reply #7 Top

try www.i-mod-productions.com its mostly a german based site.

Reply #8 Top

Now I have a problem with raceconfig.xml.  When I put it in Mods/Default/Data it doesn't work.  Where do I put this to make it work?

Reply #9 Top

That is the correct location if you are using the \Default sub-folder for your mod.

Reply #10 Top

I was afraid someone was going to say that.  I have Planetimprovement.xml, TechTree.xml and RaceConfig.xml all in the same place.  Planetimporvement and Techtree work just fine but RaceConfig doesn't.  Very strange.

Further, I am experiencing the  same weirdness as with Techtree.xml before.  If I uncheck "Use mods" in the game, and remoce Raceconfig from the main game directory, the game works as if nothing happened.  It's as if there was some "shadow" copy of the original RaceConfig somewhere and the game reads that.  Again, the other two files - planetimprovements and techtree - work just fine from within Mods folder. 

Reply #11 Top

I think I have solved the problem.  It turned out I could mod some but not all civs.  But when I deleted the raceconfig file of the race I wanted to mod from Documents/My_Games/GC2Twilight, it all worked fine.