Help with custom music

Install & setup problems, application questions and other nasty things ;)

Moderators: Frustikus, simX, Aus-RED-5

User avatar
Sykes
Posts: 1120
Joined: Fri Jan 16, 2009 5:39 am
Location: Virginia, USA

Help with custom music

Postby Sykes » Fri Sep 04, 2009 2:24 pm

So, I've read through the installation guide 4 times now, double checked everything, and posted a ticket about it, but I'd like to see what you guys do to get this working. I have redbook music from an old Descent 1 version of the game in OGG format, and I want to use it in game. Problem is, I can't. I don't remember exactly what settings you need to use redbook audio. Can someone please tell me what you have to do? I want to make sure I'm doing it right before I classify it as a bug.

I have

;-nocdrom
-sdl_mixer 1
-introsong C:\Users\Matt\Desktop\Gaming\D2X-XL\Music\Descent_Soundtrack_01_Title.ogg
;-briefingsong
;-creditsong
-playlist C:\Users\Matt\Desktop\Gaming\D2X-XL\Music\playlist.txt

The playlist, I know for certain is correct. My problem is that I hear MIDI music when I know OGG music should be playing :[ I can't check the "Enable Redbook Audio" option in game because it just keeps telling me I have to insert the CD. I tried enabling -nocdrom, but the exact same thing happened. At one point, I was able to enable redbook audio, but when I did, then all the sound and music disappeared, and the only way to get it back was to restart the game.

Is there something obvious I'm missing?
Last edited by Sykes on Sat Sep 05, 2009 12:02 am, edited 1 time in total.
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Fri Sep 04, 2009 3:32 pm

The CD drive letter ...
User avatar
Sykes
Posts: 1120
Joined: Fri Jan 16, 2009 5:39 am
Location: Virginia, USA

Postby Sykes » Sat Sep 05, 2009 12:01 am

My CD drive letter is D:, and my virtual drive letter is F:, although I disabled my virtual drive. I'm getting the same problem even after I disabled the F: drive.
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Sat Sep 05, 2009 7:55 am

You need to set the CD drive letter in d2x.ini! :wallbash:
User avatar
Sykes
Posts: 1120
Joined: Fri Jan 16, 2009 5:39 am
Location: Virginia, USA

Postby Sykes » Sat Sep 05, 2009 8:08 am

I found the -cdrom switch in the Switch page, but I'm not sure what to do with it. I set it to C: (and C), but nothing changed. I still can't enable redbook audio. I'm attempting to play OGG's off of my hard drive, which I've done before, and I don't remember the CD drive causing problems. Either I'm doing something wrong, or something has changed since then. :P
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Sat Sep 05, 2009 8:38 am

Geez, you have setup VS2008, don't you? Why don't you debug it, and if you find a bug, report it?
Irontower
Posts: 150
Joined: Sat Apr 04, 2009 7:06 pm

Postby Irontower » Sat Sep 05, 2009 8:41 am

if your cd-rom is D then the ini must look like this -

;skip CD ROM check
;-nocdrom
-cdrom D

I test it and it works. Be sure the cd is in the drive. When you use an image on an virtual drive be sure that the audio tracks are in the iso image !
If the cd-image was wrong builded then you have only the data track and redbook doesn't work !
User avatar
Sykes
Posts: 1120
Joined: Fri Jan 16, 2009 5:39 am
Location: Virginia, USA

Postby Sykes » Sat Sep 05, 2009 1:46 pm

Irontower, you don't understand. I'm trying to get D2X-XL to play OGG files from a folder. Not from a CD, from my hard drive. Diedel, I don't have it set up anymore. I've formatted multiple times since then, and I honestly don't know how to use it well enough to detect bugs that don't crash the game.

If you can't help, that's fine. I'm just asking if there's anyone else that's trying to do the same thing I am, and got it to work. I know Pumo must know something; Kartsal Motivation has custom music, but even if I play Kartsal Motivation (which definitely has custom OGGs) all I hear is the Descent 2 level 1 MIDI.
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Sat Sep 05, 2009 3:43 pm

I think it was Red_5 who is using playlists to have custom music with his D2X-XL installation. Search for his thread.
Irontower
Posts: 150
Joined: Sat Apr 04, 2009 7:06 pm

Postby Irontower » Sat Sep 05, 2009 7:58 pm

uups, sorry, didn't read carefully...

Ok, testet with custom ogg files - works correct

in the ini file you must give the path to your files for briefing and credits and the paylist txt file
like here, change the path and file names to yours:

-introsong F:\Spiele\Descent2_114\ogg\Title.ogg
-briefingsong F:\Spiele\Descent2_114\ogg\Briefing.ogg
-creditsong F:\Spiele\Descent2_114\ogg\Credits.ogg
-playlist F:\Spiele\Descent2_114\ogg\Mylist.txt

for the Mylist text file open notepad and put the path to your ogg files into it like here and save it in the path you given in d2x.ini

F:\Spiele\Descent2_114\ogg\Level01.ogg
F:\Spiele\Descent2_114\ogg\Level02.ogg
F:\Spiele\Descent2_114\ogg\Level03.ogg
F:\Spiele\Descent2_114\ogg\Level04.ogg
F:\Spiele\Descent2_114\ogg\Level05.ogg
F:\Spiele\Descent2_114\ogg\Level06.ogg
F:\Spiele\Descent2_114\ogg\Level07.ogg
F:\Spiele\Descent2_114\ogg\Level08.ogg
F:\Spiele\Descent2_114\ogg\Level09.ogg
F:\Spiele\Descent2_114\ogg\Level10.ogg
F:\Spiele\Descent2_114\ogg\Level11.ogg
F:\Spiele\Descent2_114\ogg\Level12.ogg
F:\Spiele\Descent2_114\ogg\Level13.ogg
F:\Spiele\Descent2_114\ogg\Level14.ogg
F:\Spiele\Descent2_114\ogg\Level15.ogg
etc...
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Sat Sep 05, 2009 8:01 pm

Regard that you can also use relative paths in playlists.
User avatar
Red_5
Posts: 401
Joined: Tue Sep 25, 2007 11:34 pm
Location: Somewhere, America
Contact:

Postby Red_5 » Sat Sep 05, 2009 9:30 pm

What I'm using works like a charm, thank you Diedel :)

Create a folder called "music" in your main D2 directory

Copy all desired .oggs and the playlist text file into the new music folder. The names for mine are pretty basic to make things easy for a lazy butt like me. My files are title.ogg, briefing.ogg, and game01.ogg through game20.ogg.

My playlist.txt file, also in this music folder, looks like this (note that paths are not required in the playlist text file if it is in the same folder as the music files it is referencing):
game01.ogg
game13.ogg
game02.ogg
game10.ogg
game05.ogg
game08.ogg
game03.ogg
game06.ogg
game04.ogg
game12.ogg
game07.ogg
game09.ogg
game11.ogg
game14.ogg
game15.ogg
game16.ogg
game17.ogg
game18.ogg
game19.ogg
game20.ogg

My config file switches are exactly as follows:
-introsong .\music\title.ogg
-briefingsong .\music\briefing.ogg
-creditsong .\music\game09.ogg
-playlist .\music\playlist.txt

Works perfectly and I don't have to change the config file paths when I'm on a different computer :)

Hope this helps
Regards from Red_5

MacBook Pro 13"
2.4GHz dual-core Intel i5 processor
320GB 5400-rpm hard drive
Intel HD Graphics 3000 with 384MB DDR3 SDRAM
4GB 1333MHz DDR3 memory
7 Beautiful Hours of Battery
User avatar
Sykes
Posts: 1120
Joined: Fri Jan 16, 2009 5:39 am
Location: Virginia, USA

Postby Sykes » Sat Sep 05, 2009 10:35 pm

HAHA! I'M AN IDIOT!

I'm sorry guys. It's 64-bit! It doesn't work with OGGs! I started the 32-bit and and it works perfectly! I should have done that earlier, I'm sorry. I'll make a ticket about it.
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Sat Sep 05, 2009 11:20 pm

I have just reuploaded the .120 package (Intel programs are still older) and have created the 64 bit ogg and vorbis libs with different data layout. Maybe it works now.

Doesn't make you look like an idiot Sykes, but in the future always test against the standard version to check whether a problem is program version specific or of general nature.
Last edited by karx11erx on Sun Sep 06, 2009 8:12 am, edited 1 time in total.
User avatar
Sykes
Posts: 1120
Joined: Fri Jan 16, 2009 5:39 am
Location: Virginia, USA

Postby Sykes » Sat Sep 05, 2009 11:37 pm

karx11erx wrote:always test against the standard version


Noted. I'm still getting used to this multiple version deal ;)

Also, it still doesn't work for 64 bit.

Return to “D2X-XL Help”

Who is online

Users browsing this forum: No registered users and 3 guests