Custom Story Crash [HAVING THE PROBLEM ONCE AGAIN] - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Custom Story Crash [HAVING THE PROBLEM ONCE AGAIN] (/thread-6180.html) |
RE: Custom Story Crash [SOLVED] - TheReaper2011 - 08-22-2011 OK....i changed it around a bit (looked around at someone else's "hps" and i changed mine like this: My hps: void OnStart() { AddQuest("hauntedhallquest", "HauntedHallQuest"); AddEntityCollideCallback("Player", "Walk_Quest_Area", "GetWalkQuest", true, 1); CreateEntityAtArea("servant_grunt_6", "servant_grunt.ent", "RoomAreaThree", false); AddEntityCollideCallback("Player", "Walk_Complete_Area", "FinishWalkQuest", true, 1); AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1); AddEntityCollideCallback("Player", "RoomOneArea", "CollideRoomOne", true, 1); AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1); } 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); } void GetWalkQuest(string &in asParent, string &in asChild, int alState) { } void FinishWalkQuest(string &in asParent, string &in asChild, int alState) { CompleteQuest("hauntedhallquest", "HauntedHallQuest"); } 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"); } Now that type of hps (in this order) i saw that from the user "Bennick"... BUT....again and again the annoyance continues repetedly: - FATAL ERROR: Could not load script file 'custom_stories/RoaringCorridors/custom_stories/RoaringCorridors/maps/00_roaringcorridors.hps'! main (33, 18) : ERR : Expected identifier main (34, 11) : ERR : Expected identifier main (35, 1) : ERR : Unexpected token '}' Why..i dunno...the error/s are less but in each one that occured (and i kept changing lines insanely) it keeps mentioning "Unexpected token"...and of course "Expected Identifier" What am i doing wrong? Sorry to bother, for the well, 3rd time, but this error is pulling my nerves. Im creating my nice little map with creepy corridors and jump moments/scares...and i can't even load it RE: Custom Story Crash [SOLVED] - RawkBandMan - 08-25-2011 I'm having more troubles. The exact same problem as in the OP, and I can't figure out why this time tho.... extra_english.lang Spoiler below!
hpl Spoiler below!
|