iLucian
Junior Member
Posts: 22
Threads: 8
Joined: Jun 2013
Reputation:
0
|
.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 |
|
Daemian
Posting Freak
Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation:
49
|
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 |
|
The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
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)
Aculy iz dolan.
|
|
07-03-2013, 07:53 PM |
|
iLucian
Junior Member
Posts: 22
Threads: 8
Joined: Jun 2013
Reputation:
0
|
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!
Wherever there is Light, Darkness has already gotten there first.
|
|
07-03-2013, 08:18 PM |
|
Ainz
Junior Member
Posts: 9
Threads: 1
Joined: Sep 2012
Reputation:
0
|
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
|
|
09-22-2013, 08:33 PM |
|
The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
RE: .lang file not working?!
If you post your .lang file like the other guy, I will love to help you in this matter
THE OTHERWORLD (WIP)
Aculy iz dolan.
|
|
09-23-2013, 06:47 AM |
|
Ainz
Junior Member
Posts: 9
Threads: 1
Joined: Sep 2012
Reputation:
0
|
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).
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 |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
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.
(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 |
|
Ainz
Junior Member
Posts: 9
Threads: 1
Joined: Sep 2012
Reputation:
0
|
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.
(This post was last modified: 09-23-2013, 04:18 PM by Ainz.)
|
|
09-23-2013, 04:18 PM |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
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.
|
|
09-23-2013, 05:03 PM |
|
|