Rebbon1337
Junior Member
Posts: 4
Threads: 1
Joined: Jun 2011
Reputation:
0
|
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 |
|
Tanshaydar
From Beyond
Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation:
67
|
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 |
|
Rebbon1337
Junior Member
Posts: 4
Threads: 1
Joined: Jun 2011
Reputation:
0
|
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
EDIT: But it still doesnt solve the problem 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 |
|
Russ Money
Senior Member
Posts: 360
Threads: 25
Joined: Dec 2010
Reputation:
4
|
RE: FATAL ERROR: Could not load script file? Help Please!
RemoveItem("forsakenkey_1"
Missing the end )
|
|
06-16-2011, 01:04 AM |
|
Rebbon1337
Junior Member
Posts: 4
Threads: 1
Joined: Jun 2011
Reputation:
0
|
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 |
|
Tanshaydar
From Beyond
Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation:
67
|
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 |
|
Russ Money
Senior Member
Posts: 360
Threads: 25
Joined: Dec 2010
Reputation:
4
|
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 |
|
Rebbon1337
Junior Member
Posts: 4
Threads: 1
Joined: Jun 2011
Reputation:
0
|
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
|
|
06-16-2011, 01:17 AM |
|
|