Page 1 of 1

GZDoom music mapping

Posted: Thu May 01, 2008 8:55
by NightFright
I was wondering: Since quite some tracks in DOOM and DOOM II are used more than once, isn't there a way (like in Doomsday) to map a single OGG/MP3/whatever track to multiple maps?

In Doomsday, you can write a def where you can e.g. say that D_INTER should use "d_e2m3.ogg". This would prevent you from using the same file with a different name (in this case, "d_inter.ogg"). This could save dozens of megs if possible. Can it be done, and if so, how?

Posted: Thu May 01, 2008 9:03
by Enjay
In (G)Zdoom you'd do it via the mapinfo lump:

http://zdoom.org/wiki/MAPINFO

If you wanted to make sure you kept everything correct, and merely changed the music, you could extract the doom2 mapinfo from (G)Zdoom.pk3, modify it then load it when you run (G)Zdoom.

Posted: Thu May 01, 2008 9:25
by NightFright
OK. This won't probably help with D_INTER, however, since it's not a map and not listed in mapinfo files.

Posted: Thu May 01, 2008 12:08
by Dark Pulse
map MAP01 "Name Here"
levelnum 1
next MAP02
sky1 SKY1 0
cluster 1
par 30
sucktime 1
music D_INTER

map MAP02 "Another Name Here"
levelnum 2
next MAP03
sky1 SKY1 0
cluster 1
par 30
sucktime 1
music D_INTER

map MAP03 "Yet Another Name Here"
levelnum 3
next MAP04
sky1 SKY1 0
cluster 1
par 30
sucktime 1
music D_INTER

And so on and so on. Obviously if this is for Doom, Replace MAPxx with ExMy.

Posted: Thu May 01, 2008 12:45
by NightFright
Errr... I meant using D_INTER just when the intermission screen comes up, not as a replacement for any level music. My point is it's defined nowhere (similar to D_BUNNY btw), and I am looking for a way to map it to D_E2M3 without having to copy the same file with a different name.

Maybe there is something like

map INTER
music D_INTER

for the Doom I intermission screen?

In jDoom, it is solved with an entry in a .ded file:
Music { ID = "inter"; Lump = "D_INTER"; Ext = "music\d_e2m3.ogg"; }

Posted: Thu May 01, 2008 14:49
by Graf Zahl
Use the 'intermusic' option in MAPINFO.

Posted: Fri May 02, 2008 14:58
by NightFright
Well, since it won't work anyway (don't know why), I have now named all oggs as they should, including duplicate ones. Who cares about 50 MB more or less for a music pack? ;)