thestormcrow
Junior Member
Posts: 12
Threads: 8
Joined: Apr 2013
Reputation:
0
|
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 |
|
Yare
Junior Member
Posts: 22
Threads: 2
Joined: Mar 2013
Reputation:
0
|
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 |
|
thestormcrow
Junior Member
Posts: 12
Threads: 8
Joined: Apr 2013
Reputation:
0
|
RE: Map Crash Error
It works now
Thank you so much!
|
|
04-04-2013, 08:51 PM |
|