The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
Map Crash Error - by thestormcrow - 04-04-2013, 08:28 PM
RE: Map Crash Error - by Yare - 04-04-2013, 08:43 PM
RE: Map Crash Error - by thestormcrow - 04-04-2013, 08:51 PM



Users browsing this thread: 2 Guest(s)