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
.hps file error.
Markop1 Offline
Junior Member

Posts: 1
Threads: 1
Joined: Jan 2017
Reputation: 0
#1
.hps file error.

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);
}
01-29-2017, 02:02 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: .hps file error.

TP_SCRIPT is missing a closing quotation mark.

01-29-2017, 02:57 PM
Find




Users browsing this thread: 1 Guest(s)