Frictional Games Forum (read-only)
** SOLVED ** Fatal Error when loading Custom Story? - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+---- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-37.html)
+---- Thread: ** SOLVED ** Fatal Error when loading Custom Story? (/thread-21343.html)



** SOLVED ** Fatal Error when loading Custom Story? - FurtherGames - 04-30-2013

Hello, I've started to create a custom story, I just did a key to unlock a door, but whenever I try to load the map this error comes up:

FATAL ERROR: Could not load script file 'custom_stories/Razors/maps/01.Motel.hps'!
main (3, 78) : ERR : Expected expression value



Here is my HPS File for that map;

void OnStart()
{
AddUseItemCallback("", "key_laboratory_1", "mansion_3", "FUNCTION", true,);
}

void OnEnter()
{

}

void OnLeave()
{

}

void FUNCTION(string &in item, string &in door)
{
SetLevelDoorLocked("mansion_3", false);
PlayGuiSound("unlock.door.snt", 100);
RemoveItem("key_laboratory_1");
}