My extra_english. lang file doesn't want to work for my custom story. I triple checked the spelling, location of the file, everything. Here is the file:
<LANGUAGE>
<CATEGORY Name="Messages">
<Entry Name="Prison_1_Locked">It's locked.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_Spare Key">Spare Key</Entry>
<Entry Name="ItemDesc_Spare Key">A spare key left by the prison warden.</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_PrisonWardensNote_Name">Note from Prison Warden</Entry>
<Entry Name="Note_PrisonWardensNote_Text">I can't take this anymore. My ears have become desensitized to the blood curdling screams emanating from the torture chambers. Bernhard has locked me in here to die. I must escape. I left a spare key under a pile of wooden boards.</Entry>
</CATEGORY>
</LANGUAGE>
Before I set up extra_english.lang I put this in the base game's english.lang and it worked fine. But I don't see how the text doesn't show up even in the same format
You can't use spaces in your variable names. You've named your key "Spare Key" with a space. This will cause issues.
(11-13-2018, 04:00 AM)Mudbill Wrote: [ -> ]You can't use spaces in your variable names. You've named your key "Spare Key" with a space. This will cause issues.
Just added underscores where the spaces were and tested in game. Made no difference
If you add the category below, does it not show up in the main menu? If not, can you show me your custom_story_settings.cfg file, and perhaps a screenshot of your custom story folder contents?
PHP Code:
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">A test description.</Entry>
</CATEGORY>
(11-13-2018, 02:02 PM)Mudbill Wrote: [ -> ]If you add the category below, does it not show up in the main menu? If not, can you show me your custom_story_settings.cfg file, and perhaps a screenshot of your custom story folder contents?
PHP Code:
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">A test description.</Entry>
</CATEGORY>
Added the category, nothing on the menu
Here's my custom_story_settings.cfg
<Main
ImgFile = "castle.jpg"
Name = "My Story"
Author = "Lorian"
MapsFolder = "maps/"
StartMap = "notetest.map"
StartPos = "PlayerStartArea_1"
ExtraLangFilePrefix = "extra_"
DefaultExtraLangFile = "english.lang"
/>
I suppose you can try removing these two lines:
ExtraLangFilePrefix = "extra_"
DefaultExtraLangFile = "english.lang"
Since extra_english.lang is what it defaults to anyway. Also make sure you have extensions visible on your system so that your files don't hide an extra file extension.
(11-18-2018, 12:12 AM)Mudbill Wrote: [ -> ]I suppose you can try removing these two lines:
ExtraLangFilePrefix = "extra_"
DefaultExtraLangFile = "english.lang"
Since extra_english.lang is what it defaults to anyway. Also make sure you have extensions visible on your system so that your files don't hide an extra file extension.
Deleting the last two lines didn't work. I even tried copying the entire english.lang from the config files and pasted the entire extra_english.lang contents to see if that helped and the game crashes the instant I click on the Custom Story in the main menu
In these two lines
Code:
<Entry Name="ItemName_Spare Key">Spare Key</Entry>
<Entry Name="ItemDesc_Spare Key">A spare key left by the prison warden.</Entry>
...did you change it into
Code:
<Entry Name="ItemName_Spare_Key">Spare Key</Entry>
or
Code:
<Entry Name="ItemName_Spare Key">Spare_Key</Entry>
?
(notice where I added the '_' sign)
The first option is the correct way to do it.
Option 2: Get a Custom Story template and use it''s extra_english.lang
This bug might be caused by lack of certain categories in your lang.
The game crashing is very different from the lang file texts not showing up. If you're crashing, we need the hpl.log file from Documents\Amnesia\Main. Crashes are usually script errors. The extra_english.lang file requires no scripting to work.
(11-19-2018, 11:09 PM)Mudbill Wrote: [ -> ]The game crashing is very different from the lang file texts not showing up. If you're crashing, we need the hpl.log file from Documents\Amnesia\Main. Crashes are usually script errors. The extra_english.lang file requires no scripting to work.
The custom story isn't even showing up in the main menu anymore and the hpl.log doesn't show the crash