Frictional Games Forum (read-only)
My Custom Story won't load - 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: My Custom Story won't load (/thread-53920.html)

Pages: 1 2 3


RE: My Custom Story won't load - Romulator - 10-28-2017

Okay, posting here in case others have the same issue!

Thanks for PM'ing me this as well, I seemed to have misunderstood when the crash occurs exactly, and after checking my hpl.log file, you're correct in that it doesn't update when it crashes, even after leaving it for 3 minutes to actually black box. Amusingly, my Microsoft C++ library force closed the application.

What was wrong was actually your extra_english.lang file. The lang file works like an XML file; where you use <ELEMENT> to open an element, and </ELEMENT> to close an element (ELEMENT in this case is a placeholder text; Amnesia uses things like <CATEGORY>, <LANGUAGE> and <Entry Name> in their .lang files). While you had opening elements, you lacked closing ones, and also included things which caused an infinite loop. The game sees you have a valid custom_story_settings.cfg, and at least one map, so it shows in the list. But the failsafe "No Description" wasn't called because Amnesia thinks you have a valid extra_english.lang, but because it can't display it, it loops, and abruptly runs out of memory, hanging and eventually crashing.

This should fix your extra_english.lang file.

PHP Code:
<LANGUAGE>
<
CATEGORY Name="CustomStoryMain">
    <
Entry Name="Description">A custom story by GhostlyEcho</Entry>
</
CATEGORY>
</
LANGUAGE

Also, while I didn't test or look through your maps, I would recommend you refrain from using punctuation and spaces in your folders and filenames. It can cause problems in some cases. Instead, use underscores ( _ ) and/or dashes (-) instead. Smile


RE: My Custom Story won't load - GhostlyEcho - 10-30-2017

Thank's. Smile
Now at least it shows among the other custom stories, but it freezes while trying to load. I did add the PHP code, and I think that made it better. But it's still not loading as it should.