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
.Lang File Help .lang file not working?!
iLucian Offline
Junior Member

Posts: 22
Threads: 8
Joined: Jun 2013
Reputation: 0
#1
.lang file not working?!

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>

Wherever there is Light, Darkness has already gotten there first.
07-03-2013, 07:35 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#2
RE: .lang file not working?!

</LANGUAGE> ?

and </CATEGORY> for every <CATEGORY>

(This post was last modified: 07-03-2013, 07:44 PM by Daemian.)
07-03-2013, 07:44 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: .lang file not working?!

(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.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
07-03-2013, 07:53 PM
Find
iLucian Offline
Junior Member

Posts: 22
Threads: 8
Joined: Jun 2013
Reputation: 0
#4
RE: .lang file not working?!

(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

Wherever there is Light, Darkness has already gotten there first.
07-03-2013, 08:18 PM
Find
Ainz Offline
Junior Member

Posts: 9
Threads: 1
Joined: Sep 2012
Reputation: 0
#5
RE: .lang file not working?!

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
09-22-2013, 08:33 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#6
RE: .lang file not working?!

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

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
09-23-2013, 06:47 AM
Find
Ainz Offline
Junior Member

Posts: 9
Threads: 1
Joined: Sep 2012
Reputation: 0
#7
RE: .lang file not working?!

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>
(This post was last modified: 09-23-2013, 04:07 PM by Ainz.)
09-23-2013, 04:06 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#8
RE: .lang file not working?!

(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....

"Veni, vidi, vici."
"I came, I saw, I conquered."
09-23-2013, 04:08 PM
Find
Ainz Offline
Junior Member

Posts: 9
Threads: 1
Joined: Sep 2012
Reputation: 0
#9
RE: .lang file not working?!

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
(This post was last modified: 09-23-2013, 04:18 PM by Ainz.)
09-23-2013, 04:18 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#10
RE: .lang file not working?!

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.

Tutorials: From Noob to Pro
09-23-2013, 05:03 PM
Website Find




Users browsing this thread: 1 Guest(s)