Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CANT GET MY CUSTOM STORY WORKING!!!
Author Message
TheDevKID Offline
Junior Member

Posts: 1
Joined: Jun 2012
Reputation: 0
Post: #1
CANT GET MY CUSTOM STORY WORKING!!!
Help! There's a problem when i am trying to test my custom story out!! Sad

It says:

FATAL ERROR: Could not load script file 'custom_stories/test/maps/test.hps'!
main (6, 5) : ERR : No matching signatures to 'SetPlayerSanity(const uint);

Here's my code (just testing out the sanity)

////////////////////
//Runs when the player starts the map
void OnStart()
{
SetPlayerLampOil(0);
SetPlyaerSanity(15);
}

////////////////////
//Runs when the player enters the map
void OnEnter()
{

}

////////////////////
//Runs when the player leaves the map
void OnLeave()
{

}

Any help would be great... thanks!!! Smile
06-06-2012 12:23 PM
Find all posts by this user Quote this message in a reply
Prelauncher Offline
Senior Member

Posts: 392
Joined: May 2011
Reputation: 11
Post: #2
RE: CANT GET MY CUSTOM STORY WORKING!!!
You've spelled player wrong

Calories (noun): Tiny creatures that live in your closet and sew your clothes a little bit tighter every night.
06-06-2012 12:38 PM
Find all posts by this user Quote this message in a reply
Traggey Offline
The Doctor

Posts: 1,938
Joined: Feb 2012
Reputation: 109
Post: #3
RE: CANT GET MY CUSTOM STORY WORKING!!!
''SetPlyaerSanity(15);''

Proof read dat shiet boy.

06-06-2012 12:44 PM
Find all posts by this user Quote this message in a reply
Datguy5 Offline
Senior Member

Posts: 622
Joined: Dec 2011
Reputation: 12
Post: #4
RE: CANT GET MY CUSTOM STORY WORKING!!!
Also you could put them in the OnEnter.

06-06-2012 01:06 PM
Find all posts by this user Quote this message in a reply
Putmalk Offline
Senior Member

Posts: 275
Joined: Apr 2012
Reputation: 15
Post: #5
RE: CANT GET MY CUSTOM STORY WORKING!!!
(06-06-2012 01:06 PM)Datguy5 Wrote:  Also you could put them in the OnEnter.
That wouldn't be advisable unless you want it to happen every time you enter the map....

Check me out at my youtube channel: http://www.youtube.com/user/Putmalk?feature=mhee

I post videos of my Amnesia creations.
06-06-2012 04:17 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)