Applying Custom music to menu and game/

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

Moderators: Frustikus, simX, Aus-RED-5

Frustikus
D2X-XL Team
D2X-XL Team
Posts: 778
Joined: Mon Oct 22, 2007 3:06 pm
Location: Germany

Postby Frustikus » Tue Apr 29, 2008 6:56 am

nyte wrote:
Alter-Fox wrote:Whenever I enable SDL_mixer, the sound effects are turned off. The ogg music works fine, but does anyone know how I could turn the sound effects back on?


Do you have the high-res sound effects enabled? Make sure -hires_sound=0 in the dx2.ini. If -hires_sound= 1 or 2 it will replace all sound effects with what valid files it finds (or doesn't find) in the sounds1 or sounds2 directories and you won't hear any of the normal sounds that don't have a hi-res replacement. Let me know though if -hires_sound=0, -sdl_mixer=1, and you're still getting none of the normal sounds because I feel like I ran into that issue myself at one point but I really can't remember.


Hires_sound 0 ? :wink:
That´s wrong. You won´t hear any new fx-sounds in the game.

How to download and enable hires-sound ?

1. Visit http://www.descent2.de
2. In the SIDEMENU choose DOWNLOADS
3. Scroll down to the hires-sound package and download it.
4. Extract the file into your descent directory. Consider that you use the pathinformation. After that you will have two extra folders in your main directory (sounds1 and sounds2).

5. Open your d2x.ini.
6. Edit the line -sound22k to -sound44k.
7. Enable the SDL_Mixer: -sdl_mixer 1
8. enable the hires-sound: -hires_sound 2.
9. Close your d2x.ini and of course save your changes.

10. Enjoy the better sound.

So try these settings. I think your music will be played and you will hear better FX-sound, of course.
Intel Q9550 (E0) @ 3420 MHz and standard voltage with Sonic Tower Rev.2, Geforce GTX 260 (896 MB), Asus P5Q Deluxe, 6 GB GSkill DDR2-1066, 2x500 GB Seagate @ Raid 0, Soundblaster XFi, Sharkoon Rebel12 Case, Teufel Concept Magnum 5:1, Samsung 2494 SW , Genius Navigator 535, Logitech Wingman FF, Windows 7 Ultimate 64 bit
User avatar
Alter-Fox
Posts: 1132
Joined: Mon Mar 31, 2008 7:29 pm
Location: some other reality

Postby Alter-Fox » Tue Apr 29, 2008 3:36 pm

I've got it working, thanks! I'll try the hires sounds later. I don't have a lot of space on my computer.

Kaiserwolf, you have to set "-sdl_mixer 1" in d2x.ini. I ran into the same problem, but doing that got it working.
User avatar
Kaizerwolf
Posts: 390
Joined: Tue Dec 25, 2007 4:37 pm

Postby Kaizerwolf » Tue Apr 29, 2008 8:52 pm

I did all that you said I should. But the music is still wrong, the new sounds have crackles, and i cant get a custom bacjround to work! :(
User avatar
Zhane
Posts: 66
Joined: Fri Oct 26, 2007 9:33 am
Location: In your mind
Contact:

Postby Zhane » Tue Apr 29, 2008 11:30 pm

Kaizerwolf wrote:I did all that you said I should. But the music is still wrong, the new sounds have crackles, and i cant get a custom bacjround to work! :(


Custom BG pics need to be in the data folder for D2X-XL to read it.

As for the crackling sound I would suggest either changing -hires_sounds to 0
in the ini file, or to change -hires_sounds to 2 & change -sound to 44k.
Windows XP 2002 SP2 Ver.
Pentium 4 CPU
2.53 GHz
504MB RAM
Intel 82845G/GL/GE/PE/GV Graphics Controller
Frustikus
D2X-XL Team
D2X-XL Team
Posts: 778
Joined: Mon Oct 22, 2007 3:06 pm
Location: Germany

Postby Frustikus » Wed Apr 30, 2008 12:05 am

Kaizerwolf wrote:I did all that you said I should. But the music is still wrong, the new sounds have crackles, and i cant get a custom bacjround to work! :(


Crackles are normal but depend not on the hires-samples themselves. This problem will be solved if we have the new modified sounds as replacement of the original ones. It is a well known "bug". If you use custom music the game resamples everything to 33000 Hz. That is the reason for crackling sounds. Diedel wrote something about this "bug" already.
Intel Q9550 (E0) @ 3420 MHz and standard voltage with Sonic Tower Rev.2, Geforce GTX 260 (896 MB), Asus P5Q Deluxe, 6 GB GSkill DDR2-1066, 2x500 GB Seagate @ Raid 0, Soundblaster XFi, Sharkoon Rebel12 Case, Teufel Concept Magnum 5:1, Samsung 2494 SW , Genius Navigator 535, Logitech Wingman FF, Windows 7 Ultimate 64 bit
User avatar
Kaizerwolf
Posts: 390
Joined: Tue Dec 25, 2007 4:37 pm

Postby Kaizerwolf » Wed Apr 30, 2008 1:32 am

Zhane wrote:
Kaizerwolf wrote:I did all that you said I should. But the music is still wrong, the new sounds have crackles, and i cant get a custom bacjround to work! :(


Custom BG pics need to be in the data folder for D2X-XL to read it.

As for the crackling sound I would suggest either changing -hires_sounds to 0
in the ini file, or to change -hires_sounds to 2 & change -sound to 44k.


Erm...put the picture in the Data folder, still nothing.

Ok, no more crackles, but what about the music porblem? I've done every combo of symbols and locations I can possibly think of, a phail each time. :|
nyte
Posts: 17
Joined: Thu Apr 24, 2008 9:59 pm

Postby nyte » Wed Apr 30, 2008 2:11 am

Frustikus wrote:Hires_sound 0 ? :wink:
That´s wrong. You won´t hear any new fx-sounds in the game.


Hehe, was going on the assumption he hadn't installed extra sounds and trying to keep things simple to start out with.

I knew you were working on new hires sound samples but I didn't know there was already a full pack to download. I don't know how I missed it. I just played with the hires replacements (along with I believe some newer "test" samples of a few of the sounds you had posted in another thread) and it's fantastic. I'll give you better feedback soon... right now I only noticed one sound that seemed to be missing when grabbing a keycard and the only terribly noticeable clicking/crackling was during the briefing when the text is being typed to the screen. Other than that, the missile sounds are awesome, the vulcan/gauss are great, and I've never heard quad super-lasers sound nearly as sweet!

Back to the actual subject though...

@Kaizer:

I just tested using an ogg file (I had converted from mp3 as well) for intro and briefing and it worked fine sitting in the descent directory itself with the d2x.ini options -sdl_mixer=1 and hires_sound=0. The only reason I suggest trying the latter part is to keep things simple and try one thing at a time. Also, I think there's an error in the line for custom background in the ini you posted.... but just disable that for the time being and let's see if we can get your music playing. If I understand correctly, it's still not playing the song during the intro? If you want to give it it a shot, you can make sure the two settings are as I mentioned in the ini, move the ogg file to the game's directory itself, change the introsong line to just read -introsong dancer.ogg. If it still doesn't play when loading you can look in your game dir and post the d2x.log here. It should have lines in it regarding the failure of the song that could help out.

Sorry if this is completely redundant as others have already provided good advice, just trying to streamline the troubleshooting proccess. :)

Cheers Jeff!
Frustikus
D2X-XL Team
D2X-XL Team
Posts: 778
Joined: Mon Oct 22, 2007 3:06 pm
Location: Germany

Previews shown in a german thread

Postby Frustikus » Wed Apr 30, 2008 7:33 am

Hi nyte,

thx for your feedback. ;-) Perhaps you would like to be a tester of upcoming new sounds ?

If you like new custom sounds, take a look at this:

http://rapidshare.com/files/104068651/w ... n.avi.html

http://rapidshare.com/files/104158265/P ... k.avi.html

http://rapidshare.com/files/104157989/S ... r.avi.html

Unfortunately the sound for the vulcan in the video will never come to the game... I will explain it later. The other sounds are very early previews of upcoming sounds.
Intel Q9550 (E0) @ 3420 MHz and standard voltage with Sonic Tower Rev.2, Geforce GTX 260 (896 MB), Asus P5Q Deluxe, 6 GB GSkill DDR2-1066, 2x500 GB Seagate @ Raid 0, Soundblaster XFi, Sharkoon Rebel12 Case, Teufel Concept Magnum 5:1, Samsung 2494 SW , Genius Navigator 535, Logitech Wingman FF, Windows 7 Ultimate 64 bit
nyte
Posts: 17
Joined: Thu Apr 24, 2008 9:59 pm

Re: Previews shown in a german thread

Postby nyte » Wed Apr 30, 2008 6:03 pm

Frustikus wrote:Hi nyte,

thx for your feedback. ;-) Perhaps you would like to be a tester of upcoming new sounds ?


Definitely would love to help out! I wanted to give some feedback without hijacking this thread, so check out the rest of my response under your "new pyro, new sounds" thread. :)
User avatar
Kaizerwolf
Posts: 390
Joined: Tue Dec 25, 2007 4:37 pm

Postby Kaizerwolf » Wed Apr 30, 2008 8:51 pm

Wow. Thanks for the help Nyte, I'll try that :)


Edit. Nope, that didn't wprk. I'm posting the d2x.log here now.

D2X-XL 1.12.82
Loading text resources
Loading main hog file
found hogP file 'd2x.hog'
found hogP file 'd2x-xl.hog'
found hogP file 'extra.hog'
found hogP file 'descent.hog'
Reading configuration file
Initializing graphics
initializing SDL
initializing internal texture list
allocating screen buffer
initializing OpenGL window
setting OpenGL attributes
setting SDL_GL_RED_SIZE to 8 succeeded
setting SDL_GL_GREEN_SIZE to 8 succeeded
setting SDL_GL_BLUE_SIZE to 8 succeeded
setting SDL_GL_ALPHA_SIZE to 8 succeeded
setting SDL_GL_BUFFER_SIZE to 32 succeeded
setting SDL_GL_STENCIL_SIZE to 8 succeeded
setting SDL_GL_ACCUM_RED_SIZE to 5 succeeded
setting SDL_GL_ACCUM_GREEN_SIZE to 5 succeeded
setting SDL_GL_ACCUM_BLUE_SIZE to 5 succeeded
setting SDL_GL_ACCUM_ALPHA_SIZE to 5 succeeded
setting SDL_GL_DOUBLEBUFFER to 1 succeeded
setting SDL video mode (640x480x32, windowed)
SDL suggests 32 bits/pixel
initializing OpenGL view port
initializing OpenGL screen mode
initializing OpenGL extensions
Shaders are available
Rendering to texture is available
initializing shader programs
initializing lightmap shader programs
initializing texture merging shader programs
building texturing shader programs
initializing lighting shader programs
building lighting shader programs
initializing vertex lighting shader programs
initializing glare shader programs
building corona blending shader program
initializing gray scale shader programs
building grayscale shader programs
Initializing render buffers
SDL suggests 32 bits/pixel
Loading default palette
Initializing game fonts
Setting screen mode
Showing loading screen
Creating default tracker list
Loading ban list
Initializing control types
Initializing keyboard
Initializing joystick
Initializing movies
SDL suggests 32 bits/pixel
found movie lib 'intro-h.mvl'
found movie lib 'other-h.mvl'
found movie lib 'robots-h.mvl'
found movie lib 'd2x-h.mvl'
Initializing game data
Initializing hash tables
Initializing sound data (254 sounds)
Initializing bitmap index (2620 indices)
Initializing placeholder bitmap
Loading game data
Loading main ham file
Loading 910 texture indices
Loading 254 sound indices
Loading 107 animation clips
Loading 105 animation descriptions
Loading 51 tWall animations
Loading 66 robot descriptions
Loading 1145 robot joint descriptions
Loading 62 weapon descriptions
Loading 48 powerup descriptions
Loading 166 tPolyModel descriptions
Loading poly model data
Loading 100 cockpit gauges
Loading 600 tObject bitmap indices
Loading tPlayer ship description
Loading 6 cockpit bitmaps
Loading 7 reactor descriptions
Loading bitmap index translation table
Looking for Descent 1 data files
Loading Descent 1 data
Loading 800 texture indices
Loading 800 texture descriptions
Initializing 250 sounds
Loading 0 animation clips
Loading 0 animation descriptions
Loading 26 tWall animations
Loading 24 robot descriptions
Acquiring model data size of 78 polymodels
Loading sound data
Initializing sound data
Loading sound file
Loading sound data (183 sounds)
Loading sound data
Initializing endlevel data
Initializing sound
Loading hoard data
Initializing texture merge buffer
Initializing game data
Objects ...
Special effects...
AI system...
exploding walls...
particle systems...
loading background bitmap...
Enabling TrackIR support
Showing title screens
DigiPlayMidiSong (descent.hmp)
SDL_mixer playing descent.hmp
Loading hires models
Loading player profile
SDL suggests 32 bits/pixel
Invoking main menu
initializing OpenGL window
Destroying cameras
setting OpenGL attributes
setting SDL_GL_RED_SIZE to 8 succeeded
setting SDL_GL_GREEN_SIZE to 8 succeeded
setting SDL_GL_BLUE_SIZE to 8 succeeded
setting SDL_GL_ALPHA_SIZE to 8 succeeded
setting SDL_GL_BUFFER_SIZE to 32 succeeded
setting SDL_GL_STENCIL_SIZE to 8 succeeded
setting SDL_GL_ACCUM_RED_SIZE to 5 succeeded
setting SDL_GL_ACCUM_GREEN_SIZE to 5 succeeded
setting SDL_GL_ACCUM_BLUE_SIZE to 5 succeeded
setting SDL_GL_ACCUM_ALPHA_SIZE to 5 succeeded
setting SDL_GL_DOUBLEBUFFER to 1 succeeded
setting SDL video mode (800x600x32, windowed)
SDL suggests 32 bits/pixel
initializing OpenGL view port
initializing OpenGL screen mode
Destroying cameras
unloading polygon model data
initializing shader programs
initializing lightmap shader programs
initializing texture merging shader programs
building texturing shader programs
initializing lighting shader programs
building lighting shader programs
initializing vertex lighting shader programs
initializing glare shader programs
building corona blending shader program
initializing gray scale shader programs
building grayscale shader programs
creating spheres
closing IPX socket
launching main menu
shutting down graphics subsystem
Destroying cameras
unloading addon sounds
unloading extra bitmaps
unloading extra poly models
unloading render buffers
unloading string pool
unloading string pool
initializing string pool
unloading level messages
unloading hires animations
freeing sound buffers
unloading custom sounds
unloading hoard data
unloading auxiliary poly model data
unloading polygon model data
unloading hires models
unloading tracker list
unloading lightmap data
unloading particle data
unloading shield sphere data
unloading HUD icons
unloading extra texture data
unloading shield data
unloading palettes
unloading gauge data
restoring effect bitmaps
unloading background bitmap
unloading custom background data
shutting down merged textures cache
unloading endlevel data
unloading textures
unloading sounds
unloading poly models
unloading movies
unloading game fonts
unloading game texts
unloading program arguments
unloading program arguments
nyte
Posts: 17
Joined: Thu Apr 24, 2008 9:59 pm

Postby nyte » Tue May 06, 2008 7:17 pm

:( I don't even see mention of the custom music file in the log. It just loads the default hmp and doesn't seem to try to load anything else. I'm fried and stumped at the moment... anyone else have a clue that might help?

Return to “D2X-XL Help”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest