Frictional Games Forum (read-only)
"Unexpected end of file" - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: "Unexpected end of file" (/thread-20000.html)



"Unexpected end of file" - Asaratha - 01-20-2013

Hey guys, I got this and have been trying to find where I didn't close it off. I've been searching for some time now, and would appereciate some help.
Code:
void OnStart()
{
    SetEntityPlayerInteractCallback("bone_saw_1", "ArmRemoval1", true);
}
void ArmRemoval1(string &in asParent, string &in asChild, int alState)
{
    SetPlayerActive(false);
    StartPlayerLookAt("lookat", 10.0f, 10.0f, "");
    SetMessage("Messages", "Popup9", 0);
    AddTimer("", 2.0f, "ArmRemoval2");
}
void ArmRemoval2(string &in asTimer)
{
    SetMessage("Messages", "Popup10", 0);
    FadeOut(2);
    AddTimer("", 2.0f, "ArmRemoval3");
}
void ArmRemoval3(string &in asTimer)
{
    SetMessage("Messages", "Popup11", 0);
    AddTimer("", 1.0f, "ArmRemoval4");
}
void ArmRemoval4(string &in asTimer)
{
    SetMessage("Messages", "Popup12", 0);
    AddTimer("", 1.0f, "ArmRemoval5");
}
void ArmRemoval5(string &in asTimer)
{
    SetMessage("Message, "Popup13", 0);
    PlaySoundAtEntity("", "sanity_flick.snt", "Player", 0, false);
    PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
    AddTimer("", 1.0f, "ArmRemoval6");
}
void ArmRemoval6(string &in asTimer)
{
    PlaySoundAtentity("", "general_water_drip.snt", "Player", 0, false);
    AddTimer("", 1.0f, "ArmRemoval7");
}
void ArmRemoval7(string &in asTimer)
{
    PlaySoundAtEntity("", "sanity_flick.snt", "Player", 0, false);
    PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
    AddTimer("", 1.0f, "ArmRemoval8");
}
void ArmRemoval8(string &in asTimer)
{
    PlaySoundAtEntity("", "sanity_flick.snt", "Player", 0, false);
    PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
    AddTimer("", 1.0f, "ArmRemoval9");
}
void ArmRemoval9(string &in asTimer)
{
    PlaySoundAtEntity("", "impact_organic_high.snt", "Player", 0, false);
    PlaySoundAtEntity("", "player_falldamage_med.snt", "Player", 0, false);
    SetPlayerCrouching(true);
    AddTimer("", 3.0f, "ArmRemoval10final");
}
void ArmRemoval10final(string &in asTimer)
{
    FadeIn(20);
    FadeImageTrailTo(2, 2);
    FadeSepiaColorTo(100, 4);    
    FadePlayerRollTo(50, 220, 220);
    FadeRadialBlurTo(0.15, 2);
    AddTimer("", 3.0f, "recover");
}
void recover(string &in asTimer)
{
    ChangePlayerStateToNormal();
    SetPlayerActive(true);
    FadePlayerRollTo(0, 33, 33);
    FadeRadialBlurTo(0.0, 1);
    FadeSepiaColorTo(0, 4);
    SetPlayerCrouching(false);
    FadeImageTrailTo(0,1);
}

Any help is appreciated, getting kinda flustered that I can't find where I went wrong.


RE: "Unexpected end of file" - i3670 - 01-20-2013

void ArmRemoval5(string &in asTimer)
{
SetMessage("Message, "Popup13", 0);
PlaySoundAtEntity("", "sanity_flick.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
AddTimer("", 1.0f, "ArmRemoval6");
}


RE: "Unexpected end of file" - Asaratha - 01-20-2013

(01-20-2013, 09:06 PM)i3670 Wrote: void ArmRemoval5(string &in asTimer)
{
SetMessage("Message, "Popup13", 0);
PlaySoundAtEntity("", "sanity_flick.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
AddTimer("", 1.0f, "ArmRemoval6");
}

Damn, thanks bro. Dunno how I looked that over.


RE: "Unexpected end of file" - The chaser - 01-20-2013

Whoa, this is the thread number 20.000 of this dear forum! PARTY HARD!