The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.16 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
Unknown script error? - by cheztheguy - 08-26-2011, 07:01 AM
RE: Unknown script error? - by Luis - 08-26-2011, 08:56 AM
RE: Unknown script error? - by cheztheguy - 08-27-2011, 08:12 AM
RE: Unknown script error? - by Patacorow - 08-26-2011, 08:58 AM



Users browsing this thread: 1 Guest(s)