Please check the troubleshooting guides before posting!
I tried running my game and I got this error message:
FATAL ERROR: Could not load script file 'custom_stories/(My Custom Story Name)/maps/(My Custom Story).hps'!
main (13,23): ERR : Expected identifier
main (14,10): ERR : Expected identifier
main (15,24): ERR : Expected identifier
main (16,31): ERR : Expected identifier
main (17,33): ERR : Expected identifier
main (19,17): ERR : Expected identifier
main (21,18): ERR : Expected identifier
Red Text= Lines 13-21
My .hps file:
void OnStart()
{
AddUseItemCallback("", "main_key", "main_door", "UseKeyOnDoor", true);
}
void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}
TeleportPlayer("Intro_0");
FadeOut(0);
SetPlayerActive(false);
SetSanityDrainDisabled(true);
ShowPlayerCrossHairIcons(false);
AddTimer("fadein", 3, "TimerIntroOutro");
PlayMusic("Mysterious_Journey_-_Epic_Trailer_Music.ogg", false, 1, 0, 1, true);
void TimerIntroOutro(string &in asTimer)
{
if(GetLocalVarInt("Intro") < 3) {
if(asTimer == "fadein") {
TeleportPlayer("Intro_" + GetLocalVarInt("Intro"));
FadeIn(1);
AddTimer("fadeout", 4, "TimerIntroOutro");
}
if(asTimer == "fadeout") {
FadeOut(1);
AddTimer("fadein", 1, "TimerIntroOutro");
AddLocalVarInt("Intro", 1);
}
}
else
{
TeleportPlayer("Spawn");
FadeIn(2);
SetPlayerActive(true);
SetSanityDrainDisabled(false);
ShowPlayerCrossHairIcons(true);
PlayMusic("Mysterious_Journey_-_Epic_Trailer_Music.ogg", false, 0.2, 1, 2, true);
}
}
void OnLeave()
{
SetupLoadScreen("Loading", "LoadScreen1", 0, "loading_screen1.jpg");
}
|