Frictional Games Forum (read-only)
Can't get extra_english.lang to work - 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: Can't get extra_english.lang to work (/thread-13793.html)

Pages: 1 2


Can't get extra_english.lang to work - Damascus - 03-06-2012

I've followed all the tutorials and searched topics all over the forum but none of the proposed solutions seem to work. I'm starting out trying to use the .lang file to give a message when you attempt to open a door, and to rename an item.

First off, my files are arranged like this (I have the Steam version):
custom_stories/
|- Kassel/
| |- maps/
| | |- castle.hps
| | |- castle.map
| |- extra_english.lang
In my .lang file, I put the following:

Spoiler below!
<LANGUAGE>

<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_StorageKey">A key to the storage room.</Entry>
<Entry Name="ItemName_StorageKey">Storage Key</Entry>
</CATEGORY>

<CATEGORY Name="Doors">
<Entry Name="castle_5">The latch is jammed.</Entry>
</CATEGORY>

</LANGUAGE>

And in my .hps file, I put the following:

Spoiler below!
void OnStart()
{
SetEntityPlayerInteractCallback("castle_5", "Message", true);
}

void Message(string &in asEntity)
{
SetMessage("Doors", "castle_5", 5.0f);
}

If I did everything correctly, when the player interacts with the door "castle_5," the script should bring up the message in the "Doors" category under "castle_5." And the key in question does have "StorageKey" for it's CutsomItemSubtypeName. Neither of them work properly.




RE: Can't get extra_english.lang to work - palistov - 03-06-2012

It's likely an error somewhere in your lang file, but not where you're looking. Review your entire lang file for any errors. Also, try closing Amnesia and deleting the map_cache file in your custom story's maps folder.


RE: Can't get extra_english.lang to work - Damascus - 03-06-2012

What I posted is all there is in my lang file at the moment. And I have no map_cache file.



RE: Can't get extra_english.lang to work - Your Computer - 03-06-2012

Try testing it under a new profile.


RE: Can't get extra_english.lang to work - palistov - 03-06-2012

Add this bit into your lang file under the category. Then restart Amnesia and launch your story, see if this gets it working

Code:
<CATEGORY Name="CustomStoryMain">
    <Entry Name="Description">
        A description of your story
    </Entry>
</CATEGORY>



RE: Can't get extra_english.lang to work - Damascus - 03-06-2012

I've tried both. I created a new map, with a new script and new lang file, which still doesn't work, even with the new information palistov posted.

I'm starting to suspect it might be a problem with how I load the map to test it out. I followed the instructions in http://wiki.frictionalgames.com/hpl2/amnesia/devenvguide, and put my test level in the "amnesia the dark descent/maps" folder. Then to test the level I just open Amnesia, and it goes directly to my level without the loading screen.

I'm not sure if there's a better way people build and test their levels. The tutorials are kind of confusing.



RE: Can't get extra_english.lang to work - Your Computer - 03-06-2012

(03-06-2012, 03:30 AM)Damascus Wrote: I've tried both. I created a new map, with a new script and new lang file, which still doesn't work, even with the new information palistov posted.

That's not what i meant by "new profile."


RE: Can't get extra_english.lang to work - Damascus - 03-06-2012

Once I undid the changes in the tutorial I mentioned and made a new profile, the lang file was working successfully.

However, once I changed the main_setting.cfg and user_settings.cfg to quick load the map, it stopped working again. Should I be going about this a different way?



RE: Can't get extra_english.lang to work - Your Computer - 03-06-2012

(03-06-2012, 04:13 AM)Damascus Wrote: Once I undid the changes in the tutorial I mentioned and made a new profile, the lang file was working successfully.

However, once I changed the main_setting.cfg and user_settings.cfg to quick load the map, it stopped working again. Should I be going about this a different way?

You've come across an issue that is known but one that not every one has. This means you're going to have to test your map without developer mode.


RE: Can't get extra_english.lang to work - Datguy5 - 03-06-2012

(03-06-2012, 05:45 AM)Your Computer Wrote:
(03-06-2012, 04:13 AM)Damascus Wrote: Once I undid the changes in the tutorial I mentioned and made a new profile, the lang file was working successfully.

However, once I changed the main_setting.cfg and user_settings.cfg to quick load the map, it stopped working again. Should I be going about this a different way?

You've come across an issue that is known but one that not every one has. This means you're going to have to test your map without developer mode.
I never use dev mode :>