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
Strange .hps error
ObsidianLegion Offline
Member

Posts: 173
Threads: 53
Joined: Jun 2011
Reputation: 0
#1
Strange .hps error

Each time I boot up a map it come up with the following

34, 1: EXPECTED (
40, 1: EXPECTED (
59, 1: EXPECTED (

In this .hps

////////////////////////
//Run when starting map
void OnStart()
{
AddEntityCollideCallBack("Player", "Villagers", "CollideVillagers", true, 1);
AddEntityCollideCallBack("Player", "Thoughts", "CollideThoughts", true, 1);
SetEntityPlayerInteractCallback("NoteIntro1", "ReminderTrigger", true);
AddUseItemCallback("", "BackDoorKey", "BackDoor", "UsedKeyOnDoor", true);
}

////////////////////////
//Run when entering map
void OnEnter()
{
}

//////////////////////
//Run when leaving map
void OnLeave()
{
SetupLoadScreen("LoadingText", "Basement", 1, "");
}

///////////////////////
//CallBacks
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("BackDoor", false, true);
}

////////////////////////
//Triggers
void ReminderTrigger
{
    SetMessage("Intro", "Reminder", 0);
    StartPlayerLookAt("BackDoor", 1.0f, 1.0f, "");
    AddTimer("BackDoor", 2.0f, "Backdoor");
}
void BackDoor
{
StopPlayerLookAt();
}

////////////////////////////
//Collision Areas
void CollideThoughts(string &in asParent, string &in asChild, int alState)
{
    SetMessage("Intro", "Thoughts", 0);
}

void CollideVillagers(string &in asParent, string &in asChild, int alState)
{
    PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
    GiveSanityDamage(20, true);
    StartPlayerLookAt("Entrance", 1.0f, 1.0f, "");
    AddTimer("Entrance", 2.0f, "Entrance");
}
void Entrance
{
StopPlayerLookAt();
}

"Good men mean well; they just don't always end up doing well." -Isaac Clarke, Dead Space 2, Chapter 12
07-29-2011, 11:48 AM
Find


Messages In This Thread
Strange .hps error - by ObsidianLegion - 07-29-2011, 11:48 AM
RE: Strange .hps error - by Kyle - 07-29-2011, 12:13 PM
RE: Strange .hps error - by ObsidianLegion - 07-29-2011, 01:07 PM
RE: Strange .hps error - by Kyle - 07-29-2011, 01:15 PM
RE: Strange .hps error - by MrCookieh - 07-29-2011, 01:55 PM
RE: Strange .hps error - by xtron - 07-29-2011, 04:45 PM
RE: Strange .hps error - by ObsidianLegion - 07-29-2011, 07:37 PM
RE: Strange .hps error - by Kyle - 07-29-2011, 07:48 PM



Users browsing this thread: 1 Guest(s)