Frictional Games Forum (read-only)

Full Version: Problem with custom musics
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
: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.
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.
(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.
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 )
(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.
I use Audacity it's free and is able to export to .ogg