One thing I forgot to ask about, because I was testing other stuff, that has been happening since at least the last beta version already is that since then, using Really Advanced Setup is somewhat impossible if you want not play with all random civs.
What happens is that, as soon as I select any civ for anyone during setup, it fails to load the second unique icon for that civ and breaks selecting other civs or replacing the selected one until deletion of the RAS settings from the ModUserData folder. Which kiiind of defeats the purpose of why I like to use it. The issue is accompanied by this error in the lua.log:
Code:
[362882.271] Runtime Error: C:\Users\Mir Teiwaz\Documents\My Games\Sid Meier's Civilization 5\MODS\Really Advanced Setup (v 15)\UI\Main\GTAS_CivPanel.lua:204: bad argument #2 to '?' (Key must be of type 'number' or 'string'.)
Said section of code is as such, in case that gives any clues to what caused it in the first place:
Code:
for override in GameInfo.Civilization_UnitClassOverrides("CivilizationType = '" .. civ.Type .. "'") do
if count >= MAX_CIV_BUTTONS then
break;
end
local unit = GameInfo.Units[override.UnitType]; <-- This is the line causing problems, maybe related to the siege tower or some other unit change? Skirmisher?
if unit then
count = count + 1;
local instance = slot.civManager:GetInstance();
IconHookup(unit.PortraitIndex, 64, unit.IconAtlas, instance.CivPortrait);
SetIconHelp(instance.CivPortrait, unit.Description, unit.Help);
end
end
It might be a better idea to bring that up to the RAS dev, but since it only started happening after the recent betas, I figured I'd drop it here first. This happens with CBP & EUI + RAS, no other mods and at least since the Feb. 10th version, that's when I first noticed it.