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
Key name and description not working
PacManPrince Offline
Junior Member

Posts: 4
Threads: 1
Joined: Mar 2011
Reputation: 0
#1
Key name and description not working

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/...nglish.png
http://i185.photobucket.com/albums/x118/...iption.png
http://i185.photobucket.com/albums/x118/...noname.png
http://i185.photobucket.com/albums/x118/...peName.png
http://i185.photobucket.com/albums/x118/...orname.png
(This post was last modified: 03-12-2011, 11:16 PM by PacManPrince.)
03-12-2011, 04:26 AM
Find
Havi Offline
Junior Member

Posts: 5
Threads: 0
Joined: Mar 2011
Reputation: 0
#2
RE: Key name and description not working

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, 10:41 AM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#3
RE: Key name and description not working

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

[Image: mZiYnxe.png]


03-12-2011, 07:38 PM
Find
Viperdream Offline
Member

Posts: 124
Threads: 16
Joined: Jan 2011
Reputation: 0
#4
RE: Key name and description not working

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>

03-12-2011, 08:56 PM
Find
PacManPrince Offline
Junior Member

Posts: 4
Threads: 1
Joined: Mar 2011
Reputation: 0
#5
RE: Key name and description not working

(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
(This post was last modified: 03-12-2011, 11:27 PM by PacManPrince.)
03-12-2011, 11:27 PM
Find
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#6
RE: Key name and description not working

That resource tag is totally wrong.

<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.

(This post was last modified: 03-12-2011, 11:39 PM by Pandemoneus.)
03-12-2011, 11:37 PM
Find
PacManPrince Offline
Junior Member

Posts: 4
Threads: 1
Joined: Mar 2011
Reputation: 0
#7
RE: Key name and description not working

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

<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?
03-13-2011, 12:38 AM
Find
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#8
RE: Key name and description not working

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

(This post was last modified: 03-13-2011, 01:45 AM by Pandemoneus.)
03-13-2011, 01:44 AM
Find
PacManPrince Offline
Junior Member

Posts: 4
Threads: 1
Joined: Mar 2011
Reputation: 0
#9
RE: Key name and description not working

(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.
03-13-2011, 03:22 AM
Find
Jakeorch Offline
Junior Member

Posts: 15
Threads: 3
Joined: Mar 2011
Reputation: 0
#10
RE: Key name and description not working

The same thing is happening to me.. I play from menu, but still no item name or description.
<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>
03-16-2011, 03:18 AM
Find




Users browsing this thread: 1 Guest(s)