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
Fatal Error - Need Help
Shiro Offline
Junior Member

Posts: 3
Threads: 1
Joined: Sep 2013
Reputation: 0
#1
Fatal Error - Need Help

Hello guys, I recently started creating a custom story and I'm doing a 2nd map, so the first one went great and now this second one is giving me a problem.

This is the problem:

Quote:FATAL ERROR: Could not load script file 'custom stories/Death's Touch/maps/C:/Program Files/Steam/steammaps/common/Amnesia The Dark Descent/custom stories/Death's Touch/maps/Map02/unknown2.hps'!
Execute String(1,1) : ERR: No matching signatures to 'OnLeave()'
main (14,1(: ERR: Unexpected end of file

And this is the .hps file:

Quote:void OnStart()
{
PlaySoundAtEntity("piano", "piano", "piano", 0, false);
AddEntityCollideCallback("Player", "pianostop", "pianostop", true, 1);
AddUseItemCallback("Level Key", keylevel", "level", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("level", false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}

Thanks for helping.
(This post was last modified: 09-04-2013, 03:49 PM by Shiro.)
09-04-2013, 03:48 PM
Find
Tomato Cat Offline
Senior Member

Posts: 287
Threads: 2
Joined: Sep 2012
Reputation: 20
#2
RE: Fatal Error - Need Help

Is that the entire HPS file?
09-04-2013, 04:03 PM
Find
Shiro Offline
Junior Member

Posts: 3
Threads: 1
Joined: Sep 2013
Reputation: 0
#3
RE: Fatal Error - Need Help

(09-04-2013, 04:03 PM)Tomato Cat Wrote: Is that the entire HPS file?

Yes, it's a short map that leads to another.
09-04-2013, 04:04 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: Fatal Error - Need Help

(09-04-2013, 03:48 PM)Shiro Wrote: Hello guys, I recently started creating a custom story and I'm doing a 2nd map, so the first one went great and now this second one is giving me a problem.

This is the problem:

Quote:FATAL ERROR: Could not load script file 'custom stories/Death's Touch/maps/C:/Program Files/Steam/steammaps/common/Amnesia The Dark Descent/custom stories/Death's Touch/maps/Map02/unknown2.hps'!
Execute String(1,1) : ERR: No matching signatures to 'OnLeave()'
main (14,1(: ERR: Unexpected end of file

And this is the .hps file:

Quote:void OnStart()
{
PlaySoundAtEntity("piano", "piano", "piano", 0, false);
AddEntityCollideCallback("Player", "pianostop", "pianostop", true, 1);
AddUseItemCallback("Level Key", keylevel", "level", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("level", false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}

Thanks for helping.

void OnStart()
{
PlaySoundAtEntity("piano", "piano.snt", "piano", 0, false);
AddEntityCollideCallback("Player", "pianostop", "pianostop", true, 1);
AddUseItemCallback("Level Key", "keylevel", "level", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("level", false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}

This should fix it.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
09-04-2013, 04:14 PM
Find
Shiro Offline
Junior Member

Posts: 3
Threads: 1
Joined: Sep 2013
Reputation: 0
#5
RE: Fatal Error - Need Help

(09-04-2013, 04:14 PM)The chaser Wrote:
(09-04-2013, 03:48 PM)Shiro Wrote: Hello guys, I recently started creating a custom story and I'm doing a 2nd map, so the first one went great and now this second one is giving me a problem.

This is the problem:

Quote:FATAL ERROR: Could not load script file 'custom stories/Death's Touch/maps/C:/Program Files/Steam/steammaps/common/Amnesia The Dark Descent/custom stories/Death's Touch/maps/Map02/unknown2.hps'!
Execute String(1,1) : ERR: No matching signatures to 'OnLeave()'
main (14,1(: ERR: Unexpected end of file

And this is the .hps file:

Quote:void OnStart()
{
PlaySoundAtEntity("piano", "piano", "piano", 0, false);
AddEntityCollideCallback("Player", "pianostop", "pianostop", true, 1);
AddUseItemCallback("Level Key", keylevel", "level", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("level", false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}

Thanks for helping.

void OnStart()
{
PlaySoundAtEntity("piano", "piano.snt", "piano", 0, false);
AddEntityCollideCallback("Player", "pianostop", "pianostop", true, 1);
AddUseItemCallback("Level Key", "keylevel", "level", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("level", false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}

This should fix it.

Thank you, I'll try it, I'll report the situation right back.

EDIT: It worked, thanks! Adding rep now
(This post was last modified: 09-04-2013, 04:23 PM by Shiro.)
09-04-2013, 04:21 PM
Find




Users browsing this thread: 2 Guest(s)