Map Crashing Why? - 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: Map Crashing Why? (/thread-12687.html) |
Map Crashing Why? - GreyFox - 01-18-2012 Now this isn't my map I'm trying to help somebody, but his map just keeps crashing, with error crash, Anyway to find out why it's crashing? Thanks -Grey Fox RE: Map Crashing Why? - Statyk - 01-18-2012 (01-18-2012, 03:19 AM)GreyFox Wrote: Now this isn't my map I'm trying to help somebody, but his map just keeps crashing, with error crash,You're not giving anything to work with... - Could you give the error message that popped up? - Is there a .hps? - Maybe post the hpl.log in the "documents/main/hpl.log" RE: Map Crashing Why? - GreyFox - 01-18-2012 Sorry But I've never had this problem before, so I didn't know what to post. HPL.Log Code: Version 1.20 - s26ADEE0-539 HPS Code: //////////////////////////// RE: Map Crashing Why? - Statyk - 01-18-2012 The OnStart has no closing brackets, "player" should be "Player", and spaces after commas: void OnStart() { AddUseItemCallback("", "Key_1", "mansion_3", "KeyOnDoor", true); AddEntityCollideCallback("Player", "ScriptArea_1", "CollideScriptArea_1", true, 1); } //________________________ Also, the syntax has no spaces here: void CollideScriptArea_1(string &in asParent,string &in asChild,int alState) { SetSwingDoorClosed("mansion_1", true, true); } Try: void CollideScriptArea_1(string &in asParent, string &in asChild, int alState) { SetSwingDoorClosed("mansion_1", true, true); } //_________________________________ Full Replacement of .hps: void OnStart() { AddUseItemCallback("", "Key_1", "mansion_3", "KeyOnDoor", true); AddEntityCollideCallback("Player", "ScriptArea_1", "CollideScriptArea_1", true, 1); } void CollideScriptArea_1(string &in asParent, string &in asChild, int alState) { SetSwingDoorClosed("mansion_1", true, true); } void KeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_3", false, true); PlaySoundAtEntity("", "Unlock_door", "mansion_3", 0, false); RemoveItem("Key_1"); } RE: Map Crashing Why? - GreyFox - 01-18-2012 I Must've explained it wrong, Its not one of those errors saying Expected Token or whatnot, it's an Amnesia Game Crash. this is what it says Amnesia.exe casued an EXCEPTION_ACCESS_VIOLATION in module MSVCR71.dll at 001B:7C3417FB, strlen()+0038 byte(s) I just want to know if theres any way to firgure out whats causing this. And it only happens on this guys Custom Story, Any others work. Thanks Grey Fox RE: Map Crashing Why? - Statyk - 01-18-2012 The hps is still an issue... Have you at least tried it? RE: Map Crashing Why? - GreyFox - 01-18-2012 Yep, I Changed Everything and it still did the same crash. Grey Fox I fixed the problem, He had <CATEGORY> Name="Whatever"> I removed the > Thanks Grey Fox |