This instantly crashes when you press 'x' with Super Power mod without any modifications to it. Super Power uses a city radius of 5, which should be what GameDefines.CITY_PLOTS_RADIUS is. Should I try manually setting it to 5?
-- show limits of all cities
for pCity in pPlayer:Cities () do
if pSelectedCity and pCity == pSelectedCity then
ShowCityLimit (pCity:GetX (), pCity:GetY (), sStyle.."_B")
else
ShowCityLimit (pCity:GetX (), pCity:GetY (), sStyle)
end
end
-- show limits of all cities
[B][COLOR="SeaGreen"] local iActiveTeam = Game.GetActiveTeam()[/COLOR][/B]
for pCity in pPlayer:Cities () do
[B][COLOR="seagreen"] if (pCity:Plot():IsRevealed(iActiveTeam)) then[/COLOR][/B]
if pSelectedCity and pCity == pSelectedCity then
ShowCityLimit (pCity:GetX (), pCity:GetY (), sStyle.."_B")
else
ShowCityLimit (pCity:GetX (), pCity:GetY (), sStyle)
end
[B][COLOR="seagreen"] end[/COLOR][/B]
end