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
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Amnesia not recognizing .ogg file!

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

If this is a diary, then why is it NOTE_voice_Text?

"Veni, vidi, vici."
"I came, I saw, I conquered."
04-12-2014, 03:54 PM
Find
Wafflychicken Offline
Junior Member

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

(04-12-2014, 03:54 PM)SomethingRidiculous Wrote:
<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>

If this is a diary, then why is it NOTE_voice_Text?

no I forgot to mention it was a note oops sorry Confused
04-12-2014, 03:55 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: Amnesia not recognizing .ogg file!

(04-12-2014, 03:55 PM)Wafflychicken Wrote:
(04-12-2014, 03:54 PM)SomethingRidiculous Wrote:
<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>

If this is a diary, then why is it NOTE_voice_Text?

no I forgot to mention it was a note oops sorry Confused

You cannot make a note to have a narration (Well at least what I remembered), only DIARIES can have a narration. On Diaries, narration is necessary.

"Veni, vidi, vici."
"I came, I saw, I conquered."
04-12-2014, 03:57 PM
Find
Wafflychicken Offline
Junior Member

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

(04-12-2014, 03:55 PM)Wafflychicken Wrote:
(04-12-2014, 03:54 PM)SomethingRidiculous Wrote:
<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>

If this is a diary, then why is it NOTE_voice_Text?

no I forgot to mention it was a note oops sorry Confused

also when i click on the note with usenarration on the note just instantly goes to my journal so the .ogg file isnt being recognised you see

(04-12-2014, 03:57 PM)SomethingRidiculous Wrote:
(04-12-2014, 03:55 PM)Wafflychicken Wrote:
(04-12-2014, 03:54 PM)SomethingRidiculous Wrote:
<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>

If this is a diary, then why is it NOTE_voice_Text?

no I forgot to mention it was a note oops sorry Confused

You cannot make a note to have a narration (Well at least what I remembered), only DIARIES can have a narration. On Diaries, narration is necessary.

are you sure because he does it in the video?
(This post was last modified: 04-13-2014, 04:09 PM by Wafflychicken.)
04-12-2014, 03:58 PM
Find
WALP Offline
Posting Freak

Posts: 1,221
Threads: 34
Joined: Aug 2012
Reputation: 45
#6
RE: Amnesia not recognizing .ogg file!

Then use this video instead:
https://www.youtube.com/watch?v=qoK3C4OfcnI
04-12-2014, 04:15 PM
Find
Wafflychicken Offline
Junior Member

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

(04-12-2014, 04:15 PM)The Mug Wrote: Then use this video instead:
https://www.youtube.com/watch?v=qoK3C4OfcnI

just watched it and within the first 10 seconds he tells me that voice over's are only supported for diaries Dodgy ahh well i'll just change it now then thanks for all the help Big Grin

(04-12-2014, 04:15 PM)The Mug Wrote: Then use this video instead:
https://www.youtube.com/watch?v=qoK3C4OfcnI

btw would the category name in the .lang file still be journal? just wondering
(This post was last modified: 04-12-2014, 04:29 PM by Wafflychicken.)
04-12-2014, 04:18 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#8
RE: Amnesia not recognizing .ogg file!

Here is my example of one of my storýs:

<CATEGORY Name="Journal">

<Entry Name="Diary_IntroStartText_Name1">Note from Rose</Entry>
        <Entry Name="Diary_IntroStartText_Text1">[br][voice Rose_note_01.ogg][br]Hey Honey, I tried to call you, but you forgot your phone from home.
        [br]And i saw you also forgot to take your flashlight.
        [br]I brought them to the office this morning, before i had to go to the hosptial for another examination.
        [br]Please be careful and try to be at home before diner please.
        [br]I've also put some extra batteries in just in case.
        [br]The flashlight recharges but you never know when you might need a lightsource!
        [br][br]I love you.
        [br]Rose.</Entry>
</CATEGORY>

As you can see this is ONLY diary!
(This post was last modified: 04-12-2014, 04:45 PM by DnALANGE.)
04-12-2014, 04:42 PM
Find




Users browsing this thread: 2 Guest(s)