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
Huge Random Error!
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Huge Random Error!

(08-30-2011, 06:37 PM)Bennick Wrote: I just worked on the level editing of one of the maps for my story, did not change the script file at ALL, and all of a sudden, that particular map does not want to load and crashes the game. Here is the error message:

FATAL ERROR: Could not load script file 'custom_stories/Homicide and Redemption/maps/C:/Program Files(x86)/Steam/steamapps/common/amnesia the dark descent/custom_stories/Homicide and Redemption/Maps/Library.hps'!
ExecuteString (1,2): ERR: Expected ';'
ExecuteString (1,1): ERR: No matching signatures to 'OnLeave()'
main (1,206):ERR : No matching signatures to 'GiveSanityBoost(const float)'

Here is my script file that used to work perfectly and has not been changed since it worked:

void OnStart()
{
FadeOut(0.0f);
FadeIn(15.0f);
PlayMusic("10_amb.ogg", true, 1.0f, 3.0f, 0.0f, true);
}

void OnEnter()
{
PlaySoundAtEntity("", "door_level_wood_close.snt", "secretbookcase", 0.0f, false);
GiveSanityBoost(80.0f);
}

Somebody please help me?

You should never have the "f" after integers, for they are for floats, or whole numbers with a decimal and pieces of whole numbers. Even if it were a float, it still wouldn't be needed.

Try this:

void OnStart()
{
     FadeOut(0);
     FadeIn(15);
     PlayMusic("10_amb.ogg", true, 1, 3, 0, true);
     PlaySoundAtEntity("", "door_level_wood_close.snt", "secretbookcase", 0, false);
     GiveSanityBoost(80);
}

08-30-2011, 06:41 PM
Find


Messages In This Thread
Huge Random Error! - by Bennick - 08-30-2011, 06:37 PM
RE: Huge Random Error! - by Kyle - 08-30-2011, 06:41 PM
RE: Huge Random Error! - by Bennick - 08-30-2011, 06:48 PM
RE: Huge Random Error! - by Kyle - 08-30-2011, 06:54 PM
RE: Huge Random Error! - by Bennick - 08-30-2011, 06:58 PM
RE: Huge Random Error! - by Bennick - 08-31-2011, 03:04 AM
RE: Huge Random Error! - by DamnNoHtml - 08-31-2011, 03:35 AM
RE: Huge Random Error! - by xiphirx - 08-31-2011, 03:44 AM
RE: Huge Random Error! - by Bennick - 08-31-2011, 06:35 AM
RE: Huge Random Error! - by xiphirx - 08-31-2011, 10:44 PM
RE: Huge Random Error! - by Bennick - 08-31-2011, 11:57 PM
RE: Huge Random Error! - by xiphirx - 09-02-2011, 12:39 AM
RE: Huge Random Error! - by Bennick - 09-02-2011, 06:49 AM



Users browsing this thread: 2 Guest(s)