Frictional Games Forum (read-only)

Full Version: Map Crash Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 ^^
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);
It works now Big Grin
Thank you so much!