Game crashes when adding a mission

ADHansa

Warlord
Joined
Jan 26, 2006
Messages
154
I am trying to add a mission to the game, but have tried and tried for the last two days and i just cant get it to work, the game crashes every time i start a new game when i include a altered CIV4MissionInfos.xml.
I have tried following the instructions in theese threds:
http://forums.civfanatics.com/showthread.php?t=171754&highlight=mission
http://forums.civfanatics.com/showthread.php?t=183339&highlight=mission

This is the changes i have made at the end of CIV4MissionInfos.xml.
Spoiler :

<MissionInfo>
<Type>MISSION_MULTI_DESELECT</Type>
<Description>TXT_KEY_MISSION_BUILD_IMPROVEMENT</Description>
<Help>TXT_KEY_MISSION_BUILD_IMPROVEMENT</Help>
<Waypoint>NONE</Waypoint>
<EntityEventType>ENTITY_EVENT_MULTI_DESELECT</EntityEventType>
<iTime>0</iTime>
<bTarget>0</bTarget>
<bBuild>0</bBuild>
<bSound>0</bSound>
</MissionInfo>
<!--Begin NoHEalMOD-->
<MissionInfo>
<Type>MISSION_RESUPPLY</Type>
<Description>TXT_KEY_MISSION_RESUPPLY</Description>
<Help>TXT_KEY_MISSION_RESUPPLY_HELP</Help>
<Waypoint>NONE</Waypoint>
<EntityEventType>ENTITY_EVENT_HEAL</EntityEventType>
<iTime>0</iTime>
<bTarget>0</bTarget>
<bBuild>0</bBuild>
<bSound>1</bSound>
<HotKey/>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>0</bCtrlDown>
<iHotKeyPriority>0</iHotKeyPriority>
<HotKeyAlt/>
<bAltDownAlt>0</bAltDownAlt>
<bShiftDownAlt>0</bShiftDownAlt>
<bCtrlDownAlt>0</bCtrlDownAlt>
<iHotKeyPriorityAlt>0</iHotKeyPriorityAlt>
<iOrderPriority>18</iOrderPriority>
<bVisible>1</bVisible>
<Button>,Art/Interface/Game Hud/Actions/heal_high_res.dds</Button>
</MissionInfo>
<!--End NoHealMod->
</MissionInfos>
</Civ4MissionInfos>


and CvEnums.h
Spoiler :
MISSION_MULTI_DESELECT,
//nohealmod
MISSION_RESUPPLY,
//nohealmod end


#ifdef _USRDLL
NUM_MISSION_TYPES
#endif
};


What am i missing? When i remove the CIV4MissionInfos.xml and changes in CvEnums.h it works fine.
 
Uh... for once, i think you have a bad comment in your XML...
Code:
<!--End NoHealMod[COLOR="DarkRed"][U][B]->[/B][/U][/COLOR]
Should be -->
Might be other typos in there... These are probably causing your crash (is there any popup, error message, etc ?), since the changes in CvEnums.h are most likely irrelewant, because - what i think you are really missing - CvEnums.h is just one of the source files for the games core. You need to recompile the Game Core for any changes to take effect...

Edit.: Sorry, i remembered your posting in the makefile thread, so you do know that you need to recompile the SDK, and you probalby did...
Did you made any other changes to the code ? Like trying to implement the mission functionality ?
And still the question remains - what does it tell you whne crashing ? (You probably want to enable logging and set HidePythonExceptions = 0 in the ini, so you get all the messages)
 
Top Bottom