Page 1 of 1

Mod Issues, Spartan/GOT installed

Posted: Sat Mar 03, 2007 6:58 pm
by mothax7
I'm trying to make a mod based on something I read in the chronicles, somewhere, to the effect that when other Greek city states would ask for military aid of one another, they would ask for men or ships, but when her allies requested aid of Sparta, they usually asked for a commander.

Anyway, I've made a mod where I simply changed the stats of the Leonidas unit to make a more generic Polemarch unit unique to the Spartans for use in the mod in place of the generic Western General. I changed all the appropriate references in the squad, building, and localization_a files having to do with the unit and then ran the localiser.exe from the directory above the 'data' folder for the mod, producing a text file called 'Lstrings' in the same directory, but every time I open the game and run it with the mod, it still lists the unit as 'Leonidas' in the Pedia and then crashes at the turn when the unit is produced.

Any clue how to fix this, then?

Posted: Sun Mar 04, 2007 5:48 pm
by IainMcNeil
We add some clever stuff to stop the game turning English if you bought Gates of Troy which seems to intefere with mods. Are you changing the data in GoT or in Spartan? You may have to try doing it in both :(

Posted: Sun Mar 04, 2007 6:03 pm
by mothax7
I think I only edited it in the Troy folder. Since the Leonidas unit came with the expansion, I assumed that was all that was necessary. I'll try adding it to the original Spartan files, as well, and post back with my results.

Posted: Tue Mar 06, 2007 7:56 pm
by mothax7
I copied over the content of the Mod folder in Troy to the Spartan folder, but still, no dice. I've a feeling the problem is one where the game is not reading my changes to the localization files for some reason. Perhaps I don't have the directories arranged properly. There were no instructions with the Mod kit about where the localizer.exe files were supposed to go, for instance. Currently, I have them within the Mod folder alongside the folders for the individual mod files. When I try to run the localizer from within the individual mod files, I get an error message.

Posted: Tue Mar 06, 2007 11:13 pm
by IainMcNeil
The localiser.exe needs to sit with the game exe.

Posted: Sun Mar 11, 2007 8:01 pm
by mothax7
It's still not working. Has anyone else been able to rename units in the game with Spartan and Gates of Troy installed? Maybe I could get an idea of what I'm doing wrong by looking at some of their files.

Also, I've noticed that in the 'Strings' file generated by the localizer, the unitID for 77, Leonidas, is blank. Maybe the localizer only works on units from Spartan? I'll test it.

Posted: Sun Mar 11, 2007 9:44 pm
by pipfromslitherine
If I recall correctly (and this is going back quite a way!) Troy uses an 'overlay' text file - with some char which is used to denote that it should use the Spartan version of the string. I would recommend editing this file and then replacing the Troy lang file (I don't have it in front of me but I think it's lang_a.str?).

Cheers

Pip

Posted: Mon Mar 12, 2007 8:41 am
by brasidas
I had similar problems see my thread on this at http://www.slitherine.com/eslitherine/f ... php?t=1935