Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sounds, .snt and .ogg
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#1
Sounds, .snt and .ogg

I have made a .ogg, but I'm confused with the .snt. Looking up google on it wasn't very helpful for a sound format. So what do I do to save to a .snt file?

~Thanks~
(This post was last modified: 08-27-2011, 07:55 PM by Rapture.)
08-27-2011, 07:20 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Sounds, .snt and .ogg

Open one up in a text editor, replace needed parts, and save with another name.

Tutorials: From Noob to Pro
08-27-2011, 07:26 PM
Website Find
Kurton Offline
Senior Member

Posts: 533
Threads: 8
Joined: Oct 2010
Reputation: 16
#3
RE: Sounds, .snt and .ogg

A .snt file is just XML text used by the engine to do more specific things with the sound, like alter the volume, or if it loops. Here's an example, you can just copy and use it with whatever ogg file you have:

<SOUNDENTITY>
  <SOUNDS>
      <Main>
          <Sound File="sound_file" />
      </Main>
  </SOUNDS>
  <PROPERTIES Volume="1" MinDistance="1" MaxDistance="100" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="True" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>

(This post was last modified: 08-27-2011, 07:27 PM by Kurton.)
08-27-2011, 07:27 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#4
RE: Sounds, .snt and .ogg

Make sure to save that into your custom story folder EXACT SAME PATH as well Smile! Then others who play your custom story can also hear it Wink

The Interrogation
Chapter 1

My tutorials
08-27-2011, 07:36 PM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#5
RE: Sounds, .snt and .ogg

Grr... still can't find out whats wrong with it.

<SOUNDENTITY>
<SOUNDS>
  <Main>
   <Sound File="RabbitWhimpering.ogg" />
  </Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="1" MaxDistance="100" Random="1" Interval="0" FadeEnd="True" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="True" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>

I have it in my 7 Deadly Sins > sounds folder. I have a RabbitWhimpering.ogg that I know that works (audacity tested it, and exported it from), and a RabbitWhimpering.snt with the file text above.

I know my code is working, but it simply won't play it! I can find the sound file in the Level Editor and place it down, but it won't play the sound... Sad

What else am I missing?

08-27-2011, 07:49 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#6
RE: Sounds, .snt and .ogg

remove .ogg ^^, it wil lread without that too Smile

Here is example of mine what worked:

<SOUNDENTITY>
  <SOUNDS>
      <Main>
          <Sound File="firebucket" />
      </Main>
  </SOUNDS>
  <PROPERTIES Volume="1.00" MinDistance="1" MaxDistance="18" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.5" Priority="0" />
</SOUNDENTITY>

PS: Maybe it is that volume must be 1.00 (with comma)?

The Interrogation
Chapter 1

My tutorials
(This post was last modified: 08-27-2011, 07:51 PM by Elven.)
08-27-2011, 07:51 PM
Find
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#7
RE: Sounds, .snt and .ogg

I would change the priority of the sound there.

Priority="1" instead of Priority="0"

Insanity. Static.
08-27-2011, 07:53 PM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#8
RE: Sounds, .snt and .ogg

(08-27-2011, 07:51 PM)Elven Wrote: remove .ogg ^^, it wil lread without that too Smile

Here is example of mine what worked:

<SOUNDENTITY>
  <SOUNDS>
      <Main>
          <Sound File="firebucket" />
      </Main>
  </SOUNDS>
  <PROPERTIES Volume="1.00" MinDistance="1" MaxDistance="18" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.5" Priority="0" />
</SOUNDENTITY>

PS: Maybe it is that volume must be 1.00 (with comma)?
Thank you! Big Grin The .ogg was messing it up.

P.S. - Sorry about that Kurton, you gave me the right code. I just added some useless stuff to screw it up, thanks.

(This post was last modified: 08-27-2011, 07:56 PM by Rapture.)
08-27-2011, 07:55 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#9
RE: Sounds, .snt and .ogg

Hey, we all do mistakes Smile! As long it helped you once out, it shouldn't happen twice Wink

The Interrogation
Chapter 1

My tutorials
08-27-2011, 08:44 PM
Find




Users browsing this thread: 1 Guest(s)