Frictional Games Forum (read-only)

Full Version: extra_english.lang megafail
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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>
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".
[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.



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


Code:
<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.