[SCRIPT] There are no texts! - 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: [SCRIPT] There are no texts! (/thread-29254.html) Pages:
1
2
|
RE: There are no texts! - RunHideMoFo - 01-11-2015 (01-10-2015, 03:53 PM)Shylia Wrote:(01-09-2015, 07:18 PM)Mudbill Wrote: If the lantern hint doesn't even appear, then yes, I would think perhaps your english.lang might be corrupt. That might be why the extra one isn't working, because I think it only adds to the main one. What'd youd do to fix it? Because I am having literally the EXACT same problem RE: There are no texts! - Romulator - 01-11-2015 Well, if the english.lang file is corrupt, then a reinstall would fix that, or a Steam Integrity Check if you have the game on Steam. If the lantern hint still appears, but your custom story texts do not, then you have a problem with your extra_english.lang file. If you wish, post your extra_english.lang contents here and I'll take a look! RE: There are no texts! - RunHideMoFo - 01-11-2015 (01-11-2015, 07:51 AM)Romulator Wrote: Well, if the english.lang file is corrupt, then a reinstall would fix that, or a Steam Integrity Check if you have the game on Steam. Here's the lang file: <LANGUAGE> <CATEGORY Name="CustomStoryMain" <Entry Name="Description">The old church had been abandoned for years. Now a darkness awakens within; a darkness that only Ethan Harris can overcome.</Entry> </CATEGORY> <CATEGORY Name="Messages"> <Entry Name ="msgname">The door will not budge. You cannot leave.</Entry> </CATEGORY> </LANGUAGE> Also here's the map hps file, just in case the problem is with that instead: void OnStart() { } void DoorLockedPlayer(string &in entity) { if(GetSwingDoorLocked("Entry_Door") == true) { SetMessage("Messages", "msgname", 0); } } void OnEnter() { } Thanks man! RE: There are no texts! - Romulator - 01-11-2015 Code: <LANGUAGE> Try that as a extra_english.lang and let me know if it works now. In simple, you should be able to see the description for your custom story before you load it up. If there is 'No Description', then I have missed something... o.0 Edit: You can also keep the blank line spaces between categories and entries, I just work without them. Feel free to put them back in ^^ RE: There are no texts! - RunHideMoFo - 01-11-2015 (01-11-2015, 01:17 PM)Romulator Wrote: It worked! Thanks, man! What exactly did you do differently, aside from the spaces? RE: There are no texts! - Romulator - 01-12-2015 If I remember, it was just the closing sign ( > ) on the CustomStoryMain. That was missing There was also a space between Name="msgname" which i removed. I don't know if that changes anything though! RE: There are no texts! - jmitchell - 02-22-2015 Hey there, Sorry to resurrect this thread, but I'm having the same problem. I've tried all the troubleshooting on this thread, and it's still not displaying in my level. extra_english.lang is in the proper folder location as well. Also, my custom_story_settings.cfg is reading the CustomStoryMain category in the main menu, which I find strange. extra_english.lang contents: Spoiler below!
Also, I'm getting these messages in hpl.log at runtime: WARNING: Could not find language file entry 'Note_ServantDiary_Name' WARNING: Could not find language file entry 'Note_ServantDiary_Text' WARNING: Could not find language file entry 'Note_ServantDiary_Name' WARNING: Could not find language file entry 'Note_ServantDiary_Name' WARNING: Could not find language file entry 'Note_OfficeNote_Name' WARNING: Could not find language file entry 'Note_OfficeNote_Text' WARNING: Could not find language file entry 'Note_OfficeNote_Name' WARNING: Could not find language file entry 'ItemName_CellarKey' They're only printed when I try to pick up the items in question. Thanks in advance! RE: There are no texts! - Mudbill - 02-22-2015 Are you sure you typed the name right in the level editor then? For a note, what you put in the NoteText box is the lang entry name WITHOUT the prefix and suffix. If your note is named Note_OfficeNote_Name in the lang file, you put OfficeNote in the level editor. Nothing more, nothing less. RE: There are no texts! - jmitchell - 02-22-2015 Double-, triple-, and quadruple-checked that; it should work. RE: There are no texts! - jmitchell - 02-23-2015 Alright, I found out that I had to launch my levels through the custom story option, as opposed to going straight to them in debug mode. Mea culpa! |