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
Problem with Sounds
MR SPARTAN23 Offline
Junior Member

Posts: 23
Threads: 10
Joined: Feb 2013
Reputation: 0
#1
Problem with Sounds

Hi,
I'm working on a CS but I have a problem. How can I add a music that can be heard in the map? Thanks
02-27-2013, 02:27 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Problem with Sounds

Put this on your map's .hps file.
PHP Code: (Select All)
void OnEnter()
{
    
PlayMusic("MUSICNAME.ogg"true1.0f0.0f0false);

Change the MUSICNAME to whatever your music's name is, but don't remove the .ogg extension in the script.
1.0f is the volume.
EDIT: And this was supposed to be in the /Custom Stories, TC's & Mods - Development/Development Support/

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 02-27-2013, 02:47 PM by PutraenusAlivius.)
02-27-2013, 02:45 PM
Find
MR SPARTAN23 Offline
Junior Member

Posts: 23
Threads: 10
Joined: Feb 2013
Reputation: 0
#3
RE: Problem with Sounds

Thanks but is there a way to listen to all the sounds in Amnesia?
02-27-2013, 06:37 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#4
RE: Problem with Sounds

They're in the sounds folder. Inside your amnesia folder
02-27-2013, 08:57 PM
Find
MR SPARTAN23 Offline
Junior Member

Posts: 23
Threads: 10
Joined: Feb 2013
Reputation: 0
#5
RE: Problem with Sounds

I know where they are but how can I listen to them? I tried with Windows Media Player and VLC but that doesn't work.
02-27-2013, 09:10 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#6
RE: Problem with Sounds

I'm using vlc.. Make sure you can play .ogg files. There is an option you can do that.
02-27-2013, 09:17 PM
Find
MR SPARTAN23 Offline
Junior Member

Posts: 23
Threads: 10
Joined: Feb 2013
Reputation: 0
#7
RE: Problem with Sounds

Ok, thanks I will let you know tomorrow good night!
02-27-2013, 09:34 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#8
RE: Problem with Sounds

.snt are just text files. Open the .ogg if you want to know what sound is.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
02-27-2013, 09:54 PM
Find
MR SPARTAN23 Offline
Junior Member

Posts: 23
Threads: 10
Joined: Feb 2013
Reputation: 0
#9
RE: Problem with Sounds

Thanks it works!
02-28-2013, 06:45 PM
Find
MR SPARTAN23 Offline
Junior Member

Posts: 23
Threads: 10
Joined: Feb 2013
Reputation: 0
#10
RE: Problem with Sounds

But how can I use a music like in the original game that repeat itself?
03-01-2013, 06:48 PM
Find




Users browsing this thread: 1 Guest(s)