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
FATAL ERROR: Could not load script file? Help Please!
Rebbon1337 Offline
Junior Member

Posts: 4
Threads: 1
Joined: Jun 2011
Reputation: 0
#1
FATAL ERROR: Could not load script file? Help Please!

Hello! So I was just about to finish my Custom story, and when I tryed to start it, this came up:

Quote:FATAL ERROR: Could not load script file 'custom_stories/Test1/custom_stories/Test1/maps/Testt1.hps'! main (6, 46) : ERR : Expected ')' or ','

And also I am kind of a noob on this stuff, but this is what it says on the .HPS file:

Quote:void OnStart()
{
AddUseItemCallback("", "forsakenkey_1", "cellar_wood01_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string %in asEntity)
{
SetSwingDoorLocked("cellar_wood01_1", false, true);
PlaySoundAtEntity("", "unlock_door", "cellar_wood01_1", 0, false);
RemoveItem("forsakenkey_1"
}

void MonsterFunc2(string &in asParent , string &in asChild , int alState)
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
SetEntityActive("servant_grunt_1" , true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 4, "");
PlayGuiSound("enemy/grunt/enabled03.ogg", 1.0f);
}

Did I do something wrong? Please reply!
06-15-2011, 11:55 PM
Find


Messages In This Thread
FATAL ERROR: Could not load script file? Help Please! - by Rebbon1337 - 06-15-2011, 11:55 PM



Users browsing this thread: 1 Guest(s)