Frictional Games Forum (read-only)

Full Version: FATAL ERROR: Could not load script file? Help Please!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
void UsedKeyOnDoor(string &in asItem, string %in asEntity)
->
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
(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)
RemoveItem("forsakenkey_1"

Missing the end )
(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
If you only added ) then you need to add ; too.
(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:10 AM)Tanshaydar Wrote: [ -> ]If you only added ) then you need to add ; too.

RIGHT! YESS THANKYOU IT FINALLY WORKED Big Grin