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-17414.html)



Unexpected end of file. - HeadyBoy - 08-01-2012

I'm getting an error when I start up Amnesia that there is an "Unexpected end of file".. it says that it should be around here somewhere, my script is so long it would be a waste putting it all down. This is the end of my script however. Does anybody see anything that is out of place here or do you guys think that it is something else?

_______________________________________________________________


void door_swing1(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorDisableAutoClose("cellar_wood01_5", true);
AddPropForce("cellar_wood01_5", 850, 0, 750,"world");
}

void door_swing2(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);

PlaySoundAtEntity("", "react_scare", "Player", 0, false);

GiveSanityDamage(6.0f, true);
}

void Collideroomareathree(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "player_bodyfall.snt", "wood_box02_breakable_4", 0, true);
PlaySoundAtEntity("", "scare_wind.snt", "wood_box02_breakable_4", 0, true);
GiveSanityDamage(4.0f, true);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}

void Collideroomareatwo(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "23_breath.snt", "Player", 0, false);
}

void Collidesoundarea1(string &in asParent, string &in asChild, int alState)
{
SetLampLit("torch_static01_1", false, true);
}


RE: Unexpected end of file. - Lizard - 08-01-2012

looks fine. Try post your entire .hps


RE: Unexpected end of file. - HeadyBoy - 08-01-2012

It's okay. For some reason my error was higher up the .hps

it's all fixed now, thanks for taking an interest in helping though