Frictional Games Forum (read-only)
Key name and description not working - 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: Key name and description not working (/thread-6857.html)

Pages: 1 2


Key name and description not working - PacManPrince - 03-12-2011

No matter what I do I can't seem to get the name and description to work for a particular key. Here are some screenshots:

http://i185.photobucket.com/albums/x118/redrims999/extra_english.png
http://i185.photobucket.com/albums/x118/redrims999/Ingamekeynodescription.png
http://i185.photobucket.com/albums/x118/redrims999/Ingamekeynoname.png
http://i185.photobucket.com/albums/x118/redrims999/LeveleditorCustomSubItemTypeName.png
http://i185.photobucket.com/albums/x118/redrims999/Leveleditorname.png


RE: Key name and description not working - Havi - 03-12-2011

Select the key in the level editor. Then click the entity tap. In the lower field, i think its something like "item name" or something, write AwesomeKey.

I thinks that should work Wink


RE: Key name and description not working - Acies - 03-12-2011

The field thou shallt modify is "CustomSubItemType" (= AwesomeKey), which is found in the level editor under the tab "entity" of a selected entity.


RE: Key name and description not working - Viperdream - 03-12-2011

I think you already did the CustomSubItemType, because otherwise a name from a key in the actual game should show up.

Anyway. I think this might be the problem.

This is my .lang file (It's not the complete one, but it doesn't matter)
You did this:
<RESOURCES>
<RESOURCES/>
I didn't, this might be the problem. Does your custom story description work? If not, then I think we might have found the problem.
Just remove the <RESCOURCES> tag. Leave the one with the slash alone though.
Spoiler below!
<LANGUAGE>
<RESOURCES />
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">A Polish Lord called Wiktor has gone mad. He will attempt to conquer the world with his powers! No one can stop him. Except for you.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_GuestKey_01">Guest Room Key</Entry>
<Entry Name="ItemDesc_GuestKey_01">A key for the Guest Room.</Entry>
<Entry Name="ItemName_hollow_needle_1">Pick Lock</Entry>
<Entry Name="ItemDesc_hollow_needle_1">Used for unlocking doors</Entry>
<Entry Name="ItemName_DoorKey">Private Room Key</Entry>
<Entry Name="ItemDesc_DoorKey">Key to open the door to the Private Room</Entry>
<Entry Name="ItemName_Artifact1">Strange Artifact °1</Entry>
<Entry Name="ItemDesc_Artifact1">A strange artifacts which is supposed to help me to destroy Wiktor.</Entry>
<Entry Name="ItemName_JailKey">Prison Key</Entry>
<Entry Name="ItemDesc_JailKey">A key to open doors in the Prisons.</Entry>
<Entry Name="ItemName_ForgedKey">Self Made Key</Entry>
<Entry Name="ItemDesc_ForgedKey">A Self Made key to open the door in the Storage.</Entry>
<Entry Name="ItemName_Head">Ben's Head</Entry>
<Entry Name="ItemDesc_Head">The first victim that fell after Wiktor went mad. This is supposed to help me in the battle against Wiktor.</Entry>
</CATEGORY>



RE: Key name and description not working - PacManPrince - 03-12-2011

(03-12-2011, 10:41 AM)Havi Wrote: Select the key in the level editor. Then click the entity tap. In the lower field, i think its something like "item name" or something, write AwesomeKey.

I thinks that should work Wink
(03-12-2011, 07:38 PM)Acies Wrote: The field thou shallt modify is "CustomSubItemType" (= AwesomeKey), which is found in the level editor under the tab "entity" of a selected entity.

Oops, sorry. I did do that but the link for it in the thread wasn't working. I updated it.

(03-12-2011, 08:56 PM)Viperdream Wrote: I think you already did the CustomSubItemType, because otherwise a name from a key in the actual game should show up.

Anyway. I think this might be the problem.

This is my .lang file (It's not the complete one, but it doesn't matter)
You did this:
<RESOURCES>
<RESOURCES/>
I didn't, this might be the problem. Does your custom story description work? If not, then I think we might have found the problem.
Just remove the <RESCOURCES> tag. Leave the one with the slash alone though.
Spoiler below!
<LANGUAGE>
<RESOURCES />
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">A Polish Lord called Wiktor has gone mad. He will attempt to conquer the world with his powers! No one can stop him. Except for you.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_GuestKey_01">Guest Room Key</Entry>
<Entry Name="ItemDesc_GuestKey_01">A key for the Guest Room.</Entry>
<Entry Name="ItemName_hollow_needle_1">Pick Lock</Entry>
<Entry Name="ItemDesc_hollow_needle_1">Used for unlocking doors</Entry>
<Entry Name="ItemName_DoorKey">Private Room Key</Entry>
<Entry Name="ItemDesc_DoorKey">Key to open the door to the Private Room</Entry>
<Entry Name="ItemName_Artifact1">Strange Artifact °1</Entry>
<Entry Name="ItemDesc_Artifact1">A strange artifacts which is supposed to help me to destroy Wiktor.</Entry>
<Entry Name="ItemName_JailKey">Prison Key</Entry>
<Entry Name="ItemDesc_JailKey">A key to open doors in the Prisons.</Entry>
<Entry Name="ItemName_ForgedKey">Self Made Key</Entry>
<Entry Name="ItemDesc_ForgedKey">A Self Made key to open the door in the Storage.</Entry>
<Entry Name="ItemName_Head">Ben's Head</Entry>
<Entry Name="ItemDesc_Head">The first victim that fell after Wiktor went mad. This is supposed to help me in the battle against Wiktor.</Entry>
</CATEGORY>

This didn't work either. In the tutorial I was watching (it is on the HPL wiki so it should work) he had the resources tag just like I did and it worked for him.

P.S. I was using this tutorial:
http://amnesia.treesoft.dk/tutorials/Tutorial1.wmv


RE: Key name and description not working - Pandemoneus - 03-12-2011

That resource tag is totally wrong.

Code:
<LANGUAGE>
    <RESOURCES>
    </RESOURCES>
    <CATEGORY Name="CustomStoryMain">
        <Entry Name="Description">Blah blah</Entry>
    </CATEGORY>
    <CATEGORY Name="Inventory">
        <Entry Name="ItemName_AwesomeKey">Awesone key</Entry>
        <Entry Name="ItemDesc_AwesomeKey">A truly awesome key</Entry>
    </CATEGORY>
</LANGUAGE>

[edit]
The problem you are probably facing is that you don't play your custom story via the main menu, but you directly load the level with the custom dev profile. In that case no item names, diaries, etc. work.


RE: Key name and description not working - PacManPrince - 03-13-2011

(03-12-2011, 11:37 PM)Pandemoneus Wrote: That resource tag is totally wrong.

Code:
<LANGUAGE>
    <RESOURCES>
    </RESOURCES>
    <CATEGORY Name="CustomStoryMain">
        <Entry Name="Description">Blah blah</Entry>
    </CATEGORY>
    <CATEGORY Name="Inventory">
        <Entry Name="ItemName_AwesomeKey">Awesone key</Entry>
        <Entry Name="ItemDesc_AwesomeKey">A truly awesome key</Entry>
    </CATEGORY>
</LANGUAGE>

[edit]
The problem you are probably facing is that you don't play your custom story via the main menu, but you directly load the level with the custom dev profile. In that case no item names, diaries, etc. work.


Well this worked. But, how did the guy in the tut make it work?


RE: Key name and description not working - Pandemoneus - 03-13-2011

Made what work?
If you are refering to the point I made in the edit, he had the map started via custom stories already.


RE: Key name and description not working - PacManPrince - 03-13-2011

(03-13-2011, 01:44 AM)Pandemoneus Wrote: Made what work?
If you are refering to the point I made in the edit, he had the map started via custom stories already.

Yeah he simply quick reloaded the map and it worked with names and all.


RE: Key name and description not working - Jakeorch - 03-16-2011

The same thing is happening to me.. I play from menu, but still no item name or description.
Code:
<LANGUAGE>
    <RESOURCES>
    </RESOURCES>
    <CATEGORY Name="CustomStoryMain">
        <Entry Name="Description">yadda yadda</Entry>
    </CATEGORY>
    <CATEGORY Name="Inventory">
        <Entry Name="ItemName_key1">Keyname heree</Entry>
        <Entry Name="ItemDesc_key1">Key Description here</Entry>
    </CATEGORY>
</LANGUAGE>