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
Script Help Help with the music!
mrscoomich Offline
Member

Posts: 55
Threads: 6
Joined: Mar 2012
Reputation: 0
#1
Help with the music!

Okay, so I have an mp3 that I thought would be a good background music while playing the custom story that I'm creating,

I took the .mp3 and converted it into .ogg and placed it in the folders with everything.

>
map(folder)
music(folder)
custom_story_settings.cfg
extra_english.lang

It was in the music folder , but when I put it in my scripts on my .hps, it doesn't play, unless the .ogg is from the original game.

Can anybody fix this?
04-06-2012, 06:40 PM
Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#2
RE: Help with the music!

You have to create a snt file
There is a tutorial on the wiki on how to create sounds: http://wiki.frictionalgames.com/hpl2/tut...cript/page

04-06-2012, 11:01 PM
Find
Zaari Offline
Member

Posts: 118
Threads: 0
Joined: Mar 2012
Reputation: 10
#3
RE: Help with the music!

(04-06-2012, 11:01 PM)Datguy5 Wrote: You have to create a snt file
There is a tutorial on the wiki on how to create sounds: http://wiki.frictionalgames.com/hpl2/tut...cript/page
Actually, you don't use .snt files for PlayMusic, only for sound functions.


@OP: Could you paste the script here? I'm wondering if maybe you are using the wrong function or something.

"Marzipan, darling."
04-06-2012, 11:57 PM
Find
Xanthos Offline
Senior Member

Posts: 318
Threads: 9
Joined: Mar 2012
Reputation: 8
#4
RE: Help with the music!

Perhaps the .ogg converter you have is broken.
What did you use?

04-07-2012, 12:12 AM
Find
mrscoomich Offline
Member

Posts: 55
Threads: 6
Joined: Mar 2012
Reputation: 0
#5
RE: Help with the music!

I didn't use a converter. I replaced 01_intro.mp3 into 01_intro.ogg and immediately the file became OGG

----


void OnStart()
{
PlayMusic("01_intro.ogg", false, 1, 1, 1, false);
}



^^ and this is actually it
(This post was last modified: 04-08-2012, 03:40 AM by mrscoomich.)
04-08-2012, 03:39 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: Help with the music!

(04-08-2012, 03:39 AM)mrscoomich Wrote: I didn't use a converter. I replaced 01_intro.mp3 into 01_intro.ogg and immediately the file became OGG

File extension does not reflect file content.

Tutorials: From Noob to Pro
(This post was last modified: 04-08-2012, 03:57 AM by Your Computer.)
04-08-2012, 03:56 AM
Website Find
mrscoomich Offline
Member

Posts: 55
Threads: 6
Joined: Mar 2012
Reputation: 0
#7
RE: Help with the music!

Yikes.. xD


Thanks. I'll try using a converter.

I feel pretty stupid.
(This post was last modified: 04-08-2012, 05:17 AM by mrscoomich.)
04-08-2012, 05:16 AM
Find
mrscoomich Offline
Member

Posts: 55
Threads: 6
Joined: Mar 2012
Reputation: 0
#8
RE: Help with the music!

Alright, so I used a converter... However it's still the same problem, and it won't play
04-10-2012, 10:50 PM
Find
Xanthos Offline
Senior Member

Posts: 318
Threads: 9
Joined: Mar 2012
Reputation: 8
#9
RE: Help with the music!

Can you tell me the name of the Audio Converter you used?

04-10-2012, 11:23 PM
Find
mrscoomich Offline
Member

Posts: 55
Threads: 6
Joined: Mar 2012
Reputation: 0
#10
RE: Help with the music!

(04-10-2012, 11:23 PM)Xanthos Wrote: Can you tell me the name of the Audio Converter you used?
http://media.io/
04-10-2012, 11:34 PM
Find




Users browsing this thread: 1 Guest(s)