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.
<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
What am i missing? When i remove the CIV4MissionInfos.xml and changes in CvEnums.h it works fine.
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
};
//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.