Frictional Games Forum (read-only)
Custom story crashes whole game - 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)
+---- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-37.html)
+---- Thread: Custom story crashes whole game (/thread-25635.html)



Custom story crashes whole game - CQBgamer - 07-08-2014

Hey everyone. So I went to run a custom story I've just started working on and when I select it from the custom story menu the game crashes with the following blackbox message:
Quote: Amnesia.exe caused an EXCEPTION_ACCESS_VIOLATION in module <UNKNOWN> at 0023 0305FCE9

I only have this issue with one particular CS, all the other ones run fine. I will include the HPL below.

Spoiler below!
Code:
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: 800x600 bpp:32 fs:0 ms:0 gpufmt:2 cap:'Amnesia - The Dark Descent - Loading...' pos:(-1x-1)
Setting video mode: 800 x 600 - 32 bpp
Init Glew...OK
Setting up OpenGL
  Vendor: NVIDIA Corporation
  Renderer: GeForce GTX 560 Ti/PCIe/SSE2
  Version: 4.2.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: 4.20 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 TSB-TV-1 (NVIDIA High Definition Audio)(OpenAL default)
   1. Generic Software on Speakers (Creative SB X-Fi)
   2. Generic Software on SPDIF Out (Creative SB X-Fi)
   3. SB X-Fi Audio [0001]
  Trying to open device 'Generic Software on TSB-TV-1 (NVIDIA 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: 1272 ms
  Entities: 225 ms
  Compilation: 1 ms
  Total: 1512 ms
  Meshes created: 26
  Bodies created: 5
-------- Loading complete ---------
Setting profile: 'CQBgamer' Path: 'C:\Users\Andrew\Documents/Amnesia/Main/CQBgamer/'
-------- Loading map 'room01.map' ---------
    Cache Loading: 1633 ms
  Entities: 6932 ms
  Compilation: 9 ms
  Total: 8599 ms
  Meshes created: 7
  Bodies created: 5
-------- Loading complete ---------
-------- Loading map 'menu_bg.map' ---------
    Cache Loading: 1271 ms
  Entities: 215 ms
  Compilation: 1 ms
  Total: 1517 ms
  Meshes created: 26
  Bodies created: 5
-------- Loading complete ---------


And my OS is x86 Windows 7


RE: Custom story crashes whole game - Mudbill - 07-08-2014

Which CS are you referring to? Perhaps it's a known issue? If not, maybe your game is missing some files required for it. If you have it on Steam, you could try a file integrity check.


RE: Custom story crashes whole game - CQBgamer - 07-08-2014

Its one that I'm making. I did several integrity checks and re installed the whole game. There arent any files I used on it that I wouldn't have, as the map is literally just a floor and a box light. Im just trying to see if my image looks ok in the CS description and when I click on it in the Custom Story menu to load it, the game crashes before I even get to the description menu.


RE: Custom story crashes whole game - Mudbill - 07-08-2014

Wait, so it crashes when you select it in the custom stories list? Perhaps you did something quite wrong in the .lang file or the .cfg file. Could you post those?


RE: Custom story crashes whole game - DnALANGE - 07-08-2014

Is your texture , dds jpg or etcetra a pow2 size?
your pucture might be 2x2 4x4 8x8 16x16 32x32 64x64 etc..
try that.
another thing could be a error somewhere in your .hpl (Script file)


RE: Custom story crashes whole game - CQBgamer - 07-09-2014

I rewrote the .lang and story cfg and it works now. Thanks Smile