RE: Custom Story Crash [SOLVED]
Well...my ERROR is kinda similar to XxRoCkBaNdMaNxX (the 2nd error/s that is...except...my is only one error type:
FATAL ERROR: Could not load script file "custom_stories"/RoaringCorridors/custom_stories/RoaringCorridors/maps/00_roaringcorridors.hps!
main (21,2): ERR : Expected ';'
My hps.file:
///////////////////////////
// Run first time starting map
void OnStart()
{
CreateEntityAtArea("servant_grunt_6", "servant_grunt.ent", "RoomAreaThree", false);
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
AddEntityCollideCallback("Player", "RoomOneArea", "CollideRoomOne", true, 1);
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
PlaySoundAtEntity("unlocksound", "unlock_door.snt", "hall", 0.0f, false);
RemoveItem("hallkey_1");
}
void CollideRoomOne(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_1", true, true);
SetSwingDoorClosed("hall", false, true)
SetEnemyIsHallucination("servant_grunt_6", true);
FadeEnemyToSmoke("servant_grunt_6", true);
ShowEnemyPlayerPosition("Player");
}
///////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "hallkey_1", "hall", "KeyOnDoor", true);
SetSwingDoorLocked("hall", false, true);
SetSwingDoorLocked("outsidedoor" , false, true);
PlaySoundAtEntity("", "unlock_door" , "outsidedoor" , 0, false);
RemoveItem("outsidekey_1");
PlaySoundAtEntity("unlocksound", "unlock_door.snt", "hall", 0.0f, false);
RemoveItem("hallkey_1");
SetEntityPlayerLookAtCallback("fire_place_3", "looking", true);
}
///////////////////////////
// Run when leaving map
void OnLeave()
{
}
And my "extra_english.lang" file:
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">This is a short map with creepy
corridors</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_hall_key">Tag reads "Hall Key".</Entry>
<Entry Name="ItemName_hall_key">Hall Key</Entry>
<Entry Name="ItemName_outsidekey_1">Outside Key</Entry>
<Entry Name="ItemDesc_outsidekey_1">Tag reads "Outside Key"</Entry>
</CATEGORY>
</LANGUAGE>
(This post was last modified: 08-21-2011, 07:10 PM by TheReaper2011.)
|