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
Unknown script error?
cheztheguy Offline
Junior Member

Posts: 12
Threads: 7
Joined: Jun 2011
Reputation: 0
#1
Unknown script error?

Hi guys,
I keep getting an error after clicking "start" on a custom story, and then the game crashes.

However the 'location' of the error is at the end.
I have tried removing parts of the script but the 'location' of the error (the two numbers like "20,1" have just changed to the new ending of the script)

This is hardly a finished script, but it is all I have for now. (In the spoiler)

Spoiler below!

void OnStart()
{
GiveSanityDamage(25.0f, true);
AddEntityCollideCallback("Player", False", "FalseChase", true, 0);
SetPlayerLampOil(0.0f);
}

void FalseChase(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(25.0f, true);
StartEffectFlash(1.0f, 1.0f, 1.0f);
AddTimer("FalseChaseTimer", 1.0f, "FalseChaseTimed");
}

void FalseChaseTimed(string &in asTimer)
{
SetEntityActive("servant_grunt_1", true);
StartPlayerLookAt("servant_grunt_1", 7, 50, "");
SetEnemyIsHallucination("servant_grunt_1", true);
}



However the message that the error gives me says this...

FATAL ERROR: Could not load script file 'custom_stories/Creeping Darkness II/custom_stories/Creeping Darkness II/maps/ch01/creepingdarkness2.hps'!
main (21,1): ERR : Unexpected end of file

I haven't scripted in about a week since my other computer broke down, and I might have made a simple mistake. However, would someone kindly please tell me what I did wrong?
08-26-2011, 07:01 AM
Find
Luis Offline
Frictional Games

Posts: 280
Threads: 19
Joined: Jun 2006
Reputation: 9
#2
RE: Unknown script error?

AddEntityCollideCallback("Player", False", "FalseChase", true, 0);

You are missing an opening double quote for the string "False" Smile

EOF
08-26-2011, 08:56 AM
Find
Patacorow Offline
Member

Posts: 135
Threads: 11
Joined: Jul 2011
Reputation: 3
#3
RE: Unknown script error?

That was quick.
08-26-2011, 08:58 AM
Find
cheztheguy Offline
Junior Member

Posts: 12
Threads: 7
Joined: Jun 2011
Reputation: 0
#4
RE: Unknown script error?

(08-26-2011, 08:56 AM)Luis Wrote:
AddEntityCollideCallback("Player", False", "FalseChase", true, 0);

You are missing an opening double quote for the string "False" Smile

Thanks! Sometimes I just script too quickly...
08-27-2011, 08:12 AM
Find




Users browsing this thread: 1 Guest(s)