[SCRIPT] Script error - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] Script error (/thread-12968.html) Pages:
1
2
|
Script error - Saren - 01-30-2012 Hey guys, I just started making my first custom story, and when I tried launching my story for the first time, I got an error saying this: FATAL ERROR: Could not load script file 'custom_stories/Calling Dr/maps/Map1.hps! main(15, 2) : Err : Unexpected end of file. Plz, could anyone advice me here? RE: Script error - Tripication - 01-30-2012 Post the script? RE: Script error - Saren - 01-30-2012 What script? It was a pop up saying there's an error with my first map file. And honestly, I don't know what's wrong with it.. RE: Script error - flamez3 - 01-30-2012 Post the Map1.hps file with your scripts in it. How are we supposed to know what's wrong if we don't know what you put in the file? RE: Script error - Saren - 01-30-2012 Ah sry xD Here: void OnStart() { AddEntityCollideCallback("Player", "Get_to_work_Area", "GetFirst_Quest", True, 1); AddEntityCollideCallback("Player", "Get_to_Work_complete_Area", "FinishFirst_Quest", True, 1); } void GetGet_to_workQuest(string &in asParent, string &in asChild, int alState { AddQuest("get_to_workquest", "Get_To_Work"); } void FinishGet_to_workQuest(string &in asParent, string &in asChild, int alState { CompleteQuest("get_to_workquest", "Get_To_Work"); } RE: Script error - Tripication - 01-30-2012 void OnStart() { AddEntityCollideCallback("Player", "Get_to_work_Area", "GetFirst_Quest", true, 1); AddEntityCollideCallback("Player", "Get_to_Work_complete_Area", "FinishFirst_Quest", true, 1); } void GetGet_to_workQuest(string &in asParent, string &in asChild, int alState) { AddQuest("get_to_workquest", "Get_To_Work"); } void FinishGet_to_workQuest(string &in asParent, string &in asChild, int alState) { CompleteQuest("get_to_workquest", "Get_To_Work"); } Just needed to close off the syntax's Here you go^ And true and false are always all lower case RE: Script error - flamez3 - 01-30-2012 You are not naming things right. Use this: void OnStart() { AddEntityCollideCallback("Player", "Get_to_work_Area", "GetFirst_Quest", true, 1); AddEntityCollideCallback("Player", "Get_to_Work_complete_Area", "FinishFirst_Quest", true, 1); } void GetFirst_Quest(string &in asParent, string &in asChild, int alState) { AddQuest("get_to_workquest", "Get_To_Work"); } void FinishFirst_Quest(string &in asParent, string &in asChild, int alState) { CompleteQuest("get_to_workquest", "Get_To_Work"); } Use that and then look at the differences between your script and the modified script and figure out why your's didn't work. RE: Script error - Saren - 01-30-2012 Much thx, gonna see if that helped EDIT: It did.... I see I just forgot the last 2 )'s.... how silly of me, haha RE: Script error - Shadowfied - 01-30-2012 (01-30-2012, 11:17 AM)flamez3 Wrote: You are not naming things right. Use this:Are you saying there were more errors than the two missing parenthesis? RE: Script error - flamez3 - 01-30-2012 Yep, the function names are not the same as he/she defined them in void OnStart, and the true's were capitalized. |