Frictional Games Forum (read-only)
[LANG] Need help with notes. - 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: [LANG] Need help with notes. (/thread-17167.html)



Need help with notes. - omini - 07-21-2012

I'm hopeless at scripting, so I want to ask you guys what I've done wrong with this script? When I pick up my note, it doesn't say anything. Take a look below and maybe you can help me out? I appriciate every comment.

<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Jacob receives a letter from his grandfather that said he was about to discover something revolutionary. Jacob is curious of course, but as he arrives he then notices that John Duncan(his grandfather) is not to be found. It's up to him and search for his grandfather and find out what he was about to discover!</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_officenote_Name">Tinderboxes</Entry>
<Entry Name="Note_officenote_Text">If there happen to be any burntout candles anywhere in the mansion, don't worry. I've myself hidden tinderboxes for just that ocasion.</Entry>
</CATEGORY>
<CATEGORY Name ="Inventory">
<Entry Name="ItemDesc_keynamehere">"Description here"</Entry>
<Entry Name="ItemName_keynamehere">name of key</Entry>

</CATEGORY>
</LANGUAGE>


RE: Need help with notes. - Adny - 07-21-2012

This looks like a level editor problem (I say that because I see nothing wrong with this). But before I get to that, get rid of the resources part; you won't be needing that.

As for the level editor. The notes name is "officenote", but I'm willing to bet money that the name there is the actual name of the item in the level editor? The name the lang file is looking for can be found by doing this:

-Open the level editor
-Select the note
-Click the "Entity" tab
-Look at the bottom where it says "NoteText", this is what the lang file needs to work
-Type in "officenote" in that box underneath

For keys (and other items), its a similar process, but instead of writing the name in NoteText, you write it in CustomSubItemTypeName.

If you've already done this, then the only other thing I can think of is that the lang file isn't saved properly as a language file, or its actually in the wrong folder (it should be in the same folder as the custom_story_settings.cfg, and not the map and hps files).

Hope that helped.


RE: Need help with notes. - omini - 07-21-2012

(07-21-2012, 06:34 PM)andyrockin123 Wrote: This looks like a level editor problem (I say that because I see nothing wrong with this). But before I get to that, get rid of the resources part; you won't be needing that.

As for the level editor. The notes name is "officenote", but I'm willing to bet money that the name there is the actual name of the item in the level editor? The name the lang file is looking for can be found by doing this:

-Open the level editor
-Select the note
-Click the "Entity" tab
-Look at the bottom where it says "NoteText", this is what the lang file needs to work
-Type in "officenote" in that box underneath

For keys (and other items), its a similar process, but instead of writing the name in NoteText, you write it in CustomSubItemTypeName.

If you've already done this, then the only other thing I can think of is that the lang file isn't saved properly as a language file, or its actually in the wrong folder (it should be in the same folder as the custom_story_settings.cfg, and not the map and hps files).

Hope that helped.
Thank you so much, it worked! The problem was I haven't written "officenote" in the NoteText.