Frictional Games Forum (read-only)

Full Version: Unknown script error?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Code:
AddEntityCollideCallback("Player", False", "FalseChase", true, 0);

You are missing an opening double quote for the string "False" Smile
That was quick.
(08-26-2011, 08:56 AM)Luis Wrote: [ -> ]
Code:
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...