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
Please check the troubleshooting guides before posting!
dailycreepypasta Offline
Junior Member

Posts: 32
Threads: 18
Joined: Aug 2014
Reputation: 0
#1
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");
}

Creator of "The Night I Went Insane".

http://www.moddb.com/mods/the-night-i-went-insane
08-16-2014, 05:41 PM
Find


Messages In This Thread
Please check the troubleshooting guides before posting! - by dailycreepypasta - 08-16-2014, 05:41 PM



Users browsing this thread: 1 Guest(s)