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
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: FATAL ERROR: Could not load script file? Help Please!

void UsedKeyOnDoor(string &in asItem, string %in asEntity)
->
void UsedKeyOnDoor(string &in asItem, string &in asEntity)

(This post was last modified: 06-16-2011, 12:30 AM by Tanshaydar.)
06-16-2011, 12:30 AM
Website Find
Rebbon1337 Offline
Junior Member

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

(06-16-2011, 12:30 AM)Tanshaydar Wrote: void UsedKeyOnDoor(string &in asItem, string %in asEntity)
->
void UsedKeyOnDoor(string &in asItem, string &in asEntity)

RIGHT! Oh my god, I feel so stupid. I know I was supposed to write that, I must have misclicked. Anyway Thank you Big Grin

EDIT: But it still doesnt solve the problem Sad The same error comes up but now it says something like this:
FATAL ERROR: Could not load script file 'custom_stories/Test1/custom_stories/Test1/maps/Testt1.hps'! main (11, 1) : ERR : Expected ')' or ','

Before it said: (6, 46)
(This post was last modified: 06-16-2011, 01:01 AM by Rebbon1337.)
06-16-2011, 12:42 AM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#4
RE: FATAL ERROR: Could not load script file? Help Please!

RemoveItem("forsakenkey_1"

Missing the end )

06-16-2011, 01:04 AM
Find
Rebbon1337 Offline
Junior Member

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

(06-16-2011, 01:04 AM)Russ Money Wrote: RemoveItem("forsakenkey_1"

Missing the end )

Hmm, still doesnt fix it, oh man Ive must've done alot of miswriting here? o.o
06-16-2011, 01:07 AM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#6
RE: FATAL ERROR: Could not load script file? Help Please!

If you only added ) then you need to add ; too.

06-16-2011, 01:10 AM
Website Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#7
RE: FATAL ERROR: Could not load script file? Help Please!

(06-16-2011, 01:10 AM)Tanshaydar Wrote: If you only added ) then you need to add ; too.

YEAH! What he said!

06-16-2011, 01:16 AM
Find
Rebbon1337 Offline
Junior Member

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

(06-16-2011, 01:10 AM)Tanshaydar Wrote: If you only added ) then you need to add ; too.

RIGHT! YESS THANKYOU IT FINALLY WORKED Big Grin
06-16-2011, 01:17 AM
Find




Users browsing this thread: 3 Guest(s)