Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
extra_english.lang megafail
Author Message
P44RTHURN4X Offline
Junior Member

Posts: 35
Joined: Apr 2012
Reputation: 0
Post: #1
extra_english.lang megafail
Hey to all,

I've tried so much times to give the lvldoors and keys and objects names, to set messages to an area in game, but, it don't work all the times i tried!
what's wrong!?
.hps:
...
SetMessage("Messages", "Dream", 1);
...

e_e.lang:
<LANGUAGE>

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">*long description*</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_doorkey_door_1_obj_obj">Bedroomkey</Entry>
<Entry Name="ItemDesc_doorkey_door_1_obj_obj">It's the key to the door to the bedroom.</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_note_run_obj_Name">...</Entry>
<Entry Name="Note_note_run_obj_Text">run, just RUN! RUUUUUUUUUN!!!!</Entry>
</CATEGORY>

<CATEGORY Name="Levels">
<Entry Name="door_1_obj">Come In!</Entry>
</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="Dream">Oh, it was just a dream - I hope!</Entry>
</CATEGORY>

</LANGUAGE>

please i need heeelp!
04-27-2012 08:06 PM
Find all posts by this user Quote this message in a reply
Xanthos Offline
Senior Member

Posts: 322
Joined: Mar 2012
Reputation: 8
Post: #2
RE: extra_english.lang megafail
I don't know if it's me, but whenever I put numbers in my names it doesn't load the text.
Try replacing the names of the thingys like
<Entry Name="ItemName_doorkey_door_one_obj_obj">Bedroomkey</Entry>
<Entry Name="ItemDesc_doorkey_door_one_obj_obj">It's the key to the door to the bedroom.</Entry>
</CATEGORY>

04-27-2012 08:20 PM
Find all posts by this user Quote this message in a reply
Cranky Old Man Offline
Posting Freak

Posts: 925
Joined: Apr 2012
Reputation: 37
Post: #3
RE: extra_english.lang megafail
Your lang file is perfectly normal.
1. Is it properly located in "custom_stories\YourCustomStory\"?
2. Is the omitted description too long, maybe? Does it contain forbidden characters like ", <, >, ', or & ?
3. Are the entry names too long, perhaps?

(Numbers in entry names work just fine.)

SetMessage has float parameters. Try changing "1" to "1.0f".

Noob scripting tutorial: From Noob to Pro

(This post was last modified: 04-27-2012 09:04 PM by Cranky Old Man.)
04-27-2012 09:01 PM
Find all posts by this user Quote this message in a reply
FragdaddyXXL Offline
Member

Posts: 133
Joined: Apr 2012
Reputation: 7
Post: #4
RE: extra_english.lang megafail
[Image: LevelDoor.png]

<CATEGORY Name="Levels">
<Entry Name="MainHub">Main Hub</Entry>
<Entry Name="Armory">Armory</Entry>
<Entry Name="Library">Library</Entry>
<Entry Name="Offices">Flooded Offices</Entry>
<Entry Name="Exit">Exit</Entry>
</CATEGORY>

It may be hard to read, but in the picture, the text that is highlighted reads: Armory.
This corresponds to the red "Armory" in the code above. Make sure it's set up like that.

Use gamefront. No pop-ups. :D
Dark Seclusion Here
C++/C# Programmer
04-29-2012 02:18 AM
Find all posts by this user Quote this message in a reply
palistov Offline
Posting Freak

Posts: 1,176
Joined: Mar 2011
Reputation: 56
Post: #5
RE: extra_english.lang megafail
You really should get a text editor that supports syntax highlighting. Notepad++ is what I use, but there are probably plenty of other great options out there. Then just configure the style to XML and it'll be much easier to detect syntax errors. All lang-file related errors are (from my experience) evasive syntax errors that are a pain to detect when all the text is a single color.

04-29-2012 02:26 AM
Find all posts by this user Quote this message in a reply
P44RTHURN4X Offline
Junior Member

Posts: 35
Joined: Apr 2012
Reputation: 0
Post: #6
RE: extra_english.lang megafail
(04-29-2012 02:18 AM)FragdaddyXXL Wrote:  [Image: LevelDoor.png]

<CATEGORY Name="Levels">
<Entry Name="MainHub">Main Hub</Entry>
<Entry Name="Armory">Armory</Entry>
<Entry Name="Library">Library</Entry>
<Entry Name="Offices">Flooded Offices</Entry>
<Entry Name="Exit">Exit</Entry>
</CATEGORY>

It may be hard to read, but in the picture, the text that is highlighted reads: Armory.
This corresponds to the red "Armory" in the code above. Make sure it's set up like that.
I did this but it also don't works, oh man all what i'm doin is wrong, i'm really the worst modder ever Sad((
04-29-2012 06:04 PM
Find all posts by this user Quote this message in a reply
FragdaddyXXL Offline
Member

Posts: 133
Joined: Apr 2012
Reputation: 7
Post: #7
RE: extra_english.lang megafail
<CATEGORY Name="Levels">

<Entry Name="door_1_obj">Come In!</Entry>

</CATEGORY>

So, door_1_obj is in the TextEntry parameter of your level door?

Things that mess me up sometimes is forgetting to hit save in Notepad++, or not hitting the Enter key after changing the value of an object's parameter in the level editor. Also, using the camelCaseConvention when naming things helps with readability, instead of using the underscore_between_words.

If you see your map's description when you select your CS from within Amnesia, then we at least know the file itself is located in the right spot and it's not accidentally set up like extra_english.lang.txt, which may happen by accident.

Use gamefront. No pop-ups. :D
Dark Seclusion Here
C++/C# Programmer
(This post was last modified: 04-30-2012 02:13 AM by FragdaddyXXL.)
04-30-2012 02:03 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)