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
.lang File Crashing? [SOLVED]
Pshyched Offline
Member

Posts: 130
Threads: 21
Joined: Nov 2012
Reputation: 5
#1
Thumbs Up  .lang File Crashing? [SOLVED]

I was hoping to avoid asking on the forum but it has come to a point where I cannot fix it. I recently updated my .lang file because I had missed a single " at the end of <CATEGORY Name="Ending">. Once I changed it though, whenever I selected the map, it crashed straight away. Remove the " and the map works fine, just nothing from the .lang file works.

THE ERROR:
Amnesia.exe cause an EXEPCTION_ACCESS_VIOLATION in module MSVCR71.dll at 001B:7C3417FB, strlen()+0038byte(s)

The .lang File
Spoiler below!

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Add Later</Entry>
</CATEGORY>

<CATEGORY NAME="Inventory">
<Entry Name="ItemName_HouseKey">House Key</Entry>
<Entry Name="ItemDesc_HouseKey">Can't Forget to take this with me. I still enjoy this Antique key for my new Antique Door. I still wonder where the original of the door is.</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_ApprovalNotice_Name">Approval Notice</Entry>
<Entry Name="Note_ApprovalNotice_Text">Dear Mr. Slade [br][br] We wish to Inform you that you have been approved to step foot on Carter Island for Bird Watching purposes only. [br][br]Sincerely[br]New York Coast Guard</Entry>
<Entry Name="Note_FromGirlfriend_Name">Note From Girlfriend</Entry>
<Entry Name="Note_FromGirlfriend_Text">Morning Babe,[br][br]You always say that you enjoy me leaving you notes in the morning so, here it is. The time has come and as you're reading this I am already on plane heading for Australia. I will miss you so much and I will get in contact with you as soon as I can.[br][br]Love From Chelsea. X X X[br][br]P.S. A letter was sitting outside the door so I put it in your secret spot.</Entry>
</CATEGORY>

<CATEGORY Name="Levels">
<Entry Name="HouseDoor">Leave House</Entry>
</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="LockedHouseDoor">I need my Key before I can leave.</Entry>
</CATEGORY>
</LANGUAGE>


The custom_story_settings.cfg file
Spoiler below!

<Main
ImgFile = ""
Name = "The Bird Watcher"
Author = "Pshyched"

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


The .hpl file
Spoiler below!

Version 1.20 - s2F36B46-539
-------- 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: 1920x1080 bpp:32 fs:1 ms:0 gpufmt:2 cap:'Amnesia - The Dark Descent - Loading...' posSad-1x-1)
Setting video mode: 1920 x 1080 - 32 bpp
Init Glew...OK
Setting up OpenGL
Vendor: NVIDIA Corporation
Renderer: GeForce GTX 260/PCIe/SSE2
Version: 3.3.0
Max texture image units: 32
Max texture coord units: 8
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: 3.30 NVIDIA via Cg compiler
ShaderModel 2: 1
ShaderModel 3: 1
ShaderModel 4: 1
OGL ATIFragmentShader: 0
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 Headset Earphone (Razer Kraken 7.1)(OpenAL default)
1. Generic Software on Speakers (High Definition Audio Device)
Trying to open device 'Generic Software on Headset Earphone (Razer Kraken 7.1)'... 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: 1290 ms
Entities: 225 ms
Compilation: 1 ms
Total: 1528 ms
Meshes created: 25
Bodies created: 5
-------- Loading complete ---------
Setting profile: 'Luke' Path: 'C:\Users\Luke\Documents/Amnesia/Main/Luke/'
ERROR: Unable to open config file 'custom_stories/Hotel/custom_story_settings.cfg'! Invalid filepointer returned!
Error creating custom story from path "custom_stories/Hotel" : could not find custom_story_settings.cfg file or it was invalid.
WARNING: No resources element found in 'custom_stories/The Bird Watcher/extra_english.lang'

I have added <RESOURCES> </RESOURCES>, it loads the map fine but nothing from the .lang file shows up.


Anything else that is needed to aid in the discovery of this error will be given.
(This post was last modified: 04-21-2014, 03:45 PM by Pshyched.)
04-21-2014, 03:29 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: .lang File Crashing?

The log says there is an error in your custom_story_settings.cfg file. Could it be the name of your map? Is it named 00_Intro.map with matching capitals? I don't think the .lang file should cause the game to crash even if it contains errors, so it's kinda odd.

04-21-2014, 03:33 PM
Find
Pshyched Offline
Member

Posts: 130
Threads: 21
Joined: Nov 2012
Reputation: 5
#3
RE: .lang File Crashing?

I posted up my custom_story_settings.cfg file, I don't see anything wrong with it though..
04-21-2014, 03:36 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: .lang File Crashing?

How do your files look then? How are they set up path-wise and name-wise?

04-21-2014, 03:43 PM
Find
Pshyched Offline
Member

Posts: 130
Threads: 21
Joined: Nov 2012
Reputation: 5
#5
RE: .lang File Crashing?

Fixed it, <CATEGORY NAME=Inventory> was the problem.. All them capital letters broke the game.. Gah. Oh well, I give credit to the .lang file editor for finding it for me. Smile

Thanks anyway Mudbill.
04-21-2014, 03:44 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#6
RE: .lang File Crashing? [SOLVED]

Well, then we at least know that is another possible problem for the future. Gives me something to suggest if someone has a similar problem Wink

04-21-2014, 03:53 PM
Find




Users browsing this thread: 1 Guest(s)