I understand that this is the place to ask about XCOM 2 modding. I've added a few country flags and would like to add custom name lists to go with them, which I'm having some trouble with. I'm currently selecting the Norwegian name lists in my own snippetted version of the X2StrategyElement_DefaultCountries script. There are some things that I don't entirely understand, but it works, even with multiple mods with classes called that. I see that the default name lists are in the XComGame localization file, which are added to arrays defined in XGCharacterGenerator. I was hoping I could have my own XGCharacterGenerator, the same way I have my own X2StrategyElement_DefaultCountries, but I get this error when building:
Error, Unparsed class 'X2StrategyGameRulesetDataStructures' found while validating DependsOn entries for 'X2StrategyElement_DefaultCountries'I tried adding my own class like this:
class NameArrays extends Object;
// Icelandic
var localized array<string> m_arrIsMFirstNames;
var localized array<string> m_arrIsFFirstNames;
var localized array<string> m_arrIsLastNames; and add localization strings to it like this:
[NameArrays]
; ------------------------------------------
; --------------ICELAND---------------------
; ------------------------------------------
m_arrIsMFirstNames[0]="male1"
m_arrIsMFirstNames[1]="male2"
m_arrIsFFirstNames[0]="female1"
m_arrIsFFirstNames[1]="female2"
m_arrIsLastNames[0]="last1"
m_arrIsLastNames[1]="last2"Which builds just fine, but the game doesn't launch and the console spews array out of bounds errors. I guess the localization files aren't getting loaded? I have also found the XComNameList.ini file and I'm wondering if that's useful, but I don't know how to use it.