[SCRIPT] Map Crash Error - 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: [SCRIPT] Map Crash Error (/thread-21045.html) |
Map Crash Error - thestormcrow - 04-04-2013 Hi - since creating the .hps file for my map, it just crashes on launch with this error message; FATAL ERROR: Could not load script file 'custom_stories/Test_Level/maps/intro.hps'! main (19,2) : ERR : No matching signatures to "SetLevelDoorLocked(string@&, string@&, const bool) I'm assuming it means there's something I've not specified to do with the SetLevelDoorLocked function, but really I have no idea - I have tried everything I can think of. my hps file contains this: void OnStart() { AddUseItemCallback("OpenDoor", "storehouse_key", "level_dungeon_4", "unlock_door", true); } void OnEnter() { AddDebugMessage("OnEnter!", false); } void OnLeave() { AddDebugMessage("OnLeave!", false); } void unlock_door(string &in asItem, string &in asEntity) { SetLevelDoorLocked("unlock_door", "storehouse_key", false); RemoveItem("asItem"); } I will be really grateful if someone can tell me how to fix this ^^ RE: Map Crash Error - Yare - 04-04-2013 SetLevelDoorLocked goes due to this pattern: Code: SetLevelDoorLocked("NameOfLevelDoor", true - lock/false - unlock); This is how it should look like: Code: SetLevelDoorLocked("level_dungeon_4", false); RE: Map Crash Error - thestormcrow - 04-04-2013 It works now Thank you so much! |