extra_english.lang megafail - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: extra_english.lang megafail (/thread-15130.html) |
extra_english.lang megafail - P44RTHURN4X - 04-27-2012 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! RE: extra_english.lang megafail - Xanthos - 04-27-2012 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> RE: extra_english.lang megafail - Cranky Old Man - 04-27-2012 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". RE: extra_english.lang megafail - FragdaddyXXL - 04-29-2012 <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. RE: extra_english.lang megafail - palistov - 04-29-2012 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. RE: extra_english.lang megafail - P44RTHURN4X - 04-29-2012 (04-29-2012, 02:18 AM)FragdaddyXXL Wrote: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 (( RE: extra_english.lang megafail - FragdaddyXXL - 04-30-2012 Code: <CATEGORY Name="Levels"> 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. |