GZDoom music mapping

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
NightFright
Posts: 17
Joined: Thu May 01, 2008 8:44

GZDoom music mapping

Post 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?
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post 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.
NightFright
Posts: 17
Joined: Thu May 01, 2008 8:44

Post by NightFright »

OK. This won't probably help with D_INTER, however, since it's not a map and not listed in mapinfo files.
Dark Pulse
Posts: 18
Joined: Thu May 25, 2006 5:49
Location: Buffalo, NY
Contact:

Post 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.
NightFright
Posts: 17
Joined: Thu May 01, 2008 8:44

Post 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"; }
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Use the 'intermusic' option in MAPINFO.
NightFright
Posts: 17
Joined: Thu May 01, 2008 8:44

Post 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? ;)
Locked

Return to “GZDoom”