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.17 (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
Unexpected end of file crash
Lleviathyn Offline
Member

Posts: 63
Threads: 3
Joined: Mar 2013
Reputation: 2
#1
Unexpected end of file crash

Everything else has been working fine until I added this for my chemistry puzzle:
void PlaceJar2(string &in asParent, string &in asChild)
{
    StartPlayerLookAt("unfinished_cure_2", 1.0, 1.0, "");
    RemoveItem("heated_jar");
    AddTimer("looking", 2.0, "LookJar");
}

void LookJar(string &in asTimer)
{
    SetEntityActive("unfinished_cure_2", true);
    StopPlayerLookAt();
    PlaySoundAtEntity("", "impact_glass_med.snt", "unfinished_cure_2", 0, false);
    AddUseItemCallback("", "sodamide", "funnel", "AddSodamide", true);
}

void AddSodamide(string &in asParent, string &in asChild)
{
    StartPlayerLookAt("unfinished_cure_2", 1.0, 1.0, "");
    RemoveItem("sodamide");
    AddTimer("looking2", 2.0, "LookJar2");
}

void LookJar2(string &in asTimer)
{
    SetEntityActive("unfinished_cure_2", false);
    StopPlayerLookAt();
    PlaySoundAtEntity("", "puzzle_add_chemical.snt", "cure", 0, false);
    AddTimer("pickitup", 2.0, "PickUpCure");
}

void PickUpCure(string &in asTimer)
{
    SetEntityActive("cure", true);
    StartPlayerLookAt("cure", 1.0, 1.0, "");
    AddTimer("stoplooking", 1.0, "StopCureLook");
    CompleteQuest("curequest", "CureQuest");
}

void StopCureLook(string &in asTimer)
{
    StopPlayerLookAt();
}
The crash window says "Unexpected end of file" and tells me its on my last line. So I remove the "void StopCureLook" temporarily to see if it fixes the problem, and the same thing happens saying it's on my last line again.
(This post was last modified: 06-13-2013, 03:41 AM by Lleviathyn.)
04-06-2013, 04:47 AM
Find


Messages In This Thread
Unexpected end of file crash - by Lleviathyn - 04-06-2013, 04:47 AM
RE: Unexpected end of file crash - by Statyk - 04-06-2013, 06:12 AM
RE: Unexpected end of file crash - by Lleviathyn - 04-06-2013, 01:40 PM
RE: Unexpected end of file crash - by Tiger - 04-06-2013, 02:06 PM
RE: Unexpected end of file crash - by Lleviathyn - 04-06-2013, 04:18 PM



Users browsing this thread: 1 Guest(s)