Battlezone Universe

Battlezone Universe => Battlezone 2 => Topic started by: player5 on March 28, 2009, 05:34:21 PM

Title: Game Music From CD in singleplayer
Post by: player5 on March 28, 2009, 05:34:21 PM
Hello all,

Just decided to replay BZ2 on my slightly newer PC (with 1.3Pb4). However, I get no music in my game pre-patch or after patch. No idea what is going on.

I have my CD in the drive, but no music. Music form CD is checked in options.

I've looked at topics, and this seems to be a very rare problem. What should I do?

What folder is the game music in on the CD? Perhaps I'll have to command prompt the sound somehow?

System:

p4 3.6
1gb 667 ddr2
7800gtx
NEC DVD-rw/CD-rw drive.

Thanks in advance.
Title: Re: Game Music From CD in singleplayer
Post by: sabrebattletank on March 28, 2009, 06:02:46 PM
Can you get other sound? From youtube or your music, for example?
Title: Re: Game Music From CD in singleplayer
Post by: Nielk1 on March 28, 2009, 06:07:40 PM
Is "Music From CD" turned on in the sound options?
Title: Re: Game Music From CD in singleplayer
Post by: sabrebattletank on March 28, 2009, 06:09:05 PM
Quote from: player5 on March 28, 2009, 05:34:21 PM
Music form CD is checked in options.

Yes.
Title: Re: Game Music From CD in singleplayer
Post by: AHadley on March 28, 2009, 07:34:42 PM
It may seem silly, but check the level of the Music volume slider in Options.

Or maybe clean the disk, that might help.
Title: Re: Game Music From CD in singleplayer
Post by: player5 on March 28, 2009, 08:26:17 PM
Checked all of the above.

Sound is there but no music.

Any way to install music from cd? Or force it to load by command, because it is not playing by itself? BTW--I can hear the menu music, but no music in-game.   

I've got windows xp pro sp3. No problems with drivers. Realtek HD audio drivers and 6.1 channel sound system. I find a similar problem with bz2 on my 280GTX system. Game has good fps and sound, but no music.

Last system I played the game on was a Pentium 4 1.4GHz system from 2001 with cd drive (non-writing).
Title: Re: Game Music From CD in singleplayer
Post by: Commando on March 28, 2009, 08:44:45 PM
If you rip the music off of your cd then convert them to .ogg, you can.  The changelog will tell you what to name those files.

- Added in support for playing the CD's audio tracks as ogg files
instead. To accomplish this, place files 'cdaudiotrack2.ogg'
.. 'cdaudiotrack11.ogg' under addon -- or any other place that BZ2 can
find files. If the 'Ingame Music From CD' audio option is set to 'On',
and the Music Volume slider is > 0, then it'll look for those ogg
files in preference to the CD (redbook audio) tracks. If you have a
system that's in any way recent, this should be preferable to using
the CD tracks, as there should be no pauses while the IDE drive takes
its sweet time seeking to a new track and killing your framerate.
Title: Re: Game Music From CD in singleplayer
Post by: bigbadbogie on March 28, 2009, 08:47:39 PM
Try putting in a random music CD while you play BZ2.

The game reads the music from the current disk in the CD drive, regardless of whether it is the BZ2 disk or not.

If it plays the music from another disk, then it could be the BZ2 CD at fault.

(Update)

Or you can do what commando said but that is a bit desperate.
Title: Re: Game Music From CD in singleplayer
Post by: sabrebattletank on March 28, 2009, 09:11:07 PM
You could even put different songs in your addon, renaming them appropriately.
Title: Re: Game Music From CD in singleplayer
Post by: Spawn on March 28, 2009, 09:13:15 PM
Just run winamp or something in the background.
Title: Re: Game Music From CD in singleplayer
Post by: Nielk1 on March 29, 2009, 01:56:22 AM
Do you ahve more than one disc drive?
Title: Re: Game Music From CD in singleplayer
Post by: player5 on March 30, 2009, 12:41:25 AM
Where are the audio files in the BZ2 disk? WM player doesn't come up. But I've got VLC, Zoomplayer, and irfanview installed will all sorts of exotic codecs. Never use WM player, nor updated it, but BZ2 is from 1999 so that shouldn't matter, right?

I think Commando's idea is the best if it improves framerate as a side effect. This is something introduced in the new patch I understand? 
Title: Re: Game Music From CD in singleplayer
Post by: Nielk1 on March 30, 2009, 12:50:23 AM
Its audio CD tracks. Go ahead and stick your disk in a CD player if you do not understand.
Title: Re: Game Music From CD in singleplayer
Post by: player5 on March 30, 2009, 01:13:19 AM
Working. Thanks.
Title: Re: Game Music From CD in singleplayer
Post by: Commando on March 30, 2009, 02:23:57 AM
It won't help your fps really, but it will eliminate the pausing that occurs when a song ends and the next one begins.  I believe that was the reason for adding this feature.
Title: Re: Game Music From CD in singleplayer
Post by: GSH on March 30, 2009, 02:32:01 AM
The pause between tracks was one major reason. The other was determining which of several CD drives the BZ2 CD is in to play music from. When BZ2 shipped, having only 1 CD/DVD drive was common. Now, multiple drives are common. It's easier to try opening some .ogg files and playing them.

-- GSH
Title: Re: Game Music From CD in singleplayer
Post by: sabrebattletank on March 31, 2009, 02:46:20 AM
Oh, I remember back in 1.3pb1 (or was it 2? 3? probably 1 or 2) when that feature was impllemented...

Sigh, O! The Good ol' days...
Title: Re: Game Music From CD in singleplayer
Post by: AHadley on April 01, 2009, 07:52:16 PM
With regards to the CD tracks as .ogg file thing, is there any way we can get the game to read more than 11 audio tracks and say play the music from BZ1, BZ2, TRO, Recoil and HL2 in the same engine, or will we have to use winamp or something in the background? Useful research for my mod :)
Title: Re: Game Music From CD in singleplayer
Post by: Nielk1 on April 01, 2009, 09:35:59 PM
The missions specifically call on track #s. Have you tried making an OGG numbered 99 and having a mission call track 99?
Title: Re: Game Music From CD in singleplayer
Post by: AHadley on April 02, 2009, 06:49:24 AM
No, I haven't, cause GoldWave is buggering about. Once I've fixed it, I'll see.
Title: Re: Game Music From CD in singleplayer
Post by: Nielk1 on April 02, 2009, 03:40:32 PM
I am curious if it works.
Title: Re: Game Music From CD in singleplayer
Post by: AHadley on April 02, 2009, 05:58:35 PM
Well, if it does work, you'll have lots more nice music to listen to in PF! :D
Title: Re: Game Music From CD in singleplayer
Post by: player5 on April 04, 2009, 08:18:23 PM
Also, I've remembered that I ripped tracks 2-11.

There is no cdaudiotrack1. Did I miss something? The cdaudio track 2 is the music for the first mission anyway, so seems alright. The 11th track is silent.

Are there supposed to be 10 tracks in all? 
Title: Re: Game Music From CD in singleplayer
Post by: VSMIT on April 04, 2009, 09:06:02 PM
Track 1 is a data track.  Hence you can't rip it.

VSMIT.
Title: Re: Game Music From CD in singleplayer
Post by: GSH on April 04, 2009, 10:06:35 PM
Sounds right. Track 1 is the data track on the CD-- the installer and the data it installs are in there. And, the last track is silent for some reason probably related to long discs and copy protection. Don't know/remember all the details, but that's how it was for me when I ripped my CDs to .ogg to test the system.

--  GSH
Title: Re: Game Music From CD in singleplayer
Post by: AHadley on April 05, 2009, 06:47:41 PM
Is it possible to modify a .TRN to call up three random .ogg tracks?
Title: Re: Game Music From CD in singleplayer
Post by: bigbadbogie on April 05, 2009, 09:33:04 PM
In what way 'random'?
Title: Re: Game Music From CD in singleplayer
Post by: AHadley on April 06, 2009, 08:26:26 AM
Can I call more than 3 tracks, and can I set the tracks I have called in a random order, as though shuffled?
Title: Re: Game Music From CD in singleplayer
Post by: TheJamsh on April 06, 2009, 07:23:25 PM
you can call as many tracks as you like i believe.

i was working on a .cfg media player until i found there were no variables for it... shame.
Title: Re: Game Music From CD in singleplayer
Post by: bigbadbogie on April 06, 2009, 09:21:42 PM
No, you can't shuffle tracks. They only play in the order predefined in the maps .trn file.
Title: Re: Game Music From CD in singleplayer
Post by: Nielk1 on April 06, 2009, 09:22:11 PM
Quote from: TheJamsh on April 06, 2009, 07:23:25 PM
you can call as many tracks as you like i believe.

i was working on a .cfg media player until i found there were no variables for it... shame.

Lemme see it some time, I want to see if the tracks have any DLL hooks first of course.