Frictional Games Forum (read-only)

Full Version: ERROR MESSAGE! custom story fix? pls help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Whenever I load my custom story, it keeps getting this error message saying "FATAL ERROR: Could not load script file
'custom_stories/ThereMustBeaWayOut/maps/ch01/ThereMustBeaWayOut.hps'! main (8,10): ERR : Expected '('

and first the description of my custom story appeared but then after it did not!!!!!!!!Angry

///////////////////////////////////////////////////////////////
//so this is my hps file, is there something wrong I did?///
////////////////////////////////////////////////////////////////

void PickupKey(string &in asEntity, string &in asItem)
{
AddQuest("quest1", "TestQuest");
AddUseItemCallback("", "Bedroom Key", "bedroomdoor","Use Bedroom Key", true);

}

void Use Bedroom Key(string &in asItem, string &in asEntity)
{
SetMessage("message", "message1", 3);
}
Okay! I'm big on learning for yourself so, The error they give a point. A Y and an X value. The 8 is the Y meaning that on the 8th line of code (down from the top) there is an error. Look on that line for your error. Then, the X value, 10. 10 Character over your error lies.

Best of luck!
(12-21-2013, 10:13 PM)WIWWM Wrote: [ -> ]Okay! I'm big on learning for yourself so, The error they give a point. A Y and an X value. The 8 is the Y meaning that on the 8th line of code (down from the top) there is an error. Look on that line for your error. Then, the X value, 10. 10 Character over your error lies.

Best of luck!

Actually, I do not think this will help here. Regardless, heed this advice. It will help you with errors later on, and if the co-ordinates are not where the error is located, it is somewhere after.

If you still cannot find it, unspoiler here Smile
Spoiler below!

Code:
What I think your issue is the void. I do not think you can use spaces there. Otherwise it seems to be okay. Try this instead:

PHP Code:
void PickupKey(string &in asEntitystring &in asItem)
{
AddQuest("quest1""TestQuest");
AddUseItemCallback("""Bedroom Key""bedroomdoor","UseBedroomKey"true); //Changed so it points to the void
}

void UseBedroomKey(string &in asItemstring &in asEntity//Removed spaces
{
SetMessage("message""message1"3.0f); //Changed to a float. Wont cause errors either way.



As for the description of your story, could you please post your extra_english.lang file below? One error in that causes everything to error, hence the message above in UseBedroomKey won't work either.