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
Multiple Issues Help Lang file does not work for no reason!!! Pls help I beg you
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#1
Sad  Lang file does not work for no reason!!! Pls help I beg you

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="" />
(This post was last modified: 01-09-2014, 05:23 PM by Radical Batz.)
01-08-2014, 11:24 PM
Find
daortir Offline
Senior Member

Posts: 422
Threads: 9
Joined: Sep 2013
Reputation: 18
#2
RE: Lang file doesn't work and map_cache?

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.

01-08-2014, 11:54 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#3
RE: Lang file doesn't work and map_cache?

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?

Discord: Romulator#0001
[Image: 3f6f01a904.png]
01-09-2014, 12:49 AM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#4
RE: Lang file doesn't work and map_cache?

(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="" />
01-09-2014, 04:08 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#5
RE: Lang file does not work for no reason!!! Pls help I beg you

I don't know if this is it, but I cannot see anything else:
<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

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 01-09-2014, 11:32 PM by Romulator.)
01-09-2014, 11:22 PM
Find




Users browsing this thread: 2 Guest(s)