Frictional Games Forum (read-only)
[CHAOS] Lang file does not work for no reason!!! Pls help I beg you - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [CHAOS] Lang file does not work for no reason!!! Pls help I beg you (/thread-24323.html)



Lang file does not work for no reason!!! Pls help I beg you - Radical Batz - 01-08-2014

well the lang file started working after I made a dev environment with the main init so i can load custom story's easier! but if you can't find anything wrong with it then I don't know why this is happening! looks like I have to delete my custom story again then Sad

These are all the files that i worked on before the lang file stopped working! which made it stop working after I used these files

lang file

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Your name is Richard Anderson and you are a Reporter! Your Boss told you to take some photos of an Abandoned Castle, but when you got closer to the castle, a creature came out and quickly hit you which caused you to faint and then it trapped you inside the castle and there's no escape![br] You must explore and find a way to get out of the castle before it's too late!</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_HiddenKey_Name">Hidden Key</Entry>
<Entry Name="Note_HiddenKey_Text">That slave of mine keeps stealing food everytime from the Food Storage without even asking permission!Because of that I'm going to let him starve for months or years. So I hid the key of the "Food Storage" somewhere in this room. That slave is too stupid that he can't even read! Not even this note.</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_TestItem">Food Storage Key</Entry>
<Entry Name="ItemDesc_TestItem">This is the key of the "Food Storage"</Entry>
</CATEGORY>

<CATEGORY Name="Levels">
<Entry Name="FoodStorage">Food Storage</Entry>
<Entry Name="MasterBedroom">Master Bedroom</Entry>
<Entry Name="CastleEntrance">Castle Entrance</Entry>
<Entry Name="CastleEntrance">Castle Entrance</Entry>
</CATEGORY>

<CATEGORY Name="CustomCatLevels">
<Entry Name="CustomEntryLevel">The food storage is locked. I need the food storage key to open this.</Entry>
</CATEGORY>
</LANGUAGE>




main init file

<ConfigFiles
Resources = "resources.cfg"
Materials = "ptest_materials.cfg"

Game = "config/ptest_game.cfg"
Menu = "config/ptest_menu.cfg"
PreMenu = "config/ptest_pre_menu.cfg"
Demo = "config/demo.cfg"

DefaultMainSettings = "config/default_main_settings.cfg"

DefaultMainSettingsLow = "launcher/default_main_settings_low.cfg"
DefaultMainSettingsMedium = "launcher/default_main_settings_medium.cfg"
DefaultMainSettingsHigh = "launcher/default_main_settings_high.cfg"


DefaultUserSettings = "config/default_user_settings.cfg"
DefaultUserKeys = "config/default_user_keys.cfg"

DefaultBaseLanguage = "base_english.lang"
DefaultGameLanguage = "english.lang"
/>

<Directories
MainSaveFolder = "Main"

BaseLanguageFolder = "config/"
GameLanguageFolder = "config/lang_ptest/"

CustomStoryPath = "custom_stories"
/>

<Variables
GameName = "Amnesia - Justine -"
/>

<StartMap
File = "01_cells.map"
Folder = "maps/ptest/"
Pos = "PlayerStartArea_1"
/>


user_settings file

<Game ShowCommentary="false" ShowCrossHair="true" FocusIconStyle="Default" ShowDeathHints="true" ShowSubtitles="true" ShowEffectSubtitles="false" ShowHints="false" />
<Debug ShowFPS="false" ShowSoundPlaying="false" ShowPlayerInfo="false" ShowEntityInfo="false" SaveCheckPointOnMapLoad="false" ShowDebugMessages="false" UseProgLog="false" ScriptDebugOn="true" InspectionMode="false" DisableFlashBacks="false" DrawPhysics="false" ReloadFromCurrentPosition="true" AllowQuickSave="false" />
<Input InvertMouse="false" SmoothMouse="true" MouseSensitivity="1.000000" />
<Map File="" Folder="" StartPos="" />


RE: Lang file doesn't work and map_cache? - daortir - 01-08-2014

Delete the .map_cache of your custom story's map anytime you want ^^. Sometimes they make stuff mess up, I never hesitate to get rid of them anytime I want.


RE: Lang file doesn't work and map_cache? - Romulator - 01-09-2014

map_cache just makes it easier and quicker to load the map, but because they are taken as soon as the map loads, they are a nuisance for developers.

Could you post your .lang file if after deleting the map_cache does not fix it?


RE: Lang file doesn't work and map_cache? - Radical Batz - 01-09-2014

(01-09-2014, 12:49 AM)Romulator Wrote: map_cache just makes it easier and quicker to load the map, but because they are taken as soon as the map loads, they are a nuisance for developers.

Could you post your .lang file if after deleting the map_cache does not fix it?

well the lang file started working after I made a dev environment with the main init so i can load custom story's easier

These are all the files that i worked on before the lang file stopped working! which made it stop working after I used these files

lang file

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Your name is Richard Anderson and you are a Reporter! Your Boss told you to take some photos of an Abandoned Castle, but when you got closer to the castle, a creature came out and quickly hit you which caused you to faint and then it trapped you inside the castle and there's no escape![br] You must explore and find a way to get out of the castle before it's too late!</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_HiddenKey_Name">Hidden Key</Entry>
<Entry Name="Note_HiddenKey_Text">That slave of mine keeps stealing food everytime from the Food Storage without even asking permission!Because of that I'm going to let him starve for months or years. So I hid the key of the "Food Storage" somewhere in this room. That slave is too stupid that he can't even read! Not even this note.</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_TestItem">Food Storage Key</Entry>
<Entry Name="ItemDesc_TestItem">This is the key of the "Food Storage"</Entry>
</CATEGORY>

<CATEGORY Name="Levels">
<Entry Name="FoodStorage">Food Storage</Entry>
<Entry Name="MasterBedroom">Master Bedroom</Entry>
<Entry Name="CastleEntrance">Castle Entrance</Entry>
<Entry Name="CastleEntrance">Castle Entrance</Entry>
</CATEGORY>

<CATEGORY Name="CustomCatLevels">
<Entry Name="CustomEntryLevel">The food storage is locked. I need the food storage key to open this.</Entry>
</CATEGORY>
</LANGUAGE>




main init file

<ConfigFiles
Resources = "resources.cfg"
Materials = "ptest_materials.cfg"

Game = "config/ptest_game.cfg"
Menu = "config/ptest_menu.cfg"
PreMenu = "config/ptest_pre_menu.cfg"
Demo = "config/demo.cfg"

DefaultMainSettings = "config/default_main_settings.cfg"

DefaultMainSettingsLow = "launcher/default_main_settings_low.cfg"
DefaultMainSettingsMedium = "launcher/default_main_settings_medium.cfg"
DefaultMainSettingsHigh = "launcher/default_main_settings_high.cfg"


DefaultUserSettings = "config/default_user_settings.cfg"
DefaultUserKeys = "config/default_user_keys.cfg"

DefaultBaseLanguage = "base_english.lang"
DefaultGameLanguage = "english.lang"
/>

<Directories
MainSaveFolder = "Main"

BaseLanguageFolder = "config/"
GameLanguageFolder = "config/lang_ptest/"

CustomStoryPath = "custom_stories"
/>

<Variables
GameName = "Amnesia - Justine -"
/>

<StartMap
File = "01_cells.map"
Folder = "maps/ptest/"
Pos = "PlayerStartArea_1"
/>


user_settings file

<Game ShowCommentary="false" ShowCrossHair="true" FocusIconStyle="Default" ShowDeathHints="true" ShowSubtitles="true" ShowEffectSubtitles="false" ShowHints="false" />
<Debug ShowFPS="false" ShowSoundPlaying="false" ShowPlayerInfo="false" ShowEntityInfo="false" SaveCheckPointOnMapLoad="false" ShowDebugMessages="false" UseProgLog="false" ScriptDebugOn="true" InspectionMode="false" DisableFlashBacks="false" DrawPhysics="false" ReloadFromCurrentPosition="true" AllowQuickSave="false" />
<Input InvertMouse="false" SmoothMouse="true" MouseSensitivity="1.000000" />
<Map File="" Folder="" StartPos="" />


RE: Lang file does not work for no reason!!! Pls help I beg you - Romulator - 01-09-2014

I don't know if this is it, but I cannot see anything else:
Code:
<CATEGORY Name="Levels">
<Entry Name="FoodStorage">Food Storage</Entry>
<Entry Name="MasterBedroom">Master Bedroom</Entry>
<Entry Name="CastleEntrance">Castle Entrance</Entry>
<Entry Name="CastleEntrance">Castle Entrance</Entry>
</CATEGORY>


You have two CastleEntrance entries. Remove one of them Smile

Edit: Also, the only issue is the extra_english.lang file. You don't need the main_init file, or the usrsettings Smile