Frictional Games Forum (read-only)
extra_english.lang problem - 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 problem (/thread-15908.html)



extra_english.lang problem - Larvidsson - 06-06-2012

Nothing in my extra_english.lang file works. It did before. I don't know what happened.
Im new at programming so having plenty of problems. Wink

Code:


<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">You wake up in your cellar. Your wife have druged you and locked you there. But she didn't know about the extra key...</Entry>
</CATEGORY>

<CATEGORY Name="Journal">

<Entry Name="Note_wifeone_Name">Letter From Wife</Entry>
<Entry Name="Note_wifeone_Text">
Hello love.[br]
I had to lock you in her. I can't say why.[br]
Just that I had to do it.[br]
I'm so sorry.[br][br]
//Stella</Entry>

<Entry Name="Note_diaryone_Name">Stella's Diary One</Entry>
<Entry Name="Note_diaryone_Text">
15th August 1871[br][br]
Today when I looked out the window I saw something. A pink light coming from the eagle statue. It felt like the eagle was talking to me. That he was telling me to go out and speek with him.[br]I tried to not worrie about it and went to bed.</Entry>

<Entry Name="Note_noteone_Name">Key Reciept</Entry>
<Entry Name="Note_noteone_text">
Cole's Keys[br][br]
Date: 28 June 1871[br]
Items:[br]
Iron Key copy 20 £[br][br]
Total 20£[br][br]
Buyer: Marcus Bayne</Entry>

</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_cellarkey">Cellar Key</Entry>
<Entry Name="ItemDesc_cellarkey">The extra key to the cellar.</Entry>
<Entry Name="ItemName_housekey">House Key</Entry>
<Entry Name="ItemDesc_housekey">Freedom!</Entry>
</CATEGORY>

<LANGUAGE>


RE: extra_english.lang problem - Datguy5 - 06-06-2012

That lang file is a mess o_O Can you post it here better?


RE: extra_english.lang problem - Larvidsson - 06-06-2012

(06-06-2012, 07:53 PM)Datguy5 Wrote: That lang file is a mess o_O Can you post it here better?
Having problems with the forum too! xD

(06-06-2012, 07:53 PM)Datguy5 Wrote: That lang file is a mess o_O Can you post it here better?
Updated the forum Wink

Someone that can help me?


RE: extra_english.lang problem - Larvidsson - 06-06-2012

Fixed the most. But I can still not make multiple notes to work. Any ideas how to get it to work?


RE: extra_english.lang problem - madifier - 06-07-2012

(06-06-2012, 07:45 PM)Larvidsson Wrote: Nothing in my extra_english.lang file works. It did before. I don't know what happened.
Im new at programming so having plenty of problems. Wink

Code:


<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">You wake up in your cellar. Your wife have druged you and locked you there. But she didn't know about the extra key...</Entry>
</CATEGORY>

<CATEGORY Name="Journal">

<Entry Name="Note_wifeone_Name">Letter From Wife</Entry>
<Entry Name="Note_wifeone_Text">
Hello love.[br]
I had to lock you in her. I can't say why.[br]
Just that I had to do it.[br]
I'm so sorry.[br][br]
//Stella</Entry>

<Entry Name="Note_diaryone_Name">Stella's Diary One</Entry>
<Entry Name="Note_diaryone_Text">
15th August 1871[br][br]
Today when I looked out the window I saw something. A pink light coming from the eagle statue. It felt like the eagle was talking to me. That he was telling me to go out and speek with him.[br]I tried to not worrie about it and went to bed.</Entry>

<Entry Name="Note_noteone_Name">Key Reciept</Entry>
<Entry Name="Note_noteone_text">
Cole's Keys[br][br]
Date: 28 June 1871[br]
Items:[br]
Iron Key copy 20 £[br][br]
Total 20£[br][br]
Buyer: Marcus Bayne</Entry>

</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_cellarkey">Cellar Key</Entry>
<Entry Name="ItemDesc_cellarkey">The extra key to the cellar.</Entry>
<Entry Name="ItemName_housekey">House Key</Entry>
<Entry Name="ItemDesc_housekey">Freedom!</Entry>
</CATEGORY>

<LANGUAGE>
About the only thing I see in your code is your last line. <LANGUAGE> you forgot the backslash. </LANGAUGE>

Something I noticed is your "[br]"s, I not aware of this being necessary for new lines, or rather I personally haven't needed them, but that might clean up your code a bit.

Don't forget that this may be a case sensitive issue, so you might have something capitalized in your code that isn't in the extra_english file. My recommendation for an entry name: "Note_noteone_tex" -> "Notes_note01_txt", but then again writing "note" twice may be redundant. Smile
best of luck


RE: extra_english.lang problem - SilentStriker - 06-07-2012

[br] is necessary for a new line if you don't want the text to be one long row of text.


RE: extra_english.lang problem - Larvidsson - 06-07-2012

Thanks a lot everybody! Smile
I'm still having problems with the notes.
But it's probably just something with the level... maybe.