Originally Posted by
ThomasHerennius
How would I go about doing so?
There are two files you need to change to get new names working correctly. Sounds like you've already found the first half for yourself, but I'll include it for anyone else who was wondering (and I'll assume you're working on vanilla rather than a mod...)
The files you need are: //campmap/names/default_heroes.txt and //Loc/Eng/names.txt
In default_heroes.txt there are lists of names used by each faction, defined like this:
Code:
SET_FORENAMES:: FN_ENGLISH 1 8
Which tells you the English names are in list 1, and the first 8 names are used for Royals
Further down you'll find the lists:
Code:
// Name list, these must match an entry in names.txt
// 1: english_forenames
ADD_FORENAMES::
"Henry"
"Edward"
"Richard"
"John"
"William"
"Alfred"
"Edmund"
"Stephen"
"Edward"
"Edgar"
"Henry"
"Henry"
...
...
"Morcar"
"Robin"
"John"
(Note some names are repeated - I think this is just to make them more frequent in the game)
So, to add a new name to the faction you need to put it in the list:
Code:
...
...
"Morcar"
"Robin"
"John"
"Arminius"
That's the first half done. The next bit is to set up the translation in //Loc/Eng/names.txt, where you'll find an array of labels and translations:
Code:
// english forenames
["Alfred"] {"Alfred"}
["Edward"] {"Edward"}
["Edmund"] {"Edmund"}
["Edgar"] {"Edgar"}
["William"] {"William"}
["Henry"] {"Henry"}
["John"] {"John"}
["Harry"] {"Harry"}
["George"] {"George"}
["Howard"] {"Howard"}
["Anthony"] {"Anthony"}
["Nigel"] {"Nigel"}
["Thomas"] {"Thomas"}
["Hugh"] {"Hugh"}
["Geoffrey"] {"Geoffrey"}
["Hubert"] {"Hubert"}
["Robert"] {"Robert"}
["Ralph"] {"Ralph"}
["Jasper"] {"Jasper"}
["Perkin"] {"Perkin"}
["Roger"] {"Roger"}
["Godwine"] {"Godwine"}
["Tostig"] {"Tostig"}
["Loefwine"]{"Loefwine"}
["Aelfgar"] {"Aelfgar"}
["Morcar"] {"Morcar"}
["Walter"] {"Walter"}
["Robin"] {"Robin"}
(Note here, even though the names (labels) in heroes.txt are repeated you should only have ONE translation for each label in names.txt)
Now, you can add your new name here in the faction list, it doesn't really matter where it goes in the file, but if you're doing a load of new names, it might be better to add them all in a block near the end of the file so you can find them easily when it all goes wrong (in modding always assume it will go wrong, it saves your sanity - as does backing up any files you are about to edit....)
But assuming you do add it to the faction list, you will end up with:
Code:
["Aelfgar"] {"Aelfgar"}
["Morcar"] {"Morcar"}
["Walter"] {"Walter"}
["Robin"] {"Robin"}
["Arminius"] {"Arminius"}
Note the label uses square brackets [] and the translation uses curly brackets {}
And that is enough to get Arminius working in the game.
The names also disappear after the next turn and are replaced with something else- at least for generals. It appears princesses retain the bugged name.
This is because generals can die of old age and be replaced by a new one with a new name.
General note, in the game's .txt files, // acts as a REM command and the game ignores everything that follows on that line.
Good luck!