Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amnesia Crashing Problem (Solved)
Marche100 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Aug 2011
Reputation: 0
#1
Solved: 8 Years, 9 Months, 4 Weeks ago Amnesia Crashing Problem (Solved)

I put this in the custom story section, but I thought someone who frequents the tech support part of the forums might be able to help me out, since I've seen a lot of threads around this technical support place that involve crashing and this mysterious black box thing. Sorry if it doesn't exactly belong in tech support, but I'm at my wit's end trying to get it to work. I've tried everything I can think of and I'm getting the same crash error every single time.

Spoiler below!
[Image: blackboxm.png]

That's the error I get whenever I try to play my custom story. I just started making the custom story yesterday and I've been able to play it throughout the day without any problems whatsoever (besides scripting problems that I fixed/removed). I saw another thread that had a similar error, where the person was told to put up the hpl log from the Main folder, so here's mine, if that's any help.

Spoiler below!
Version 1.20
-------- THE HPL ENGINE LOG ------------
Engine build ID 20101021192547

Creating Engine Modules
--------------------------------------------------------
Creating graphics module
Creating system module
Creating resource module
Creating input module
Creating sound module
Creating physics module
Creating ai module
Creating gui module
Creating generate module
Creating haptic module
Creating scene module
--------------------------------------------------------

Initializing Resources Module
--------------------------------------------------------
Creating loader handlers
Creating resource managers
Adding loaders to handlers
--------------------------------------------------------

Initializing Graphics Module
--------------------------------------------------------
Init lowlevel graphics: 1024x768 bpp:32 fs:1 ms:0 gpufmt:2 cap:'Amnesia - The Dark Descent - Loading...' posSad-1x-1)
Setting video mode: 1024 x 768 - 32 bpp
Init Glew...OK
Setting up OpenGL
Vendor: ATI Technologies Inc.
Renderer: ATI Mobility Radeon HD 550v
Version: 3.2.9262 Compatibility Profile Context
Max texture image units: 16
Max texture coord units: 16
Max user clip planes: 8
Two sided stencil: 1
Vertex Buffer Object: 1
Anisotropic filtering: 1
Max Anisotropic degree: 16
Multisampling: 1
Texture compression: 1
Texture compression S3TC: 1
Auto generate MipMaps: 1
Render to texture: 1
Max draw buffers: 8
Max color render targets: 8
Packed depth-stencil: 1
Texture float: 1
GLSL Version: 1.50
ShaderModel 2: 1
ShaderModel 3: 1
ShaderModel 4: 1
OGL ATIFragmentShader: 1
Setting up G-Bugger: type: 0 texturenum: 3
Adding engine materials
Initializing DevIL
Vendor String: Abysmal Software
Version String: Developer's Image Library (DevIL) 1.6.8pre Aug 12 2006
Version Number: 168
Adding engine post effects
--------------------------------------------------------

Initializing Sound Module
--------------------------------------------------------
Initializing OpenAL
Available OpenAL devices:
0. Generic Software on Speakers (Realtek High Definition Audio)(OpenAL default)
Trying to open device 'Generic Software on Speakers (Realtek High Definition Audio)'... Success!
Number of mono sources: 32
Streaming setup: 4 Buffers x 262144 bytes each
--------------------------------------------------------

Initializing Game Module
--------------------------------------------------------
Adding engine updates
Initializing script functions
--------------------------------------------------------

User Initialization
--------------------------------------------------------
--------------------------------------------------------

Game Running
--------------------------------------------------------
-------- Loading map 'menu_bg.map' ---------
Cache Loading: 998 ms
Entities: 180 ms
Compilation: 1 ms
Total: 1188 ms
Meshes created: 26
Bodies created: 5
-------- Loading complete ---------
Setting profile: 'Marche' Path: 'C:\Users\Sam\Documents/Amnesia/Main/Marche/'
-------- Loading map '00_rainy_hall.map' ---------
Cache Loading: 4144 ms
Entities: 2898 ms
Compilation: 26 ms
Total: 7331 ms
Meshes created: 147
Bodies created: 48
-------- Loading complete ---------
-------- Loading map 'menu_bg.map' ---------
Cache Loading: 928 ms
Entities: 186 ms
Compilation: 1 ms
Total: 1124 ms
Meshes created: 26
Bodies created: 5
-------- Loading complete ---------
WARNING: No resources element found in 'custom_stories/DarkMansion/extra_english.lang'

I see that warning at the bottom of the hpl log refers to the extra_english.lang file, so I'll put that up, too. I'll spare you the big paragraph of text of the one note I have in the story so far and some of the other specifics that are irrelevant, though.

Spoiler below!
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">description</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_theletter_Name">lettertitle</Entry>
<Entry Name="Note_theletter_Text">paragraphoftext</Entry>
<Entry Name="Quest_LanternQuest_Text">I don't know where I am or who I am, but I need to get out of here. It's awfully dark in here. I should look for a lantern or something.</Entry>
<Entry Name="Quest_StudyQuest_Text">It looks like the door to the this study is locked. The key must be somewhere around here. I need to find it, so I can leave.</Entry>
</CATEGORY>

<CATEGORY> Name="Inventory">
<Entry Name="ItemName_StudyKey">Study Key</Entry>
<Entry Name="ItemDesc_StudyKey">The key that unlocks the door in the study.</Entry>
</CATEGORY>
</LANGUAGE>

And here's the level's .hps file if that's any help.

Spoiler below!
void OnStart()
{
AddEntityCollideCallback("Player", "Lantern_Quest_Area", "GetLanternQuest", true, 0);
AddEntityCollideCallback("Player", "Lantern_Complete_Area", "FinishLanternQuest", true, 0);
AddEntityCollideCallback("Player", "Study_Quest_Area", "GetStudyQuest", true, 0);
AddEntityCollideCallback("Player", "Study_Complete_Area", "FinishStudyQuest", true, 0);
AddUseItemCallback("", "lantern", "", "", true);
SetEntityCallbackFunc("lantern", "OnPickup");
AddEntityCollideCallback("servant_grunt_1", "area51", "monsterDelete", true, 0);
AddUseItemCallback("", "studykey_1", "mansion_1", "UsedKeyOnDoor", true);
}

void GetLanternQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("lanternquest", "LanternQuest");
}

void FinishLanternQuest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("lanternquest", "LanternQuest");
}

void GetStudyQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("studyquest", "'StudyQuest");
}

void FinishStudyQuest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("studyquest", "StudyQuest");
}

void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("servant_grunt_1", true);
ShowEnemyPlayerPosition("servant_grunt_1");
AddTimer("Timer", 25.0, "MonsterGone");
}

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_11", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_12", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_14", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_15", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_16", 10, "");
}

void monsterDelete(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", false);
}

void MonsterGone(string&in asTimer)
{
SetEntityActive("servant_grunt_1", false);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("studykey_1");
}

Does anyone have a clue as to what the problem is? It just started crashing when I started trying to play my custom story last night after I made a few changes, but even if I take out those changes I get the same exact error. I can still go into the actual Amnesia game with a new game from the main menu and that work's without any problems. For some reason it only crashes with the custom story.

So, any ideas, or isn't there a way that I can fix this?
(This post was last modified: 08-22-2011, 12:31 PM by Marche100.)
08-21-2011, 06:42 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
Solved: 8 Years, 9 Months, 4 Weeks ago RE: Amnesia Crashing Problem

HPL.log says it loads first map of actual game, are you sure your custom story settings.cfg file is correct?

08-21-2011, 10:01 PM
Website Find
Marche100 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Aug 2011
Reputation: 0
#3
Solved: 8 Years, 9 Months, 4 Weeks ago RE: Amnesia Crashing Problem

(08-21-2011, 10:01 PM)Tanshaydar Wrote: HPL.log says it loads first map of actual game, are you sure your custom story settings.cfg file is correct?

Here's my custom story settings.cfg file. I'm not sure why it would be incorrect, but it might be for all that I know. I haven't touched it since I made the custom story except to change the StartMap name to 00_study.map rather than 01_study.map on the suggestion of someone else (although I misinterpreted what they meant when I did it). I had changed everything named 01_study.map to 00_study.map, but that didn't cause any new problems. I got the same error and everything, so obviously that's not it.

Here is the .cfg file in all it's glory if you want to take a look.

Spoiler below!
<Main
Name = "Nightmare House"
Author = "Marche100"

MapsFolder = "maps/"
StartMap = "00_study.map"
StartPos = "PlayerStartArea_1"
/>

Now that I look at it, I see that in the hpl log it says it's loading "00_rainy_hall.map", which isn't the name of my first map at all. Do you think that has something to do with it?

Edit: On the suggestion of ComputerNode, I tried these two methods, in case the results mean anything to anyone.

Ok, well, I took the .hps file of the level and renamed it, started it up, and it got the same exact crash error, meaning that it's not a problem with the .hps file, it's something else.

Then I uninstalled Amnesia and reinstalled it and I started it up. Same error.

If anyone has any ideas after seeing these new developments, they would be much appreciated.
(This post was last modified: 08-22-2011, 12:02 AM by Marche100.)
08-21-2011, 10:34 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#4
Solved: 8 Years, 9 Months, 4 Weeks ago RE: Amnesia Crashing Problem

Does the old setting give the same error?

08-22-2011, 12:49 AM
Website Find
Marche100 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Aug 2011
Reputation: 0
#5
Solved: 8 Years, 9 Months, 4 Weeks ago RE: Amnesia Crashing Problem

(08-22-2011, 12:49 AM)Tanshaydar Wrote: Does the old setting give the same error?

What do you mean by the old setting? You mean before I changed the map name and everything to 00_study from 01_study, because the error was the same from before and after that.

Heck, the error was the same before and after I changed everything that I just talked about. Every single time, so even if you weren't talking about the name change, the answer would most likely still be yes.
08-22-2011, 01:22 AM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#6
Solved: 8 Years, 9 Months, 4 Weeks ago RE: Amnesia Crashing Problem

Probably wrong setup, try another custom story and imitate its settings.

08-22-2011, 09:34 AM
Website Find
Marche100 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Aug 2011
Reputation: 0
#7
Solved: 8 Years, 9 Months, 4 Weeks ago RE: Amnesia Crashing Problem

(08-22-2011, 09:34 AM)Tanshaydar Wrote: Probably wrong setup, try another custom story and imitate its settings.

Ok, I think I've isolated the problem.

First I just started with nothing but the customstorysettings.cfg file, the map, and the language file (which only contained the description of the story and nothing else). It worked. Then I just kept adding things on one by one until I found the problem. Turns out, that the things besides the description in the extra_language file is the problem, so I decided to add things to that and continue testing until I found the problem.

You can see the file with everything in it up there in my first post, but here's the part that crashes it.

Spoiler below!
<CATEGORY> Name="Inventory">
<Entry Name="ItemName_StudyKey">Study Key</Entry>
<Entry Name="ItemDesc_StudyKey">The key that unlocks the door in the study.</Entry>
</CATEGORY>

Now, I don't know what exactly is wrong with that, but something must be, because that's what's causing the crash.
(This post was last modified: 08-22-2011, 12:17 PM by Marche100.)
08-22-2011, 12:16 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#8
Solved: 8 Years, 9 Months, 4 Weeks ago RE: Amnesia Crashing Problem

<CATEGORY> Name="Inventory">
=>
<CATEGORY Name="Inventory">

08-22-2011, 12:21 PM
Website Find
Marche100 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Aug 2011
Reputation: 0
#9
Solved: 8 Years, 9 Months, 4 Weeks ago RE: Amnesia Crashing Problem

(08-22-2011, 12:21 PM)Tanshaydar Wrote: <CATEGORY> Name="Inventory">
=>
<CATEGORY Name="Inventory">

Yes, I actually just realized that while I was looking at it and trying to see the problem, thank you. Tongue

Well, I can't believe that something as small as that created an error so large (it's kind of embarrassing actually).

It works without a hitch now, so thanks very much. I doubt I would have seen that without your help, and now I don't have to give up this custom story for lost.

(This post was last modified: 08-22-2011, 12:27 PM by Marche100.)
08-22-2011, 12:26 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#10
Solved: 8 Years, 9 Months, 4 Weeks ago RE: Amnesia Crashing Problem (Solved)

I didn't see it until your last message either Tongue

08-22-2011, 12:32 PM
Website Find




Users browsing this thread: 1 Guest(s)