To RTW Modders: Be careful when reassigning faction ownership
Hey, just wanted to share a little knowledge and a little problem I've been having modding the units in RTW. I've played around with giving more hitpoints and raising/lowering attack and defense stats, but where I run into trouble is when I try to reassign a unit to a different faction.
For instance, I experimented with allowing only the Roman Julii to have Hastati. I also changed the descr_strat.txt file to remove hastati from all other factions. However, the game refused to load afterwards.
After further exploration, I found that units where assigned to their factions in export_descr_buildings.txt as well as in export_descr_unit.txt. I tried again, changing hastati faction affiliation in both files and removing them from all other factions in the descr_strat.txt file, but again, the game refused to load.
I'm guessing there's another file that assigns units to factions, but I haven't run across it yet.
Re: To RTW Modders: Be careful when reassigning faction ownership
If the game is crashing on load, it means you have a (syntax) error. Make sure you set it to valid enums.
I just tried it myself, and this works fine. (I replaced the bulk of the crap in the object with ..., only the ownership variable needs changing)
Change
Quote:
type roman hastati
...
ownership roman
To
Quote:
type roman hastati
...
ownership romans julii
and the game should load correctly, and then, only Julii can buy hastati in quick/custom battles.
For the campaign, you will also need to edit the export_descr_buildings.txt file. Change all occurrences of the line
Quote:
recruit "roman hastati" 0 requires factions { roman, } and not marian_reforms
To
Quote:
recruit "roman hastati" 0 requires factions { romans julii, } and not marian_reforms
Strangely, most factions with a space in the name (like the Romans and Greek Cities) use a underscore in these files, but the Julii don't.
Re: To RTW Modders: Be careful when reassigning faction ownership
Thanks for the reply.
I'll be sure to re-double check myself when I attempt it later tonight!