Custom Story Crash [HAVING THE PROBLEM ONCE AGAIN] - 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: Custom Story Crash [HAVING THE PROBLEM ONCE AGAIN] (/thread-6180.html) |
Custom Story Crash [HAVING THE PROBLEM ONCE AGAIN] - RawkBandMan - 01-12-2011 Hello. I made a kinda beta for my map im making, but whenever I try to play it in Amnesia: The Dark Descent, it crashes and gives me the following blackbox error: Amnesia.exe caused an EXCEPTION_ACCESS_VIOLATION in module MSVCR71.dll at 001B:7C3417FB, strlen()+0038 byte(s) I tried messing around with my scripts, but that isn't fixing it. any other ideas? Thanks in advance. RE: Custom Story Crash - jens - 01-12-2011 check the hpl.log file in My Documents/Amnesia/ and you should probably see some error hinting what could be wrong. RE: Custom Story Crash - RawkBandMan - 01-13-2011 (01-12-2011, 03:01 PM)jens Wrote: check the hpl.log file in My Documents/Amnesia/ and you should probably see some error hinting what could be wrong. I found this line and I think this may be what's wrong. WARNING: No resources element found in 'custom_stories/Test/extra_english.lang' What could I do to fix that? EDIT: I think I fixed it by putting <RESOURCES> and </RESOURCES> in the extra_english.lang, but it still crashes, but the hpl.log says nothing about any warnings or whatever. the final line says something about my profile being loaded. Ill post my extra_english.lang and hpl.log here extra_english.lang Spoiler below!
hpl.log Spoiler below!
does the ItemDesc_RockingKey have to be the name of the file of the key (rockingkey_1)??? RE: Custom Story Crash - Tottel - 01-13-2011 1. Your resources are empty, you can just remove those. 2. You need to make a category for each subset. 1 for your mod info, 1 for your inventory, .. Also, be sure to copy it EXACT as it is on the wiki. Look at my example: <CATEGORY Name="CustomStoryMain"> and notice how you have an > too many. Same with your <Entry>... RE: Custom Story Crash - RawkBandMan - 01-13-2011 (01-13-2011, 01:34 AM)Tottel Wrote: 1. Your resources are empty, you can just remove those. Oh okay I think I get it. So It should look like Spoiler below!
If not, what EXCACTLY do I need to change? RE: Custom Story Crash - Tottel - 01-13-2011 <Entry Name="Description"> Mr Test! </Entry> RE: Custom Story Crash - RawkBandMan - 01-13-2011 (01-13-2011, 02:22 AM)Tottel Wrote: <Entry Name="Description"> OMG THANK YOU! But now I get a FATAL ERROR when I start the map. Error is FATAL ERROR! Could not load script file 'custom_stories/Test/maps/ch01/Race_Beta03.hps'! main (9,1) : ERR : Expected "," or ";" main (11,22) : ERR : Expected identifier main (12, 15) : ERR : Expected indentifier main (13,1) : ERR : Unexpected token '{' My Race_Beta3.hps Spoiler below!
RE: Custom Story Crash - Tottel - 01-13-2011 You switched around 2 accolades in UsedKeyOnDoor() :p { } not } { EDIT: brrr, also, leave your function name like this: void UsedKeyOnDoor(string &in asItem, string &in asEntity) Those things in the brackets are called parameters and they will be filled in when you call the function. RE: Custom Story Crash - RawkBandMan - 01-13-2011 (01-13-2011, 02:34 AM)Tottel Wrote: You switched around 2 accolades in UsedKeyOnDoor() :p IT FINNALY WORKS! Buuuutttt... Sorry If Im making you mad with all my problems. When I pick up my key, it's supposed to say Rocking Key right? Well I picked it up and it said machine room key instead. and It said It was a key for the machine room instead of a door. I went and tried the key on the door, but It said "Cannot use this item anyway!" Sorry I'm being a burden again. RE: Custom Story Crash - Tottel - 01-13-2011 Make sure the item is named "RockingKey" in the editor. EDIT: Wauw, I'm being slow today. Also don't forget to close your inventory category again (right above </LANGUAGE>. |