AW Arcaeca
Deus Vult
SO basically what I've concluded from the sanity check that Nutty suggested:
The game has no idea what to do with this line:
All the variables and functions used seems to be valid, so maybe this is the problem: On turn 0, as I said before, the game is somehow deducing that I'm at war with someone because otherwise it wouldn't be able to get past this line:
I think the game is registering the barbarians as the enemy team in question, which would pose a problem since then the game would be trying to index the X and Y coordinates of the barbarian capital...
Have you ever heard of a barbarian capital in Civ5? Neither have I.
So, is there some part of the code we could change to exclude Barbarians as a valid team to check, and see if that solves the problem? Furthermore, just as an aside, I don't remember but are the Barbarians Player ID 63 or Team ID 63?
The game has no idea what to do with this line:
Code:
Map.PlotDistance(iUnitX, iUnitY, pEnemyPlayer:GetCapitalCity():GetX(), pEnemyPlayer:GetCapitalCity():GetY())
Code:
if Teams[pPlayer:GetTeam()]:IsAtWar(pEnemyPlayer:GetTeam()) then
Have you ever heard of a barbarian capital in Civ5? Neither have I.
So, is there some part of the code we could change to exclude Barbarians as a valid team to check, and see if that solves the problem? Furthermore, just as an aside, I don't remember but are the Barbarians Player ID 63 or Team ID 63?