Frictional Games Forum (read-only)
Problem with custom musics - 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: Problem with custom musics (/thread-17251.html)



Problem with custom musics - str4wberrypanic - 07-25-2012

Lattely i have tried to put some custom musics in my custom story. It worked the first time i tried putting it in my test map, but when i tried to put it in my REAL map, nothing has happened. I thought it could be caused by wrong scripts and copied the test map scripts, but it still doesn't work. And now even the test map music isn't working. I'm using SUPER for the OGG conversion.

Here are the scripts:

////////////////////////////
// Run when entering map
void OnEnter()
{

PlayMusic("TheHole.ogg", true, 1, 4, 0, true);

}

////////////////////////////
// Run when leaving map
void OnLeave()
{
StopMusic(0, 0);
}



The music is located at custom_storiesq/mycustomstory/music and i'm sure it is a .ogg file.

Sorry for any english mistake.


RE: Problem with custom musics - JMFStorm - 07-25-2012

:S
Try using: PlayMusic("TheHole.ogg", true, 1, 4, 0, false);
I don't know what "bool abResume" even does, but it solved my music problem once.

The problem also could be that the game doesn't recognize your .hps file at all. Try testing out some other scripts and see if ANY of them works.


RE: Problem with custom musics - str4wberrypanic - 07-25-2012

I think is something wrong with the files. All the scripts are working, so the game is recognizing the hps. When i use standard amnesia musics it works well.


RE: Problem with custom musics - JMFStorm - 07-25-2012

(07-25-2012, 08:21 AM)str4wberrypanic Wrote: I think is something wrong with the files. All the scripts are working, so the game is recognizing the hps. When i use standard amnesia musics it works well.

Make sure that "TheHole.ogg" has the actual music in it, not that it would be only just an empty sound file.
Make sure that it has the EXCACT same name.
Now I'm out of options.


RE: Problem with custom musics - str4wberrypanic - 07-25-2012

Do you know a good OGG converter?

( by the way, i have played Followeed by Death today. it's been a while since i've played a good CS like this one. Big Grin )


RE: Problem with custom musics - JMFStorm - 07-25-2012

(07-25-2012, 08:33 AM)str4wberrypanic Wrote: Do you know a good OGG converter?

( by the way, i have played Followeed by Death today. it's been a while since i've played a good CS like this one. Big Grin )
I use Sony Vegas. Works very well even though it's video editing software.


RE: Problem with custom musics - SilentStriker - 07-25-2012

I use Audacity it's free and is able to export to .ogg