Frictional Games Forum (read-only)
[LANG] .lang file not working?! - 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: [LANG] .lang file not working?! (/thread-22014.html)

Pages: 1 2


.lang file not working?! - iLucian - 07-03-2013

Hi, so im making a custom story and i put all of the codes in the .lang file to give a name and description to a key, but when i go in the game and pick the key up, it says "Picked up" and thats it. I dont know if it is something with my coding or if something with my .lang file, i just need help. Plz someone help me!

Here is what is in my .lang file:

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">My custom story, so far.</Entry>

</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="doorlock1">Locked.</Entry>

<CATEGORY Name="LevelDoors">
<Entry Name="LevelDoor1">Locked.</Entry>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_key1">Private Study Key</Entry>
<Entry Name="ItemDesc_key1">Unlocks the door to the Private Study.</Entry>


RE: .lang file not working?! - Daemian - 07-03-2013

</LANGUAGE> ?

and </CATEGORY> for every <CATEGORY>


RE: .lang file not working?! - The chaser - 07-03-2013

(07-03-2013, 07:35 PM)iLucian Wrote: Hi, so im making a custom story and i put all of the codes in the .lang file to give a name and description to a key, but when i go in the game and pick the key up, it says "Picked up" and thats it. I dont know if it is something with my coding or if something with my .lang file, i just need help. Plz someone help me!

Here is what is in my .lang file:

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">My custom story, so far.</Entry>

</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="doorlock1">Locked.</Entry>

<CATEGORY Name="LevelDoors">
<Entry Name="LevelDoor1">Locked.</Entry>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_key1">Private Study Key</Entry>
<Entry Name="ItemDesc_key1">Unlocks the door to the Private Study.</Entry>


<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">My custom story, so far.</Entry>

</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="doorlock1">Locked.</Entry>
</CATEGORY>

<CATEGORY Name="LevelDoors">
<Entry Name="LevelDoor1">Locked.</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_key1">Private Study Key</Entry>
<Entry Name="ItemDesc_key1">Unlocks the door to the Private Study.</Entry>
</CATEGORY>
</LANGUAGE>

I think this should work.


RE: .lang file not working?! - iLucian - 07-03-2013

(07-03-2013, 07:53 PM)The chaser Wrote:
(07-03-2013, 07:35 PM)iLucian Wrote: Hi, so im making a custom story and i put all of the codes in the .lang file to give a name and description to a key, but when i go in the game and pick the key up, it says "Picked up" and thats it. I dont know if it is something with my coding or if something with my .lang file, i just need help. Plz someone help me!

Here is what is in my .lang file:

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">My custom story, so far.</Entry>

</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="doorlock1">Locked.</Entry>

<CATEGORY Name="LevelDoors">
<Entry Name="LevelDoor1">Locked.</Entry>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_key1">Private Study Key</Entry>
<Entry Name="ItemDesc_key1">Unlocks the door to the Private Study.</Entry>


<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">My custom story, so far.</Entry>

</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="doorlock1">Locked.</Entry>
</CATEGORY>

<CATEGORY Name="LevelDoors">
<Entry Name="LevelDoor1">Locked.</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_key1">Private Study Key</Entry>
<Entry Name="ItemDesc_key1">Unlocks the door to the Private Study.</Entry>
</CATEGORY>
</LANGUAGE>

I think this should work.

Thanks!! This worked! Big Grin


RE: .lang file not working?! - Ainz - 09-22-2013

Hey there,

I've got a problem with my .lang file as well.

I've tried to add a Sign area and showing the message ingame didn't work at all. So I've added the same thing into the original .lang file and suddenly it worked in my custom story.

To make sure, I've just copied the .lang file from the guy above and added a corresponding key but it won't work either. It'll just say "Picked Up".

So I'm wondering why it doesn't recognize my .lang file. I have only 1 other custom story in my custom_stories folder...
And I have already built one properly working custom story where I didn't have this problem...
Hope you guys can help me Smile


RE: .lang file not working?! - The chaser - 09-23-2013

If you post your .lang file like the other guy, I will love to help you in this matter Smile


RE: .lang file not working?! - Ainz - 09-23-2013

Alright I've modified it to what I really need:

Here's a Screenshot of the Area that is supposed to work but doesn't since the extra_english.lang file doesn't seem to work. (Note that the upper (not marked) Sign Area in the Screenshot works with the Code added to the original english.lang file of the main story).
[Image: 5jgK9Kd.jpg?1]


And here's the code itself, while the key description + name and the area won't show:

<LANGUAGE>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_key1">Private Study Key</Entry>
<Entry Name="ItemDesc_key1">Unlocks the door to the Private Study.</Entry>
</CATEGORY>

<CATEGORY Name="Signs">
<Entry Name="TestSign">This is for testing purpose</Entry>
</CATEGORY>

</LANGUAGE>


RE: .lang file not working?! - PutraenusAlivius - 09-23-2013

(09-23-2013, 04:06 PM)Ainz Wrote: Alright I've modified it to what I really need:

Here's a Screenshot of the Area that is supposed to work but doesn't since the extra_english.lang file doesn't seem to work.
[Image: 5jgK9Kd.jpg?1]
(http://imgur.com/5jgK9Kd)

And here's the code itself, while the key description + name and the area won't show:

<LANGUAGE>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_key1">Private Study Key</Entry>
<Entry Name="ItemDesc_key1">Unlocks the door to the Private Study.</Entry>
</CATEGORY>

<CATEGORY Name="Signs">
<Entry Name="TestSign">This is for testing purpose</Entry>
</CATEGORY>

</LANGUAGE>

I think you need the description too in order to work....


RE: .lang file not working?! - Ainz - 09-23-2013

If you are talking about this
"<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">My custom story, so far.</Entry>
</CATEGORY>"
then I don't think so. Well, even with it, it won't work. Sad


RE: .lang file not working?! - Your Computer - 09-23-2013

Does key1 at least work? If so, make sure there are no .map_cache files in your maps folder and try testing it in game again.