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
mansion1.hps FATAL ERROR
Victor Offline
Member

Posts: 83
Threads: 19
Joined: Oct 2011
Reputation: 2
#1
mansion1.hps FATAL ERROR

I'm a noooooooooooooooobie in scripting and 'customstoryng", and this is my 5th attempt to make a key work in a door (yes, I am THAT noobie). I've watched several tutorials and followed them correctly, but I can't start my custom story. If I try to start it, the game crashes and a window with the following words pops up:

"FATAL ERROR: Could not load script file 'custom_stories/hello/maps/mansion1.hps(mansion1 is the name of the .map file too)!' main (27,2): ERR : Unexpected end of file"

In the .hps file is like this:

////////////////////////////
// Run first time starting map
void OnStart()
{
void AddUseItemCallback("", "keymansion1, "mansion1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion1", 0, false)
RemoveItem("keymansion1");
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

I just copied this from the tutorial and added the codes to make the key work (like in the youtube tutorials I've been watching).
Please, can you guys HELP ME?
(This post was last modified: 01-08-2013, 04:25 PM by Victor.)
10-17-2011, 10:39 PM
Find


Messages In This Thread
mansion1.hps FATAL ERROR - by Victor - 10-17-2011, 10:39 PM
RE: mansion1.hps FATAL ERROR - by Your Computer - 10-17-2011, 10:42 PM
RE: mansion1.hps FATAL ERROR - by Victor - 10-17-2011, 11:00 PM
RE: mansion1.hps FATAL ERROR - by LowFire3 - 10-17-2011, 11:00 PM
RE: mansion1.hps FATAL ERROR - by Victor - 10-17-2011, 11:05 PM
RE: mansion1.hps FATAL ERROR - by LowFire3 - 10-17-2011, 11:18 PM
RE: mansion1.hps FATAL ERROR - by Victor - 10-17-2011, 11:32 PM
RE: mansion1.hps FATAL ERROR - by Juby - 10-18-2011, 01:57 AM



Users browsing this thread: 1 Guest(s)