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
Script Help Another 1 New error and I just don't know where it is!
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#1
Sad  Another 1 New error and I just don't know where it is!

I keep getting this error whenever I load my custom story!

FATAL ERROR: Could not load script file 'custom_stories/Lifeless_The Abandon/maps/Lifeless_The Abandon.hps'!
main (17, 21) : ERR : Expected '('

my hps file

wakeUp();
}
void wakeUp() {
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(10); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.5, 2);
SetPlayerCrouching(true); // Simulates being on the ground
PlayMusic("18_amb.ogg", true, 1, 4, 1, true);
AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", "true", 1);
EventCollide(string &in asParent, string &in asChild, int alState)
SetEntityActive("CellGuardGrunt", true);
AddEnemyPatrolNode("CellGuardGrunt", "Node_1", 0.001f, "");
AddEnemyPatrolNode("CellGuardGrunt", "Node_5", 0.001f, "");
AddEnemyPatrolNode("CellGuardGrunt", "Node_13",0.001f, "");
AddEnemyPatrolNode("CellGuardGrunt", "Node_18",0.001f, "");
AddEnemyPatrolNode("CellGuardGrunt", "Node_19",0.001f, "");
AddEnemyPatrolNode("CellGuardGrunt", "Node_20",0.001f, "");
AddEnemyPatrolNode("CellGuardGrunt", "Node_21",0.001f, "");
AddTimer("trig1", 4.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer) {
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
SetPlayerLampOil(35);
AddUseItemCallback("", "HollowNeedle", "CellDoor", "UseHollowNeedleOnDoor", true);
}
void UseHollowNeedleOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("CellDoor", false, true);
PlaySoundAtEntity("", "unlock_door.ogg", asEntity, 0, false);
RemoveItem(asItem);
}
(This post was last modified: 01-06-2014, 10:46 AM by Radical Batz.)
01-05-2014, 06:21 PM
Find


Messages In This Thread
Another 1 New error and I just don't know where it is! - by Radical Batz - 01-05-2014, 06:21 PM
RE: Help with coding! - by ClayPigeon - 01-05-2014, 07:06 PM



Users browsing this thread: 3 Guest(s)