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
Amnesia not recognizing .ogg file!=SOLVED!
Wafflychicken Offline
Junior Member

Posts: 13
Threads: 3
Joined: Apr 2014
Reputation: 1
#1
Amnesia not recognizing .ogg file!=SOLVED!

hey guys

so I have been folliwing Mudbill's youtube videos which I gotta say are pretty awesome!

But recently i've got myself into a pickle with adding narrated messages to my game. The problem is that I recorded a sound file with windows sound recorder and converted it to .ogg through the website he sent. the only problem is that when I click on the note to read it it just goes straight into my inventory without letting me read it, but I do know about the UseNarration tool on the level editor and i just dont know what to do. I saved the file as voice1.ogg and created a new folder called voices just like mudbill did, anyway if anyone could help me with this it would be much appreciated Tongue

here is my .lang file

<LANGUAGE>

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">
hello how are you?
</Entry>

</CATEGORY>

<CATEGORY Name="Messages">

<Entry Name="msgname">The door is locked</Entry>

</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_KeyDesc">A Key</Entry>
<Entry Name="ItemDesc_KeyDesc">It's for unlocking a door.</Entry>

</CATEGORY>

<CATEGORY Name="Journal">

<Entry Name="Note_voice_Name">Strange Letter</Entry>
<Entry Name="Note_voice_Text">[voice voice1.ogg] [br]Hello. [br][br][br] How are you on this fine day?</Entry>

</CATEGORY>

</LANGUAGE>

and here is my .hps file incase you need it

void OnStart()
{
SetLocalVarInt("DoorLocked", 1);
AddUseItemCallback("","key_1","Locked_Door", "UseKeyOnDoor", true);
SetEntityPlayerInteractCallback("Locked_Door", "DoorLockedPlayer", false);

}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
SetLocalVarInt("DoorLocked", 0);
}

void DoorLockedPlayer(string &in asEntity)
{
if(GetLocalVarInt("DoorLocked") == 1)
{
SetMessage("Messages", "msgname", 2);
}
}




void OnEnter()
{
}

void OnLeave()
{
}
(This post was last modified: 04-13-2014, 09:01 PM by Wafflychicken.)
04-12-2014, 03:45 PM
Find


Messages In This Thread
Amnesia not recognizing .ogg file!=SOLVED! - by Wafflychicken - 04-12-2014, 03:45 PM
RE: Amnesia not recognizing .ogg file! - by WALP - 04-12-2014, 04:15 PM



Users browsing this thread: 1 Guest(s)