The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Can't get extra_english.lang to work
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#1
Can't get extra_english.lang to work

I've followed all the tutorials and searched topics all over the forum but none of the proposed solutions seem to work. I'm starting out trying to use the .lang file to give a message when you attempt to open a door, and to rename an item.

First off, my files are arranged like this (I have the Steam version):
custom_stories/
|- Kassel/
| |- maps/
| | |- castle.hps
| | |- castle.map
| |- extra_english.lang
In my .lang file, I put the following:

Spoiler below!
<LANGUAGE>

<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_StorageKey">A key to the storage room.</Entry>
<Entry Name="ItemName_StorageKey">Storage Key</Entry>
</CATEGORY>

<CATEGORY Name="Doors">
<Entry Name="castle_5">The latch is jammed.</Entry>
</CATEGORY>

</LANGUAGE>

And in my .hps file, I put the following:

Spoiler below!
void OnStart()
{
SetEntityPlayerInteractCallback("castle_5", "Message", true);
}

void Message(string &in asEntity)
{
SetMessage("Doors", "castle_5", 5.0f);
}

If I did everything correctly, when the player interacts with the door "castle_5," the script should bring up the message in the "Doors" category under "castle_5." And the key in question does have "StorageKey" for it's CutsomItemSubtypeName. Neither of them work properly.

03-06-2012, 12:02 AM
Find


Messages In This Thread
Can't get extra_english.lang to work - by Damascus - 03-06-2012, 12:02 AM



Users browsing this thread: 3 Guest(s)