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
Onleave()?... Fatal error..
Tirilno Offline
Junior Member

Posts: 27
Threads: 5
Joined: Jul 2011
Reputation: 0
#1
Onleave()?... Fatal error..

I can't go through my second door. Then I get this error.

FATAL ERROR: could not load script file
'custom_stories/DanielsServants/Custom_stories/DanielsServants/Maps
/C:/Program Files/Amnesia - The Dark Descent/redist/custom-stories/DanielsServants/Maps/Hall.hps'!
ExecuteString (1,1):ERR : No matching signatures to 'OnLeace()' main (12,2):ERR: Unexpected end of file

anyone know how to fix this? Tongue

And this is my hps file.

void OnStart()
{
AddUseItemCallback("", "Key_1", "Storagedoor", "UsedKeyOnDoor, true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Storagedoor", false, true);
PlaySoundAtEntity("", "Unlock_door", "Storagedoor", 0, false);
RemoveItem(Key_1);
}

Void Onleave()
{

}
(This post was last modified: 07-07-2011, 07:38 PM by Tirilno.)
07-03-2011, 09:49 PM
Find
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#2
RE: Onleave()?... Fatal error..

OnLeave, not Onleave.
07-03-2011, 10:31 PM
Find
Tirilno Offline
Junior Member

Posts: 27
Threads: 5
Joined: Jul 2011
Reputation: 0
#3
RE: Onleave()?... Fatal error..

(07-03-2011, 10:31 PM)Roenlond Wrote: OnLeave, not Onleave.
I changed it and it's not working.
07-03-2011, 10:40 PM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#4
RE: Onleave()?... Fatal error..

capitalization also matter for void

void OnLeave()
{

}

(This post was last modified: 07-03-2011, 10:43 PM by Russ Money.)
07-03-2011, 10:42 PM
Find
Tirilno Offline
Junior Member

Posts: 27
Threads: 5
Joined: Jul 2011
Reputation: 0
#5
RE: Onleave()?... Fatal error..

(07-03-2011, 10:42 PM)Russ Money Wrote: capitalization also matter for void

void OnLeave()
{

}
It's not working :/
07-03-2011, 10:48 PM
Find
Poppuhik42 Offline
Junior Member

Posts: 20
Threads: 1
Joined: Apr 2011
Reputation: 0
#6
RE: Onleave()?... Fatal error..

-----
(This post was last modified: 12-13-2012, 10:34 PM by Poppuhik42.)
07-03-2011, 11:00 PM
Find
Tirilno Offline
Junior Member

Posts: 27
Threads: 5
Joined: Jul 2011
Reputation: 0
#7
RE: Onleave()?... Fatal error..

(07-03-2011, 11:00 PM)Swistrobl Wrote:
RemoveItem(Key_1);
}

I suppose you should put quotation marks around Key_1.

EDIT: Also another quotation mark after UsedKeyOnDoor.
"UsedKeyOnDoor", true);
Thanks! Now I came through the second door Big Grin but I got a new problem. after I unlock the third door with the key, I can't enter it.. I don't get any errors but I simply just can't go through the door..
07-03-2011, 11:12 PM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#8
RE: Onleave()?... Fatal error..

(07-03-2011, 11:12 PM)Tirilno Wrote:
(07-03-2011, 11:00 PM)Swistrobl Wrote:
RemoveItem(Key_1);
}

I suppose you should put quotation marks around Key_1.

EDIT: Also another quotation mark after UsedKeyOnDoor.
"UsedKeyOnDoor", true);
Thanks! Now I came through the second door Big Grin but I got a new problem. after I unlock the third door with the key, I can't enter it.. I don't get any errors but I simply just can't go through the door..

As in it's still locked or what? Make sure the names are spelled exactly the same.

07-04-2011, 01:00 AM
Find
DamnNoHtml Offline
Senior Member

Posts: 469
Threads: 34
Joined: Sep 2010
Reputation: 16
#9
RE: Onleave()?... Fatal error..

Also, your door could be improperly planted. If its stuck in the ground even by a single pixel, it won't move. Try setting it to half its size just to see if this is the problem.

Creator of Wake, Through the Portal, Insomnia, and Cycles What to do with HPL3....
07-04-2011, 04:35 AM
Find
Paulpolska Offline
Member

Posts: 144
Threads: 29
Joined: Jun 2011
Reputation: 0
#10
RE: Onleave()?... Fatal error..

ERR: Unexpected end of file

so you dont have little characters

RemoveItem(Key_1)
change to
RemoveItem("Key_1");

MY CUSTOM STORY - - STILL ALIVE - -
http://www.moddb.com/mods/still-alive
07-04-2011, 11:22 AM
Find




Users browsing this thread: 3 Guest(s)