The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 Help Lang file stopped working completely
Dutton Offline
Member

Posts: 121
Threads: 3
Joined: Apr 2012
Reputation: 2
#1
Lang file stopped working completely

Okay, so i just bumped into the most weird error i ever encountered while making my custom story.

I've been working on it for a long time now, and suddently everything concerning the .lang file stopped working.
I've tored the whole forum apart for 3 days of searching to find a solution to this problem and can't find anything regarding my error.

First thing i noticed when this happened was the custom story's description stopped showing up and instead popping up with "No Description". I've reinstalled the game with no luck, deleted the main_settings.cfg plus user_settings.cfg files with no luck, checked my lang file over and over including the .hps file. There is a few errors in the .hpl regarding an error that says it aren't able to load my .lang file.

Tryed diffrent types of solutions through the forum but none of them are working.

.lang File:
Spoiler below!
<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">
Can you find the secret message?
But most important... Will you live?
</Entry>
</CATEGORY>

<CATEGORY Name="Levels">
<Entry Name="DoorStorage">Storage</Entry>
<Entry Name="DoorSchematics">Schematics</Entry>
<Entry Name="DoorGuestroom">Guest Room</Entry>
<Entry Name="DoorMainHall">Main Hall</Entry>
</CATEGORY>

<CATEGORY Name="MainHall">
<Entry Name="LevelDoorLocked_Guestroom">It is locked, I'll have to find The Guest Room Key</Entry>
<Entry Name="LevelDoorLocked_Schematics">It is locked, I'll have to find The Schematical Key</Entry>
<Entry Name="LevelDoorLocked_Storage">It is locked, I'll have to find The Storage Key</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_notekeysto_Name">Find the key!</Entry>
<Entry Name="Note_notekeysto_Text">There is no time![br][br]
Find the key inside the dining hall, its hidden behind one of the knight replica statues!
if you see this message you probably already ran into the servants... god bless if you survive![br][br]
P.S There is always a Cleaner after a Killer!</Entry>
<Entry Name="Note_storagenote_Name">Setting up the Storage</Entry>
<Entry Name="Note_storagenote_Text">To Barney[br][br]
We are processing the amount of items placed in the storage.[br]
At the moment we haven't got the biggest amount yet, but i assure you[br]
that we are going to get it filled.[br][br]
Next mounth the traveler Gordon, will be here with a whole new level of funitures<br>
for the Mansion! Alot of changes are going to happend, and i think[br]
you'll get quite exited about the things i have in mind.[br][br]
Best Regards P. Johnson</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_storagekey">Key to The Storage Room</Entry>
<Entry Name="ItemDesc_storagekey">Key used to unlock The Storage Room!</Entry>
<Entry Name="ItemName_guestroomkey">Key to The Guest Room</Entry>
<Entry Name="ItemDesc_guestroomkey">Key used to unlock The Guest Room!</Entry>
</CATEGORY>
</LANGUAGE>


.hps File:
Spoiler below!
void OnStart()

{
SetEntityPlayerInteractCallback("Notetokey", "ActivateKeySto", true);
AddEntityCollideCallback("Player", "scare", "CollideScarePlayer", true, 1);
AddEntityCollideCallback("servant_brute_1", "brutefunc", "BruteGruntFunc", true, 1);
AddEntityCollideCallback("Player", "faint01", "Fainting", true, 1);
}

void CollideScarePlayer(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(5.0f, true);
StartScreenShake(0.2, 3, 0, 1);
SetEntityActive("servant_brute_1" , true);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0.0f, false);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 6, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 2, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_9", 2, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_10", 2, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_11", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_12", 0, "");
}

void BruteGruntFunc(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(5.0f, true);
PlaySoundAtEntity("", "react_scare1.ogg", "Player", 0.0f, false);
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
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", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_11", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_12", 2, "");
}

void ActivateKeySto(string &in asEntity)
{
SetEntityActive("keytostorage", true);
}

void Fainting(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "enabled.snt", "Player", 0.0f, false);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0.0f, false);
FadeOut(0.3);
AddTimer("WakeUp", 3.5f, "TimerWakeUp");
FadePlayerFOVMulTo(4.0f, 4.0f);
SetRadialBlurStartDist(0.1f);
FadeRadialBlurTo(1.0f, 5.0f);

StartEffectFlash(0.2, 0.1,0.3);

FadeGlobalSoundVolume(0, 0.3);
StopMusic(0.3f, 0);
StartScreenShake(0.1, 4.7, 0.05, 0.5);

FadePlayerFOVMulTo(0.5, 3);
}

void TimerWakeUp(string &in asTimer)
{
PlaySoundAtEntity("", "react_breath.snt", "Player", 0.0f, false);
FadeGlobalSoundVolume(1,2);
SetPlayerActive(true);
FadePlayerFOVMulTo(1.0f, 0.5f);
FadeRadialBlurTo(0.0f, 1.0f);
FadeIn(1.3);

FadePlayerFOVMulTo(1, 1);}

.hpl File:
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:0 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 Radeon HD 5700 Series
Version: 4.2.11554 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: 4.20
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)
1. Generic Software on Realtek Digital Output (Realtek High Definition Audio)
2. Generic Software on Realtek Digital Output(Optical) (Realtek High Definition Audio)
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: 630 ms
Entities: 135 ms
Compilation: 0 ms
Total: 772 ms
Meshes created: 26
Bodies created: 5
-------- Loading complete ---------
Setting profile: 'Dutton' Path: 'C:\Users\Dutton\Documents/Amnesia/Main/Dutton/'
ERROR: Couldn't load language file 'custom_stories/A Secret Message/extra_english.lang'
WARNING: Could not find language file category 'CustomStoryMain'
-------- Loading map 'asecretmessage.map' ---------
ERROR: Could not open binary file 'g:/spil/steam/steamapps/common/amnesia the dark descent/custom_stories/A Secret Message/maps/asecretmessage.map_cache'
ERROR: Could not map cache file 'g:/spil/steam/steamapps/common/amnesia the dark descent/custom_stories/A Secret Message/maps/asecretmessage.map'. MeshEntity Loading: 512 ms
Primitive Loading: 65 ms
Decal Loading: 0 ms
Object Combining: 0 ms
Compilation: 6 ms
Combining: 550 ms
Sorting: 83 ms
Meshes: 8 ms
Bodies: 459 ms
Static Objects: 1134 ms
Entities: 1333 ms
Compilation: 2 ms
Total: 2496 ms
Meshes created: 28
Bodies created: 21
-------- Loading complete ---------
WARNING: Could not find language file entry 'Note_notekeysto_Name'
WARNING: Could not find language file entry 'Note_notekeysto_Text'
WARNING: Could not find language file entry 'Note_notekeysto_Name'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file category 'MainHall'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorStorage'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
WARNING: Could not find language file entry 'DoorGuestroom'
-------- Loading map 'menu_bg.map' ---------
Cache Loading: 594 ms
Entities: 120 ms
Compilation: 0 ms
Total: 721 ms
Meshes created: 26
Bodies created: 5
-------- Loading complete ---------
--------------------------------------------------------

Statistics
--------------------------------------------------------
Medium framerate: 53.623514
--------------------------------------------------------

User Exit
--------------------------------------------------------
Saving main config.
Saving user config.
Deleting game modules.
'LuxInputHandler'
'LuxHelpFuncs'
'LuxSaveHandler'
'LuxScriptHandler'
'LuxProgressLogHandler'
'LuxMapHandler'
'LuxMapHelper'
'LuxPlayer'
'LuxInsanityHandler'
'LuxDebugHandler'
'LuxEffectRenderer'
'LuxMusicHandler'
'LuxMusicHandler'
'LuxEffectHandler'
'LuxCompletionCountHandler'
'LuxGlobalDataHandler'
'LuxHintHandler'
'LuxPostEffectHandler'
'LuxPreMenu'
'LuxDebugHandler'
'LuxInventory'
'LuxJournal'
'LuxCredits'
'LuxLoadScreenHandler'
Deleting config files.
--------------------------------------------------------

Exiting Gui Module
--------------------------------------------------------
Deleting all sets
Deleting all skins
Deleting all gfx elements
Deleting all materials
--------------------------------------------------------

Exiting Generate Module
--------------------------------------------------------
--------------------------------------------------------

Exiting Scene Module
--------------------------------------------------------
--------------------------------------------------------

Exiting Input Module
--------------------------------------------------------
--------------------------------------------------------

Exiting Sound Module
--------------------------------------------------------
--------------------------------------------------------

Exiting Graphics Module
--------------------------------------------------------
--------------------------------------------------------

Exiting Resources Module
--------------------------------------------------------
Done with fonts
Done with scripts
Done with particles
Done with sounds
Done with meshes
Done with materials
Done with Gpu programs
Done with images
Destroyed all textures
Done with sound entities
Done with animations
Done with ent files
All resources deleted
--------------------------------------------------------

Exiting Physics Module
--------------------------------------------------------
--------------------------------------------------------

Exiting System Module
--------------------------------------------------------
--------------------------------------------------------

Deleting game setup provided by user
- Deleting lowlevel stuff.
Physics
Sound
Input
Resources
System
Graphics
Haptic
HPL Exit was successful!

|--Memory Manager Report-------------------------------|
|
| No memory leaks detected. Memory left: 0
|
|------------------------------------------------------|




Still trying to figure out what is wrong.

[Image: 15isy6C]
(This post was last modified: 04-21-2012, 09:41 PM by Dutton.)
04-21-2012, 09:39 PM
Find


Messages In This Thread
Lang file stopped working completely - by Dutton - 04-21-2012, 09:39 PM



Users browsing this thread: 1 Guest(s)