Duke4.net Forums: How to setup custtom music for Duke3D expansions - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to setup custtom music for Duke3D expansions

#1

I am trying to setup custom music that autoloads with the expansions, but without success.
Is there a manual available on how to use def files with BuildGDX?

A description of my attempt:
- Created duke3d\dc.defx (I noticed that in the logs that this file was loaded)

Quote

include dcmusic.def

- Created duke3d\dcmusic.def

Quote

// Music definitions (OGG)
music { id "intro" file "dukedc/music/tbss.ogg" }
music { id "E3L1" file "dukedc/music/liberty.ogg" }
music { id "E3L2" file "dukedc/music/samurai.ogg" }
music { id "E3L3" file "dukedc/music/data.ogg" }
music { id "E3L4" file "dukedc/music/night.ogg" }
music { id "E3L5" file "dukedc/music/burning.ogg" }
music { id "E3L6" file "dukedc/music/sneak.ogg" }
music { id "E3L7" file "dukedc/music/sluice.ogg" }
music { id "E3L8" file "dukedc/music/wrecked.ogg" }
music { id "E3L9" file "dukedc/music/baddude.ogg" }
music { id "E3L10" file "dukedc/music/asecret.ogg" }
music { id "E3L11" file "dukedc/music/roads.ogg" }

- Placed the directory dukedc, containing the ogg files in the duke3d subfolder

The result of this attempt was :

Quote

Loading duke3d\dc.defx...
Warning: Failed including dcmusic.def on line duke3d\dc.defx:2
Start user episode: Duke it Out in D.C.


How should I create the def file and where do I need to place the subfolder with the ogg files to have custom music.
The files that I try to load are from http://jamespaddockm...-pack-released/
0

#2

Ok, heres how you do it

Make folder called "autoload", inside that folder make another folder called "music" and place .ogg files in that folder.

Now, paste this into text file and save it as "dukegdx.def" which you place into "autoload" folder.

Quote

Music { ID "233C.mid" file "music/233c.ogg" }
Music { ID "AHGEEZ.mid" file "music/ahgeez.ogg" }
Music { ID "ALFREDH.mid" file "music/alfredh.ogg" }
Music { ID "ALIENZ.mid" file "music/alienz.ogg" }
Music { ID "BAKEDGDS.mid" file "music/bakedgds.ogg" }
Music { ID "BRIEFING.mid" file "music/briefing.ogg" }
Music { ID "CF.mid" file "music/cf.ogg" }
Music { ID "DEPART.mid" file "music/depart.ogg" }
Music { ID "DETHTOLL.mid" file "music/dethtoll.ogg" }
Music { ID "DOOMSDAY.mid" file "music/doomsday.ogg" }
Music { ID "DUKE-O.mid" file "music/duke-o.ogg" }
Music { ID "FATCMDR.mid" file "music/fatcmdr.ogg" }
Music { ID "FLOGHORN.mid" file "music/floghorn.ogg" }
Music { ID "FUTURMIL.mid" file "music/futurmil.ogg" }
Music { ID "GLOOMY.mid" file "music/gloomy.ogg" }
Music { ID "GOTHAM.mid" file "music/gotham.ogg" }
Music { ID "GRABBAG.mid" file "music/grabbag.ogg" }
Music { ID "GUTWRNCH.mid" file "music/gutwrnch.ogg" }
Music { ID "INHIDING.mid" file "music/inhiding.ogg" }
Music { ID "INTENTS.mid" file "music/intents.ogg" }
Music { ID "INVADER.mid" file "music/invader.ogg" }
Music { ID "IRIEPRTY.mid" file "music/irieprty.ogg" }
Music { ID "JUNGVEIN.mid" file "music/jungvein.ogg" }
Music { ID "LAYERS.mid" file "music/layers.ogg" }
Music { ID "LEMCHILL.mid" file "music/lemchill.ogg" }
Music { ID "LORDOFLA.mid" file "music/lordofla.ogg" }
Music { ID "MISSIMP.mid" file "music/missimp.ogg" }
Music { ID "NAMES.mid" file "music/names.ogg" }
Music { ID "NW1.mid" file "music/nw1.ogg" }
Music { ID "NW2.mid" file "music/nw2.ogg" }
Music { ID "NW3.mid" file "music/nw3.ogg" }
Music { ID "NW4.mid" file "music/nw4.ogg" }
Music { ID "NW5.mid" file "music/nw5.ogg" }
Music { ID "NW6.mid" file "music/nw6.ogg" }
Music { ID "NW7.mid" file "music/nw7.ogg" }
Music { ID "PIZZED.mid" file "music/pizzed.ogg" }
Music { ID "POB.mid" file "music/pob.ogg" }
Music { ID "PREPD.mid" file "music/prepd.ogg" }
Music { ID "PRTYCRUZ.mid" file "music/prtycruz.ogg" }
Music { ID "RESTRICT.mid" file "music/restrict.ogg" }
Music { ID "ROBOCREP.mid" file "music/robocrep.ogg" }
Music { ID "SNAKE1.mid" file "music/snake1.ogg" }
Music { ID "SOL-MAN1.mid" file "music/sol-man1.ogg" }
Music { ID "SPOOK.mid" file "music/spook.ogg" }
Music { ID "STALAG.mid" file "music/stalag.ogg" }
Music { ID "STALKER.mid" file "music/stalker.ogg" }
Music { ID "STORM.mid" file "music/storm.ogg" }
Music { ID "STREETS.mid" file "music/streets.ogg" }
Music { ID "SUBWAY.mid" file "music/subway.ogg" }
Music { ID "THECALL.mid" file "music/thecall.ogg" }
Music { ID "URBAN.mid" file "music/urban.ogg" }
Music { ID "WAREHAUS.mid" file "music/warehaus.ogg" }
Music { ID "WATRWLD1.mid" file "music/watrwld1.ogg" }
Music { ID "WHOMP.mid" file "music/whomp.ogg" }
Music { ID "XPLASMA.mid" file "music/xplasma.ogg" }


Keep in mind that this definition is for using "Duke Nukem 3D, Caribbean Vacation & Nuclear Winter - SC-55 Music Packs by Brandon Blume, bu as far as you will have proper .ogg files names, all should be good.
Then, you can always make some changes in definition file to match actual .ogg files names.

This post has been edited by aaron03071991: 28 April 2020 - 04:36 PM

0

#3

Thanks
I was able to fix this by using the midi filenames and by adding duke3d/ before each path.
This way I am able to use custom music for Duke it Out in DC. (because it normally reuses standard duke nukem midi files).
0

#4

I chose SC-55 music to stay "classic", altho if i would find Duke music recorded from Yamaha XG hardware, i would have nerdgasm haha
0

User is online   NightFright 

  • The Truth is in here

#5

There is another way without using def files. You can use eduke.con and define music for any episode just like it's already done in user.con. In the end, it's pretty much the same thing, though.

This post has been edited by NightFright: 29 April 2020 - 04:28 AM

0

#6

View PostNightFright, on 29 April 2020 - 03:12 AM, said:

There is another way without using def files. You can use eduke.con and define music for any episode just like it's already done in user.con. In the end, it's pretty much the same thing, though.

BuildGDX will read "eduke.con"? Thats interesting.
0

User is offline   fgsfds 

#7

It won't.
Anyway, BGDX uses different approach for adding ogg music. Instead of setting tracks for each map, you have to replace original midis.
Because of that, custom music pack for DC isn't currently supported.

This post has been edited by fgsfds: 30 April 2020 - 08:04 AM

0

#8

My solution for the custom music pack for Duke it out in DC

- In the root i created a subfolder duke3d
- I created a file duke3d\dc.defx, this file is automatically loaded with the expansion

Quote

include duke3d\dukedc_ogg.def

- I created a dukedc_ogg.def file with following content

Quote

music { id "grabbag.mid" file "duke3d/dukedc/music/tbss.ogg" }
music { id "inhiding.mid" file "duke3d/dukedc/music/liberty.ogg" }
music { id "FATCMDR.mid" file "duke3d/dukedc/music/samurai.ogg" }
music { id "NAMES.MID" file "duke3d/dukedc/music/data.ogg" }
music { id "subway.mid" file "duke3d/dukedc/music/night.ogg" }
music { id "invader.mid" file "duke3d/dukedc/music/burning.ogg" }
music { id "gotham.mid" file "duke3d/dukedc/music/sneak.ogg" }
music { id "233c.mid" file "duke3d/dukedc/music/sluice.ogg" }
music { id "lordofla.mid" file "duke3d/dukedc/music/wrecked.ogg" }
music { id "urban.mid" file "duke3d/dukedc/music/baddude.ogg" }
music { id "spook.mid" file "duke3d/dukedc/music/asecret.ogg" }
music { id "whomp.mid" file "duke3d/dukedc/music/roads.ogg" }

- I placed the custom soundtrack files in the folder duke3d/dukedc/music

I replaced the midi's with oggs and I added duke3d/ before entry in the def files.
This solved my issues.
I created similar files for Nuclear Winter (nw.defx, dukenw_ogg.def) and Life's a Beach (vacation.defx, dukevacation_ogg.def)

Quote

Music { ID "NW1.MID" file "duke3d/dukenw/music/nw1.ogg" }
Music { ID "NW2.MID" file "duke3d/dukenw/music/nw2.ogg" }
Music { ID "NW3.MID" file "duke3d/dukenw/music/nw3.ogg" }
Music { ID "NW4.MID" file "duke3d/dukenw/music/nw4.ogg" }
Music { ID "NW5.MID" file "duke3d/dukenw/music/nw5.ogg" }
Music { ID "NW7.MID" file "duke3d/dukenw/music/nw7.ogg" }

Quote

Music { ID "GRABBAG.MID" file "duke3d/dukevacation/music/duke-o.ogg" }
Music { ID "BRIEFING.MID" file "duke3d/dukevacation/music/duke-o.ogg" }
Music { ID "DOOMSDAY.mid" file "duke3d/dukevacation/music/doomsday.ogg" }
Music { ID "DUKE-O.mid" file "duke3d/dukevacation/music/duke-o.ogg" }
Music { ID "IRIEPRTY.mid" file "duke3d/dukevacation/music/irieprty.ogg" }
Music { ID "JUNGVEIN.mid" file "duke3d/dukevacation/music/jungvein.ogg" }
Music { ID "PRTYCRUZ.mid" file "duke3d/dukevacation/music/prtycruz.ogg" }
Music { ID "SOL-MAN1.mid" file "duke3d/dukevacation/music/sol-man1.ogg" }

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options