Hmm, in that case you may want to just explicitly check the table for a pre-existing entry before allowing it to insert. i.e.
Code:if Game.Stats.Buildings[objectID] == nil then table.insert(Game.Stats.Buildings[objectID], stat) end
It do prevent the bug with the tech tree but it also disable the Tooltip, i think it is because it is always false. For the moment i decided to place a check on GameInfo at the start of the functions GetDefaultBuildingStatText and GetDefaultPromotionsStatText now each time we have more than one loading screen it should just disable the tooltips (with them working fine if you just launch or load one game).



I will PM him.
Yes, the problem probably is because I did have EUI added in when creating the modpacks. I apologies for occupying all your time. Rest assured, this system does work, I just need to fix it myself.