Page 1 of 1

adding music

Posted: Sun Jul 17, 2011 1:53 am
by NormS3
I was wondering if anyone could point me to how i can add some music to the game?

Thanks Norm

RE: adding music

Posted: Sun Jul 17, 2011 8:30 am
by wdolson
The sound files 1025 to 1034 are the music files played by the game.  They are just WAV files renamed with an sfx suffix.  The game engine can handle many sound formats including MP3.  Just rename the files to the above names and put them in the SOUNDS folder.  The game will pick them up and play them.

Bill

RE: adding music

Posted: Sun Jul 17, 2011 3:58 pm
by NormS3
Great many thanks! So I understand that there are limited number of slots and I won't be able to keep all the present music.
Thnaks for the help

RE: adding music

Posted: Sun Jul 17, 2011 6:37 pm
by wdolson
Yes, just those slots.

Bill

RE: adding music

Posted: Mon Jul 18, 2011 4:00 pm
by Lecivius
Question.
 
I understand the slot limitation.  Is there a file size limitation as well?

RE: adding music

Posted: Mon Jul 18, 2011 7:28 pm
by wdolson
There may be some eventual size limitation, but I never ran into it.  You could conceivably string together several MP3s.

The music playing code does play file number 1025, then randomize the rest, so if you wanted the same order, you could string together several music files into 1025.

Bill

RE: adding music

Posted: Tue Jul 26, 2011 4:00 pm
by m10bob
There is a limitation..I use sounds from Victory At Sea and the game has something like 8-10 song clips, stock, all similar in size. When you change them with a few larger files, the randomizer may prevent a couple of them from even playing..Seems it knows it is playing a song, and so long as it plays thru an area where we used to get a change in music, the randomizer just skips some files..
Experiment...I did this..a lot.....I love the stock songs, but one VAS song in particular will always be in my game.