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


Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amnesia Crashing When Playing Custom Story (Solved)
Marche100 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Aug 2011
Reputation: 0
#1
Amnesia Crashing When Playing Custom Story (Solved)

Well, here's a doozy of a problem that just came up.

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 today 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>

Any ideas? I'm afraid I have no clue as to where the problem even begins with this one, other than the hint in the hpl log up there.
(This post was last modified: 08-22-2011, 12:30 PM by Marche100.)
08-21-2011, 02:40 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Amnesia Crashing When Playing Custom Story

Warnings do not crash the game. The problem is probably in the .hps file.

Tutorials: From Noob to Pro
08-21-2011, 03:27 AM
Website Find
Marche100 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Aug 2011
Reputation: 0
#3
RE: Amnesia Crashing When Playing Custom Story

(08-21-2011, 03:27 AM)Your Computer Wrote: Warnings do not crash the game. The problem is probably in the .hps file.

You mean the level's .hps file? I don't see a problem with it, but here it is, 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");
}
(This post was last modified: 08-21-2011, 11:23 AM by Marche100.)
08-21-2011, 11:19 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Amnesia Crashing When Playing Custom Story

Hmm, not sure what to tell you. I had an access violation error earlier today, but that was because i told the game to reload the map on top of an area whose collide callback gets set OnEnter.

Did you try renaming the .hps file to see if the game still crashes?

Tutorials: From Noob to Pro
08-21-2011, 12:11 PM
Website Find
Marche100 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Aug 2011
Reputation: 0
#5
RE: Amnesia Crashing When Playing Custom Story

(08-21-2011, 12:11 PM)Your Computer Wrote: Hmm, not sure what to tell you. I had an access violation error earlier today, but that was because i told the game to reload the map on top of an area whose collide callback gets set OnEnter.

Did you try renaming the .hps file to see if the game still crashes?

What exactly do you mean by renaming it? Rename the level file and .hps file or just the .hps file, because I don't think it would start up in the first place if I only changed one.

I'll try changing the name of both and get back to you, in the mean time.

Edit: No, I renamed everything with the name of the level to the same thing, and it didn't change a thing. I still get the same exact error. You think I should repost this in the technical forums, maybe, see if someone else has an idea?
(This post was last modified: 08-21-2011, 12:38 PM by Marche100.)
08-21-2011, 12:30 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: Amnesia Crashing When Playing Custom Story

I meant rename the .hps file so it doesn't have the same basename as the .map file, so that the game doesn't load it when you load the map in the game. If the game would have still crashed, then we'd at least be certain it doesn't have anything to do with the scripting portion of your custom story.

I've been assuming that you've opened the map file in the level editor and didn't experience a crash. If that is true, then it wouldn't be the .map file either. And if it isn't the .map nor the .hps file, then perhaps a game file got corrupted or something. In that case, i would recommend reinstalling.

Tutorials: From Noob to Pro
08-21-2011, 09:44 PM
Website Find
Marche100 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Aug 2011
Reputation: 0
#7
RE: Amnesia Crashing When Playing Custom Story

(08-21-2011, 09:44 PM)Your Computer Wrote: I meant rename the .hps file so it doesn't have the same basename as the .map file, so that the game doesn't load it when you load the map in the game. If the game would have still crashed, then we'd at least be certain it doesn't have anything to do with the scripting portion of your custom story.

I've been assuming that you've opened the map file in the level editor and didn't experience a crash. If that is true, then it wouldn't be the .map file either. And if it isn't the .map nor the .hps file, then perhaps a game file got corrupted or something. In that case, i would recommend reinstalling.

I'll give it a shot later, when I get the chance, so at least we can try to isolate the problem.

Explain what you mean by reinstalling, though. Reinstalling what exactly? Amnesia, the game/the editor, or what (I'll assume you mean the game, though, but just to make sure)?

08-21-2011, 10:28 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#8
RE: Amnesia Crashing When Playing Custom Story

(08-21-2011, 10:28 PM)Marche100 Wrote: Explain what you mean by reinstalling, though. Reinstalling what exactly? Amnesia, the game/the editor, or what (I'll assume you mean the game, though, but just to make sure)?

Yes, the entire game.

Tutorials: From Noob to Pro
08-21-2011, 10:31 PM
Website Find
Marche100 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Aug 2011
Reputation: 0
#9
RE: Amnesia Crashing When Playing Custom Story

(08-21-2011, 10:31 PM)Your Computer Wrote:
(08-21-2011, 10:28 PM)Marche100 Wrote: Explain what you mean by reinstalling, though. Reinstalling what exactly? Amnesia, the game/the editor, or what (I'll assume you mean the game, though, but just to make sure)?

Yes, the entire game.

Ok, well, I took the .hps file and renamed it, started it up, and it got the same exact crash error.

Then I uninstalled Amnesia and reinstalled it. Then I tried it. Same error.

I'm going to post these same results over on the thread I made Technical board for Amnesia as a whole. It doesn't look like this error is going to go down without a fight, so I need all the help I can get.

Edit: Ok, I found out what the problem is with the help of Tanshaydar. It was in the extra_english.lang file. I had this:

<CATEGORY> Name="Inventory">

when I should have had this:

<CATEGORY Name="Inventory">

Wow, I just can't believe that it was a simple problem with a bracket. Anyways, thanks again for all your help. Your ideas were much appreciated, as was your help. Big Grin
(This post was last modified: 08-22-2011, 12:30 PM by Marche100.)
08-21-2011, 11:59 PM
Find




Users browsing this thread: 1 Guest(s)