Frictional Games Forum (read-only)
.hps file error. - 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)
+--- Thread: .hps file error. (/thread-53537.html)



.hps file error. - Markop1 - 01-29-2017

Hello. Today i started making my own custom story. I made a simple room with pathway where is script area. This activates script in .hps file.

The problem is, that when i play my story, it gets "FATAL ERROR" with this text:

FATAL ERROR. Could not load script file
'custom_stories/Whatif/custom_stories/Whatif/maps/w_1.hps'!
main (10, 2): ERR :Unexpected end of file


This is my hps. File:

void OnStart()
{
AddEntityCollideCallback("Player", "TP_SCRIPT, "JumpScare", true, 1);
}
void JumpScare(string &in asParent, string &in asChild, int alStates)
{
SetEntityActive("jumper", true);
AddPropForce("jumper", 0, 0, -100, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "jumper", 0, false);
}


RE: .hps file error. - Mudbill - 01-29-2017

TP_SCRIPT is missing a closing quotation mark.