Help getting music to work

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Post Reply
Azraiel
Trained
Trained
Posts: 56
Joined: 05 Apr 2007, 14:09

Help getting music to work

Post by Azraiel »

I followed the instructions perfectly I think.

I made a folder in my warzone folder titled, music.

Inside I have music.wpl which looks like this inside.

[game]
path=.
shuffle=yes
gzt_rebirth.ogg
gzt-blackwinter.ogg
michaelb-battle_sequence.ogg
michaelb-fire_and_slaughter.ogg
tonaldiscrepancy-phlogiston.ogg
tonaldiscrepancy-sunrise_on_a_cloudy_day.mp3

[menu]
path=.
gzt_rebirth.ogg

All music files are inside the music folder as well. I don't understand why this isnt working right. Please help me.
User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: Help getting music to work

Post by lav_coyote25 »

Azraiel wrote: I followed the instructions perfectly I think.

I made a folder in my warzone folder titled, music.

Inside I have music.wpl which looks like this inside.

[game]
path=.
shuffle=yes
gzt_rebirth.ogg
gzt-blackwinter.ogg
michaelb-battle_sequence.ogg
michaelb-fire_and_slaughter.ogg
tonaldiscrepancy-phlogiston.ogg
tonaldiscrepancy-sunrise_on_a_cloudy_day.mp3

[menu]
path=.
gzt_rebirth.ogg

All music files are inside the music folder as well. I don't understand why this isnt working right. Please help me.

you followed this graphic??

here...
‎"to prepare for disaster is to invite it, to not prepare for disaster is a fools choice" -me (kim-lav_coyote25-metcalfe) - it used to be attributed to unknown - but adding the last bit , it now makes sense.
Azraiel
Trained
Trained
Posts: 56
Joined: 05 Apr 2007, 14:09

Re: Help getting music to work

Post by Azraiel »

yes, near as I can tell. I have gone over it like ten times now looking for error.

I am also running the latest version and have windows XP.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Help getting music to work

Post by DevUrandom »

Try starting with --debug all --debugfile warzone.log and post that file here.
Azraiel
Trained
Trained
Posts: 56
Joined: 05 Apr 2007, 14:09

Re: Help getting music to work

Post by Azraiel »

here you go
Attachments
warzone.log
(46.99 KiB) Downloaded 274 times
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Help getting music to work

Post by DevUrandom »

Directly after the sound initialisation (where it reports the OpenAL version) there should be a line similar too:
wz:          adding song music/Nexus.ogg
This line is even present when the file doesn't exist (eg. the path is wrong).

So what I think is that your music.wpl is in the wrong position.

Your Warzone's search paths are:
wz:        Search paths:
wz:            [C:\Documents and Settings\Jacob\My Documents\Warzone 2100\]
wz:            [C:\Program Files\Warzone 2100\mods/global\grim.wz]
wz:            [C:\Program Files\Warzone 2100\mp.wz]
wz:            [C:\Program Files\Warzone 2100\]
wz:            [C:\Program Files\Warzone 2100\warzone.wz]
Which means that you could put your playlist into one of the following paths:
C:\Documents and Settings\Jacob\My Documents\Warzone 2100\music\music.wpl
C:\Program Files\Warzone 2100\music\music.wpl
Make sure that the playlist's filename is exactly music\music.wpl. This is case __sensitive__ (i.e. mUSic\Music.WPL won't work).
Azraiel
Trained
Trained
Posts: 56
Joined: 05 Apr 2007, 14:09

Re: Help getting music to work

Post by Azraiel »

AH! Didn't know it is case sensitive. My music folder is spelt Music. Doh!
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Help getting music to work

Post by DevUrandom »

I assume it works now?

Generally all filenames in Warzone are case sensitive. There is some fallback code for Windows, but it doesn't work very well, is currently not used everywhere and will be removed at all in 2.1.
Azraiel
Trained
Trained
Posts: 56
Joined: 05 Apr 2007, 14:09

Re: Help getting music to work

Post by Azraiel »

no it still doesnt work.  :(
And I have it in both spots.
Last edited by DevUrandom on 07 Apr 2007, 16:23, edited 1 time in total.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Help getting music to work

Post by DevUrandom »

And still there is no sign of "adding song" in the debug output? That's really odd...
Azraiel
Trained
Trained
Posts: 56
Joined: 05 Apr 2007, 14:09

Re: Help getting music to work

Post by Azraiel »

here is new log
Attachments
warzone.log
(3.38 MiB) Downloaded 271 times
Azraiel
Trained
Trained
Posts: 56
Joined: 05 Apr 2007, 14:09

Re: Help getting music to work

Post by Azraiel »

OK, issue is resolved now. I fiddled with some stuff and it worked all of a sudden. Not sure why lol. Thanks for help, I really appreciate it.
Post Reply