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


Thread Rating:
  • 6 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script causing game to randomly crash (No FATAL ERROR)
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
RE: extra_english no longer working, once again!!!

void SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction);

Calls a function when the player interacts with a certain entity.
Callback syntax: void MyFunc(string &in asEntity)

asName - internal name
asCallback - function to call
abRemoveOnInteraction - determines whether the callback should be removed when the player interacts with the entity
08-24-2011, 11:41 PM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
RE: extra_english no longer working, once again!!!

I'm getting a blackbox error now whenever I click my custom story in the Custom Stories list O_O


Amnesia.exe caused an EXCEPTION_ACCESS_VIOLATION in module MSVCR71.dll at 001B:7C3417FB, strlen()+0038 byte(s)
Please Help!!!

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
(This post was last modified: 08-25-2011, 12:43 AM by RawkBandMan.)
08-24-2011, 11:55 PM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
RE: extra_english no longer working, once again!!!

Herpa Derp, here's my hpl.log

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: 800x600 bpp:32 fs:1 ms:0 gpufmt:2 cap:'Amnesia - The Dark Descent - Loading...' posSad-1x-1)
Setting video mode: 800 x 600 - 32 bpp
Init Glew...OK
Setting up OpenGL
Vendor: ATI Technologies Inc.
Renderer: Radeon X300/X550/X1050 Series (Omega 3.8.442)
Version: 2.1.7169 Release
Max texture image units: 16
Max texture coord units: 8
Max user clip planes: 6
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: 4
Max color render targets: 4
Packed depth-stencil: 1
Texture float: 1
GLSL Version: 1.20
ShaderModel 2: 1
ShaderModel 3: 1
ShaderModel 4: 0
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 Hardware on SB Audigy Audio [CCA0](OpenAL default)
1. Generic Software on SB Audigy Audio [CCA0]
2. SB Audigy Audio [CCA0]
Trying to open device 'Generic Software on SB Audigy Audio [CCA0]'... 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: 2442 ms
Entities: 444 ms
Compilation: 2 ms
Total: 2917 ms
Meshes created: 26
Bodies created: 5
-------- Loading complete ---------
Setting profile: 'XxRoCkBaNdMaNxX' Path: 'C:\Documents and Settings\Jesse\My Documents/Amnesia/Main/XxRoCkBaNdMaNxX/'
ERROR: Unable to open config file 'custom_stories/Amnesia - The Village/custom_story_settings.cfg'! Invalid filepointer returned!
Error creating custom story from path "custom_stories/Amnesia - The Village" : could not find custom_story_settings.cfg file or it was invalid.
WARNING: No resources element found in 'custom_stories/AStoryOfDeath/extra_english.lang'
ERROR: Unable to open config file 'custom_stories/Amnesia - The Village/custom_story_settings.cfg'! Invalid filepointer returned!
Error creating custom story from path "custom_stories/Amnesia - The Village" : could not find custom_story_settings.cfg file or it was invalid.
WARNING: No resources element found in 'custom_stories/Escape Hell (DEMO)/extra_english.lang'


I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
08-25-2011, 01:05 AM
Find
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
RE: extra_english no longer working, once again!!!

So.. your log says there's something wrong with the following files:
The Villiage's custom_story_settings.cfg
Escape Hell's extra_english.lang
AStoryOfDeath's extra_english.lang
Just one little mess up ruins EVERYTHING, you really have to hawk-eye it and read it over very carefully. I once missed an end } and everything stopped working. >_>

Ba-da bing, ba-da boom.
08-25-2011, 02:13 AM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
RE: extra_english no longer working, once again!!!

(08-25-2011, 02:13 AM)JenniferOrange Wrote: So.. your log says there's something wrong with the following files:
The Villiage's custom_story_settings.cfg
Escape Hell's extra_english.lang
AStoryOfDeath's extra_english.lang
Just one little mess up ruins EVERYTHING, you really have to hawk-eye it and read it over very carefully. I once missed an end } and everything stopped working. >_>

Turns out I had this problem before, and I fixed it by fixing a problem in my extra_english.lang. Can't really see anything tho, because I'm super blind.


extra_english.lang
Spoiler below!

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">You are a man named Robert Lightwood. You are having personal problems, such as depression, for an unknown reason. Your wife, Maryse Lightwood, goes on a trip to somewhere in the desert, and she dies along the way. She gives you most the things she owns in her will, including a strange artifact she found in the desert. You keep it, and strange things start happening. Such as voices telling you to "Throw it away," or "Give it to me." You ignore them, and keep living, or trying to. You are then taking a nice stroll down an abandoned road when you hear something in the bushes. You get weak from fear and fall to the floor. The world goes dark and something slaps you on the head. You wake in a cell and the story begins.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_CellKey">Cell #801</Entry>
<Entry Name="ItemDesc_CellKey">On the side there are words scratched in. They say "Cell #801".</Entry>
<Entry Name="ItemName_CellsDoor">Specialty Threat Cells Corridor</Entry>
<Entry Name="ItemDesc_CellsDoor">A key for a locked door in the cells area where they kept me.</Entry>
<Entry Name="ItemName_SouthCells">Southern Cells</Entry>
<Entry Name="ItemName_SouthCells">The key for the Southern Cells.</Entry>
<Entry Name="ItemName_AwesomeKey">Back Hall Corridor</Entry>
<Entry Name="ItemDesc_AwesomeKey">This must be for a door in the Hallway of the Back Hall.</Entry>
</CATEGORY>
<CATEGORY Name="Ending">
<Entry Name="StartCredits">
Escape Hell Beta[br]
Made By: XxRoCkBaNdMaNxX[br]
Thanks to [br]XxWestKillzXx and [FuG]wolfofdestruction for beta testing and motivation![br][br]
Following People from Frictional Games Forums: [br]Roenlond, Mofo, Kyle, Greven, Phoroneus,
Frictional Games for this awesome piece of work
Everyone in the community for playing.[br] Stay tuned for the full custom!..... [br][br][br][br]and for Chapter 2
</Entry>
</CATEGORY>
<CATEGORY Name="Levels">
<Entry Name="level_dungeon_1">Water Works</Entry>
<Entry Name="level_dungeon_2">Outer Cells</Entry>
<Entry Name="SpecialCells">Specialty Threats Cells</Entry>
<Entry Name="SouthernCells">Southern Cells</Entry>
<Entry Name="NorthernCells">Northern Cells</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="note_generic_1_Name">Regarding the Closure of the Dark Storage</Entry>
<Entry Name="note_generic_1_Text">Due to the mistake that recently happened inside the Dark Storage, it has been closed, and the key as been placed in the attic, which, conviently, got blocked off by a lot of wooden boards that broke off the roof. I do not plan to open up the Dark Storage ever again, so do not try. The Dark Storage has been filled by rocks and the walls have caved in. Please do not try to get in. -Jace</Entry>
</CATEGORY>
</LANGUAGE>

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
08-25-2011, 02:16 AM
Find
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
RE: extra_english no longer working, once again!!!

You know I always put my journal entries or notes in a different place, there's a folder called English.lang somewhere in Amnesia's redist folder. Sorry I can't remember the exact directory..
After my hawk-eye I don't see anything wrong. When you play the map, what exactly does your error say? I need to know what line is ruining everything.

Ba-da bing, ba-da boom.
08-25-2011, 02:21 AM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
RE: extra_english no longer working, once again!!!

(08-25-2011, 02:21 AM)JenniferOrange Wrote: You know I always put my journal entries or notes in a different place, there's a folder called English.lang somewhere in Amnesia's redist folder. Sorry I can't remember the exact directory..
After my hawk-eye I don't see anything wrong. When you play the map, what exactly does your error say? I need to know what line is ruining everything.

Thing is, I can't actually get into the map. I click the name of my custom in the Custom Stories list, and I get the BlackBox error.

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
08-25-2011, 02:22 AM
Find
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
RE: extra_english no longer working, once again!!!

Hmm. Curse those BlackBox errors.. I'll keep looking at it.
I need to see all of these files:
-The Villiage's custom_story_settings.cfg
-Escape Hell's extra_english.lang
-AStoryOfDeath's extra_english.lang
Please post them all for me and I'll take a look at them.

Ba-da bing, ba-da boom.
(This post was last modified: 08-25-2011, 02:26 AM by JenniferOrange.)
08-25-2011, 02:24 AM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
RE: extra_english no longer working, once again!!!

Okay Here ya go!

Escape Hell
Spoiler below!

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">You are a man named Robert Lightwood. You are having personal problems, such as depression, for an unknown reason. Your wife, Maryse Lightwood, goes on a trip to somewhere in the desert, and she dies along the way. She gives you most the things she owns in her will, including a strange artifact she found in the desert. You keep it, and strange things start happening. Such as voices telling you to "Throw it away," or "Give it to me." You ignore them, and keep living, or trying to. You are then taking a nice stroll down an abandoned road when you hear something in the bushes. You get weak from fear and fall to the floor. The world goes dark and something slaps you on the head. You wake in a cell and the story begins.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_CellKey">Cell #801</Entry>
<Entry Name="ItemDesc_CellKey">On the side there are words scratched in. They say "Cell #801".</Entry>
<Entry Name="ItemName_CellsDoor">Specialty Threat Cells Corridor</Entry>
<Entry Name="ItemDesc_CellsDoor">A key for a locked door in the cells area where they kept me.</Entry>
<Entry Name="ItemName_SouthCells">Southern Cells</Entry>
<Entry Name="ItemName_SouthCells">The key for the Southern Cells.</Entry>
<Entry Name="ItemName_AwesomeKey">Back Hall Corridor</Entry>
<Entry Name="ItemDesc_AwesomeKey">This must be for a door in the Hallway of the Back Hall.</Entry>
</CATEGORY>
<CATEGORY Name="Ending">
<Entry Name="StartCredits">
Escape Hell Beta[br]
Made By: XxRoCkBaNdMaNxX[br]
Thanks to [br]XxWestKillzXx and [FuG]wolfofdestruction for beta testing and motivation![br][br]
Following People from Frictional Games Forums: [br]Roenlond, Mofo, Kyle, Greven, Phoroneus,
Frictional Games for this awesome piece of work
Everyone in the community for playing.[br] Stay tuned for the full custom!..... [br][br][br][br]and for Chapter 2
</Entry>
</CATEGORY>
<CATEGORY Name="Levels">
<Entry Name="level_dungeon_1">Water Works</Entry>
<Entry Name="level_dungeon_2">Outer Cells</Entry>
<Entry Name="SpecialCells">Specialty Threats Cells</Entry>
<Entry Name="SouthernCells">Southern Cells</Entry>
<Entry Name="NorthernCells">Northern Cells</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="note_generic_1_Name">Regarding the Closure of the Dark Storage</Entry>
<Entry Name="note_generic_1_Text">Due to the mistake that recently happened inside the Dark Storage, it has been closed, and the key as been placed in the attic, which, conviently, got blocked off by a lot of wooden boards that broke off the roof. I do not plan to open up the Dark Storage ever again, so do not try. The Dark Storage has been filled by rocks and the walls have caved in. Please do not try to get in. -Jace</Entry>
</CATEGORY>
</LANGUAGE>

The Village custom_story_settings.cfg

It don't exist!

All there is in The Village folder is custom_stories folder, entities, and extra_english.lang

I must've accidently put that in my custom_stories by accident when I wasen't supposed to...


AStoryOfDeath
Spoiler below!
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Stumble through the darkness, towards the lighted path...</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_TheFinalDisaster_Name">The Final Disaster</Entry>
<Entry Name="Note_TheFinalDisaster_Text">(Date is absent)[br][br]Despite our best efforts, we have lost nearly all our patients to this illness. The illness struck this small village quietly, showing only the symptoms of a common cold in the body of a young man in his late twenties. Gradually, we saw flesh decaying as the ailment advanced. We were left with patients who no longer acted or looked 'normal' at times, and many were left to 'die', quarantined behind bars. Today's earthquake destroyed much of the village's houses, while this illness has killed much of the village people. Thirteen patients still remain, being a mix of villagers and my colleagues breathing their last, with none fit for travel. Perhaps it is best that we who remain soon leave this area and head for the better equipped institutions to the north with our current research and samples. I fear that this ailment will become a cloud of darkness above our land.</Entry>
<Entry Name="Note_ConductWithPatients_Name">Conduct With Quarantined Patients</Entry>
<Entry Name="Note_ConductWithPatients_Text">Remember that patients are subject to a 'sway' of periods of activity where they are conscious and passive and periods of activity where they are unconscious and violent. Take caution with knowing when each patient is in which period, and if a calm patient suddenly shows signs of entering the danger period, leave temporarily until the wave has subsided. Also, do not forget proper medical procedure. While the disease is not airborne, it can infect by other means. The far patient in the hall, the first victim, has been shown to have cannibalistic behavior in his violent period. Take care not to be his next meal, we are understaffed as it is.</Entry>
</CATEGORY>
<CATEGORY Name="Ending">
<Entry Name="MainCredits">[br]~ A Story Of Death ~[br][br][br]By Oliver Daids (Oddity007)[br][br]Some tweaks on the 3rd and 4th maps, as well as playtesting and comments by Kurton[br](Thanks, man.)[br][br]Soldiering through this thing, by you.[br](Thanks... person.)[br][br]Also, some really weird historical thanks to this really cool Seth guy who went by the name of Peg-Leg Pete, stocked up on Mountain Dew, and got me interested in level design.[br]</Entry>
</CATEGORY>
</LANGUAGE>


I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
08-25-2011, 02:31 AM
Find
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
RE: extra_english no longer working, once again!!!

The Villiage NEEDS to have a custom_story_settings.cfg!!! That's one of the problems. If you don't have it, it won't run. And I'm confused as to why there's a custom_stories folder in The Villiage? If The Villiage is a custom story, when you open it you should see:
A folder named Maps
The custom_story_settings.cfg
When you open the Maps folder, you should see:
The Villiage's map (mapname.map)
The .hps

Ba-da bing, ba-da boom.
(This post was last modified: 08-25-2011, 02:36 AM by JenniferOrange.)
08-25-2011, 02:36 AM
Find




Users browsing this thread: 1 Guest(s)