Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Map Crash Error
thestormcrow Offline
Junior Member

Posts: 12
Threads: 8
Joined: Apr 2013
Reputation: 0
#1
Map Crash Error

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 ^^
04-04-2013, 08:28 PM
Find Reply
Yare Offline
Junior Member

Posts: 22
Threads: 2
Joined: Mar 2013
Reputation: 0
#2
RE: Map Crash Error

SetLevelDoorLocked goes due to this pattern:

SetLevelDoorLocked("NameOfLevelDoor", true - lock/false - unlock);

This is how it should look like:

SetLevelDoorLocked("level_dungeon_4", false);
04-04-2013, 08:43 PM
Find Reply
thestormcrow Offline
Junior Member

Posts: 12
Threads: 8
Joined: Apr 2013
Reputation: 0
#3
RE: Map Crash Error

It works now Big Grin
Thank you so much!
04-04-2013, 08:51 PM
Find Reply




Users browsing this thread: 1 Guest(s)