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
[SOLVED] Newbie .lang file error
The Shanus Offline
Member

Posts: 134
Threads: 15
Joined: Jun 2012
Reputation: 3
#1
Question  [SOLVED] Newbie .lang file error

Hey guys, I'm trying to get my custom story's description to work, as well as text to appear on notes, descriptions of keys to appear and whatnot, but nothing I put in my .lang file seems to be working. The keys open the specified doors, so I dont believe my scripting is incorrect, but I just started, so Ill paste it here!

////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "room101key", "room101", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("room101", false, true);
PlaySoundAtEntity("", "unlock_door", "room101", 0, false);
RemoveItem("room101key");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}

and for the .lang file:

<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">The Shanus' first custom story. Enjoy!</Entry>
<CATEGORY Name="Journal">
<Entry Name="Note_TESTFINISH_Name">Congratulations!</Entry>
<Entry Name="Note_TESTFINISH_Text">Wahey! You finished my Amnesia custom story tester! Thanks for playing.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_keyroom1">Guarded Door Key</Entry>
<Entry Name="ItemDesc_keyroom1">Maybe this unlocks that door in the corner of the room...</Entry>
<Entry Name="ItemName_room101key">EnSuite Room Key</Entry>
<Entry Name="ItemDesc_room101key">Picked up EnSuite Room Key</Entry>
</CATEGORY>
</LANGUAGE>

I'm not running through the dev setup because I dont know how to do that. I've been running it through Amnesia.exe, then selecting my profile, the custom story, and whatnot, but it isn't showing anything on the notes, the key when I pick it up, or even my custom story's description. Any help would be greatly appreciated. Angel

[Image: theshanusyoutube.jpg]
(This post was last modified: 06-18-2012, 11:22 PM by The Shanus.)
06-18-2012, 08:17 PM
Find


Messages In This Thread
[SOLVED] Newbie .lang file error - by The Shanus - 06-18-2012, 08:17 PM
RE: Newbie .lang file error - by Statyk - 06-18-2012, 08:34 PM
RE: Newbie .lang file error - by The Shanus - 06-18-2012, 08:40 PM
RE: Newbie .lang file error - by Cruzore - 06-18-2012, 09:20 PM
RE: Newbie .lang file error - by The Shanus - 06-18-2012, 09:24 PM
RE: Newbie .lang file error - by Cruzore - 06-18-2012, 09:35 PM
RE: Newbie .lang file error - by The Shanus - 06-18-2012, 09:41 PM
RE: Newbie .lang file error - by Cruzore - 06-18-2012, 10:22 PM
RE: Newbie .lang file error - by The Shanus - 06-18-2012, 10:36 PM
RE: Newbie .lang file error - by Cruzore - 06-18-2012, 10:40 PM



Users browsing this thread: 1 Guest(s)