I got this error when I trained a spy. I have added a unit combat for them (super spies mod) and to me it seems like unitnaming doesn't like it.
Personally, I do not think spies should be named at all. Atleast not in my mod. They are kinda mysterious or something. Could someone give me a short description how the unit naming works and how hard would it be to leave spies outside the unit naming?
BTW, how does it handle units with no unitcombat?
How I understand how it works, is that UnitNameEventManager is the key here. And possibly, class BuildUnitName onUnitBuilt calls the unit name generator, is that right? So if I add an isSpy check there it should ignore spies completely?
Code:
Traceback (most recent call last):
File "BugEventManager", line 361, in _handleDefaultEvent
File "UnitNameEventManager", line 240, in onUnitBuilt
File "UnitNameEventManager", line 444, in getUnitNameConvFromIniFile
File "BugCore", line 147, in get
File "BugCore", line 118, in _getOption
ConfigError: Option UnitNaming__Combat_SPY not found in mod UnitNaming
BTW, how does it handle units with no unitcombat?
How I understand how it works, is that UnitNameEventManager is the key here. And possibly, class BuildUnitName onUnitBuilt calls the unit name generator, is that right? So if I add an isSpy check there it should ignore spies completely?