Frictional Games Forum (read-only)
[SCRIPT] Help with the music! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Help with the music! (/thread-14554.html)

Pages: 1 2 3


Help with the music! - mrscoomich - 04-06-2012

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?


RE: Help with the music! - Datguy5 - 04-06-2012

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



RE: Help with the music! - Zaari - 04-06-2012

(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/tutorials/script/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.


RE: Help with the music! - Xanthos - 04-07-2012

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


RE: Help with the music! - mrscoomich - 04-08-2012

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


RE: Help with the music! - Your Computer - 04-08-2012

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


RE: Help with the music! - mrscoomich - 04-08-2012

Yikes.. xD


Thanks. I'll try using a converter.

I feel pretty stupid.


RE: Help with the music! - mrscoomich - 04-10-2012

Alright, so I used a converter... However it's still the same problem, and it won't play


RE: Help with the music! - Xanthos - 04-10-2012

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


RE: Help with the music! - mrscoomich - 04-10-2012

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