.HPS fatal 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: .HPS fatal error (/thread-7603.html) Pages:
1
2
|
.HPS fatal error - Mr.Roflman - 04-24-2011 Can anyone help fix this fatal error: FATAL ERROR: Could not load script file 'custom_stories/Unknown_Awaking/custom_stories/Unknown_Awaking/maps/00_Unknwn.hps main (29,2) : ERR: Unexpected end of file Heres my HPS //////////////////////////// // Run first time starting map void OnStart() { AddUseItemCallback("", "bedroomkey_1", "mansion_1", "KeyOnDoor", true); AddUseItemCallback("", "basementkey_1", "Cellar_1", "KeyOnDoor", true); } void KeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_1, false, true); playerSoundAtEntity("", "unlock_door", "mansion_1", 0, false); RemoveItem("bedroomkey_1) SetSwingDoorLocked("cellar_1", false, true); PlaySoundAtEntity("", "unlock_door", "cellar_1", 0, false); RemoveItem("basementkey_1"); ) //////////////////////////// // Run when entering map void OnEnter() { ) //////////////////////////// // Run when leaving map void OnLeave() { } RE: .HPS fatal error - Lexander.R - 04-24-2011 RemoveItem("bedroomkey_1) needs ; at the end i think. RE: .HPS fatal error - Mr.Roflman - 04-24-2011 (04-24-2011, 09:40 AM)Lexander.R Wrote: RemoveItem("bedroomkey_1) needs ; at the end i think. Done that same error RE: .HPS fatal error - Poppuhik42 - 04-24-2011 ----- RE: .HPS fatal error - Mr.Roflman - 04-24-2011 (04-24-2011, 10:17 AM)Swistrobl Wrote: I fixed both of those when I was having another look at it but still the same error, I seriously don't know whats wrong with the script RE: .HPS fatal error - laser50 - 04-24-2011 FOUND IT, THE END OF KEYONDOOR IS A ), NOT A } FOUND IT, THE END OF KEYONDOOR IS A ), NOT A } RE: .HPS fatal error - Mr.Roflman - 04-24-2011 (04-24-2011, 10:21 AM)laser50 Wrote: FOUND IT, THE END OF KEYONDOOR IS A ), NOT A } Same error RE: .HPS fatal error - Poppuhik42 - 04-24-2011 ----- RE: .HPS fatal error - Mr.Roflman - 04-24-2011 (04-24-2011, 10:30 AM)Swistrobl Wrote: Thanks its now working, thanks man and thank you everyone else who helped me no more errors, thank you and kudos to whatever project you intent to do RE: .HPS fatal error - Dalroc - 04-24-2011 You had a correctly written script, but missed/messed up things like quotation marks, braces and a semicolon. Theses are small details that you should be able to figure out without posting a whole new thread. You will do these small errors all the time when you script. Therefor I suggest you download Notepad++ and set the language to C++, that way you will never have to make a thread about these types of problems again! |