![]() |
FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* - 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: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* (/thread-16024.html) |
FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* - goodcap - 06-10-2012 FATAL ERROR, COULD NOT LOAD SCRIPT FILE (something with HPS) //////////////////////////// // Run first time starting map void OnStart() { AddUseItemCallback("", "kaasje", "eerstedeur", "UsedKeyOnDoor", true); } void UsedKeyOnDoor(string &in asitem, string &in asEntity) { SetSwingDoorLocked("eerstedeur", false, true); PlaySoundAtEntity("", "unlock_door", "eerstedeur", 0, false); RemoveItem("kaasje"); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* - Putkimato - 06-10-2012 // Run first time starting map void OnStart() { AddUseItemCallback("", "kaasje", "eerstedeur", "UsedKeyOnDoor", true); } void UsedKeyOnDoor(string &in asitem, string &in asEntity) { SetSwingDoorLocked("eerstedeur", false, true); PlaySoundAtEntity("", "unlock_door", "eerstedeur", 0, false); RemoveItem("kaasje"); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } Try this, you forgot these { } at end RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* - Science - 06-10-2012 Make sure that both the .map and the .hps files are named the same. RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* - goodcap - 06-10-2012 They are named the same THANKS SO MUCH! IT WORKS! I WANT YOUR BABIES! RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* - Science - 06-10-2012 Is the .hps file in the same folder as the .map? It should be custom_stories/yourstory/maps/.hps and .map here RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* - goodcap - 06-10-2012 it' works now, thanks so much ![]() |