Frictional Games Forum (read-only)

Full Version: .lang file not working?!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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> ?

and </CATEGORY> for every <CATEGORY>
(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.
(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
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
If you post your .lang file like the other guy, I will love to help you in this matter Smile
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>
(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....
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
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.
Pages: 1 2