DarkMattNoir
Junior Member
Posts: 9
Threads: 3
Joined: Oct 2019
Reputation:
0
|
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 !
|
|