Frictional Games Forum (read-only)
[SOLVED]I'm getting completely confused over my .lang file - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: [SOLVED]I'm getting completely confused over my .lang file (/thread-6684.html)



[SOLVED]I'm getting completely confused over my .lang file - Zirg - 02-22-2011

*EDIT
I really don't know how I solved it, but after a pc restart everything was working fine again.. :S.


Ok, I'm using my .lang file as I'm supposed to.
I've created a custom key, using these 'commands'

Code:
<CATEGORY Name="Inventory">
      <Entry Name="ItemName_crematorykey">Crematory Key</Entry>
      <Entry Name="ItemDesc_crematorykey">Tag reads "Crematory"</Entry>
</CATEGORY>

Everything was working fine, when I picked up the key it was neatly showing me:
"Picked up Crematory Key"

Then I added a new key, making the code look like this:

Code:
<CATEGORY Name="Inventory">
      <Entry Name="ItemName_crematorykey">Crematory Key</Entry>
      <Entry Name="ItemDesc_crematorykey">Tag reads "Crematory"</Entry>
      <Entry Name="ItemName_fakekey">Rusty Key</Entry>
      <Entry Name="ItemDesc_fakekey">"It's bent and doesn't look very sturdy"</Entry>
</CATEGORY>

And all of a sudden my custom story description isn't showing up anymore in custom story selection, and when I pick up my crematory key, all of a sudden, all it says is:
"Picked up"

I'm going completely crazy here cause I can't find what I'm doing wrong.
The .lang file is in the correct folder and all.
It would be very nice if someone knew what happened here.

EDIT*
Just thought I'd show my complete .lang file:
Code:
<LANGUAGE>
    <RESOURCES>
    </RESOURCES>
<CATEGORY Name="CustomStoryMain">
        <Entry Name="Description">Cement?</Entry>
    </CATEGORY>
<CATEGORY Name="Inventory">
      <Entry Name="ItemName_crematorykey">Crematory Key</Entry>
      <Entry Name="ItemDesc_crematorykey">Tag reads "Crematory"</Entry>
      <Entry Name="ItemName_fakekey">Rusty Key</Entry>
      <Entry Name="ItemDesc_fakekey">"It's bent and doesn't look very sturdy"</Entry>
    </CATEGORY>
<CATEGORY Name="Journal">
        <Entry Name="Note_CH01L01_PrisonerEscapePlan_Name">Prisoner's Diary - Escape (1/2)</Entry>
        <Entry Name="Note_CH01L01_PrisonerEscapePlan_Text">blabladiarytext</Entry>
    </CATEGORY>
</LANGUAGE>



RE: I'm getting completely confused over my .lang file - lazylog - 02-22-2011

why doesn't your second "fake" key have a ">Tag reads" in its second line?


RE: I'm getting completely confused over my .lang file - Zirg - 02-22-2011

(02-22-2011, 12:42 PM)lazylog Wrote: why doesn't your second "fake" key have a ">Tag reads" in its second line?

That's of no importance to the overall .lang file, it's just a description of the key.
(storywise; it's not wearing a tag it's just bent and weak)


RE: I'm getting completely confused over my .lang file - Pandemoneus - 02-22-2011

Try without the quotation marks there: "It's bent and doesn't look very sturdy"