Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.Lang File Help Need help with notes.
omini Offline
Junior Member

Posts: 9
Threads: 3
Joined: Jul 2012
Reputation: 0
#1
Need help with notes.

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>
07-21-2012, 06:08 PM
Find Reply
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Need help with notes.

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.

I rate it 3 memes.
07-21-2012, 06:34 PM
Find Reply
omini Offline
Junior Member

Posts: 9
Threads: 3
Joined: Jul 2012
Reputation: 0
#3
RE: Need help with notes.

(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.
07-21-2012, 06:42 PM
Find Reply




Users browsing this thread: 1 Guest(s)