This is my first foray into modding; I've read Kael's guide, but I'm mostly learning as I go.
I've run into a problem where the game crashes pretty reliably, but I have no idea why. I've got Live Tuner and debug panel up, but the second the game crashes then both of those dump their data - not that I would really know what to look for anyway!
I've looked through the Civ5DebugDatabase, and the variables are set the way I intended, but I have no idea what's causing the crash.
Is there anywhere I can go to find a snapshot of what the game was trying to process when it crashed, or is the only way to figure it out by trying to identify errors in my code/logic?
My code is simple. I'm trying to limit the player to one of two civilizations (but leave them all open for the AI).
I've tried:
and the long way:
Individually excluding each civ, for example:
<Update>
<Set Playable="false"/>
<Where Type="CIVILIZATION_AZTEC"/>
</Update>
<Update>
<Set Playable="false"/>
<Where Type="CIVILIZATION_CHINA"/>
</Update>
...for all ~30 civs.
Both methods seem to work at first but cause a crash once the player's turn ends.
Thanks for any help or advice!
I've run into a problem where the game crashes pretty reliably, but I have no idea why. I've got Live Tuner and debug panel up, but the second the game crashes then both of those dump their data - not that I would really know what to look for anyway!
I've looked through the Civ5DebugDatabase, and the variables are set the way I intended, but I have no idea what's causing the crash.
Is there anywhere I can go to find a snapshot of what the game was trying to process when it crashed, or is the only way to figure it out by trying to identify errors in my code/logic?
My code is simple. I'm trying to limit the player to one of two civilizations (but leave them all open for the AI).
I've tried:
Spoiler :
<GameData>
<Update>
<Set Playable="false" />
<Where Playable="true"/>
</Update>
<Update>
<Set Playable="true"/>
<Where Type="CIVILIZATION_AMERICA"/>
</Update>
<Update>
<Set Playable="true"/>
<Where Type="CIVILIZATION_ARABIA"/>
</Update>
</GameData>
<Update>
<Set Playable="false" />
<Where Playable="true"/>
</Update>
<Update>
<Set Playable="true"/>
<Where Type="CIVILIZATION_AMERICA"/>
</Update>
<Update>
<Set Playable="true"/>
<Where Type="CIVILIZATION_ARABIA"/>
</Update>
</GameData>
and the long way:
Spoiler :
Individually excluding each civ, for example:
<Update>
<Set Playable="false"/>
<Where Type="CIVILIZATION_AZTEC"/>
</Update>
<Update>
<Set Playable="false"/>
<Where Type="CIVILIZATION_CHINA"/>
</Update>
...for all ~30 civs.
Both methods seem to work at first but cause a crash once the player's turn ends.
Thanks for any help or advice!