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 custom musics
str4wberrypanic Offline
Member

Posts: 241
Threads: 24
Joined: Jul 2012
Reputation: 8
#1
Problem with custom musics

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.

07-25-2012, 08:02 AM
Find
JMFStorm Offline
Member

Posts: 205
Threads: 8
Joined: Aug 2011
Reputation: 28
#2
RE: Problem with custom musics

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

07-25-2012, 08:13 AM
Find
str4wberrypanic Offline
Member

Posts: 241
Threads: 24
Joined: Jul 2012
Reputation: 8
#3
RE: Problem with custom musics

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
Find
JMFStorm Offline
Member

Posts: 205
Threads: 8
Joined: Aug 2011
Reputation: 28
#4
RE: Problem with custom musics

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

07-25-2012, 08:23 AM
Find
str4wberrypanic Offline
Member

Posts: 241
Threads: 24
Joined: Jul 2012
Reputation: 8
#5
RE: Problem with custom musics

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
Find
JMFStorm Offline
Member

Posts: 205
Threads: 8
Joined: Aug 2011
Reputation: 28
#6
RE: Problem with custom musics

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

07-25-2012, 08:59 AM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#7
RE: Problem with custom musics

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

07-25-2012, 12:53 PM
Find




Users browsing this thread: 3 Guest(s)