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
FATAL ERROR: Could not load script file!
DarkMattNoir Offline
Junior Member

Posts: 9
Threads: 3
Joined: Oct 2019
Reputation: 0
#1
Sad  FATAL ERROR: Could not load script file!

Hello ! I have already seen a forum on this topic, but I have not had any answers. As soon as I try to run my custom story on Amnesia, a message appears :

FATAL ERROR: Could not load script file "custom_stories/The                             
Room//maps/Part 1.hps"!
 main (46,12) : ERR : Expected "("

I send you the script of my ".hps" file :

void OnStart()


{

SetPlayerCrouching(true);
SetPlayerActive(false);
FadeOut(0);
FadeIn(3);
AddEntityCollideCallback("Player", "Screamer_1", "Screamer", true, 1);
AddTimer("", 3, "Intro");
AddEntityCollideCallback("1", "Disparition", "MonstreDisparu", true, 1);
AddEntityCollideCallback("Poignée", "Attache", "Attaché", true, 1);

}

void Screamer(string & in asParent, string & in asChild, int alState)

{

SetEntityActive("1", true);
SetSwingDoorDisableAutoClose("Armoire", true);
AddPropForce("Armoire", 3000, 0, 0,"world");
AddPropImpulse("1", 2000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "Screamer_1", 0, false);

}

void Intro(string &in asTimer)

{

SetPlayerCrouching(false);
SetPlayerActive(true);
PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);

}

void MonstreDisparu(string & in asParent, string & in asChild, int alState)

{

SetEntityActive("1", false);

}

void Attaché(string & in asParent, string & in asChild, int alState)

{

SetEntityActive("Poignée", false);
SetEntityActive("Mount", false);
SetEntityActive("Lever", true);
PlaySoundAtEntity("", "level_wood_min_max01.snt", "Player", 0, false);

}

However, I read again, but I did not find the solution to the problem. I hope you can help me. I thank you in advance, goodbye Smile !
10-31-2019, 01:14 PM
Find


Messages In This Thread
FATAL ERROR: Could not load script file! - by DarkMattNoir - 10-31-2019, 01:14 PM



Users browsing this thread: 1 Guest(s)