Applying Custom music to menu and game/

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

Moderators: Frustikus, simX, Aus-RED-5

User avatar
Kaizerwolf
Posts: 390
Joined: Tue Dec 25, 2007 4:37 pm

Applying Custom music to menu and game/

Postby Kaizerwolf » Sun Apr 27, 2008 11:08 pm

Ok ok. I read the bit about putting in custom menu music and game music, and followed the directions given, but it doesnt work. What does it mean by full path? Like C:/mydocuments/mymusic..etc etc?

Just please tell me the order in which the text should look. I have it set as this now.

;-introsong C:\Documents and Settings\Jeff\My Documents\My Music\119140_Rhythm_is_a_Dancer_Remix.mp3

Please tell me what needs to be where. Yes, my name is Jeff :D
yacoub
Posts: 71
Joined: Tue Apr 08, 2008 10:09 pm

Postby yacoub » Sun Apr 27, 2008 11:10 pm

you need to remove the ";" from that line for it to work. The ";" comments it out.
User avatar
Kaizerwolf
Posts: 390
Joined: Tue Dec 25, 2007 4:37 pm

Postby Kaizerwolf » Sun Apr 27, 2008 11:12 pm

That didn't work. It still plays the normal menu music.
Sirius
Posts: 1987
Joined: Tue Sep 25, 2007 10:29 pm
Location: Bellevue, WA
Contact:

Postby Sirius » Mon Apr 28, 2008 7:41 am

Could the spaces in the filename be causing problems?
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 » Mon Apr 28, 2008 7:45 am

mp3 probably doesn't work. The mp3 playback library is buggy.
User avatar
Kaizerwolf
Posts: 390
Joined: Tue Dec 25, 2007 4:37 pm

Postby Kaizerwolf » Mon Apr 28, 2008 11:40 am

i can probably convert the song into an OGG, i know how to do that. Let me try it.
User avatar
Zhane
Posts: 66
Joined: Fri Oct 26, 2007 9:33 am
Location: In your mind
Contact:

Postby Zhane » Mon Apr 28, 2008 4:23 pm

Converting the mp3 to ogg is the best (probably only) solution. :roll:

There are alot of programs to help in the conversion process. :D (some are even free to use :wink: )

Here is a instant link to the one I currently use. Its free & works great! :D

http://www.download.com/3001-2140_4-10820613.html?spi=b893012e1f43fc687d199b0e8666dd3b

If it doesn't work let me know. :wink:
Windows XP 2002 SP2 Ver.
Pentium 4 CPU
2.53 GHz
504MB RAM
Intel 82845G/GL/GE/PE/GV Graphics Controller
User avatar
Kaizerwolf
Posts: 390
Joined: Tue Dec 25, 2007 4:37 pm

Postby Kaizerwolf » Mon Apr 28, 2008 7:36 pm

Hey thanks Zhane! This helps me a lot :D

The way I had was a lot longer.
User avatar
Alter-Fox
Posts: 1132
Joined: Mon Mar 31, 2008 7:29 pm
Location: some other reality

Postby Alter-Fox » Mon Apr 28, 2008 7:40 pm

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?
User avatar
Kaizerwolf
Posts: 390
Joined: Tue Dec 25, 2007 4:37 pm

Postby Kaizerwolf » Mon Apr 28, 2008 7:45 pm

um....I got the file to be an ogg, but it still doesnt work. This is what is showing.

-introsong C:\Documents and Settings\Jeff\My Documents\My Music\119140_Rhythm_is_a_Dancer_Remix.ogg
nyte
Posts: 17
Joined: Thu Apr 24, 2008 9:59 pm

Postby nyte » Mon Apr 28, 2008 9:11 pm

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.



Kaizerwolf wrote:um....I got the file to be an ogg, but it still doesnt work. This is what is showing.

-introsong C:\Documents and Settings\Jeff\My Documents\My Music\119140_Rhythm_is_a_Dancer_Remix.ogg


Haven't tried the song stuff myself, but I'd try covering all the bases by copying the song to a short path with no spaces in it, renaming it to something simple, and keeping it all lowercase, ie. -introsong c:\d2\music\dancer.ogg. Also toggle the -sdl_mixer switch in the dx2.ini if it still doesn't work. I think it should be enabled (-sdl_mixer=1) but if it doesn't need to be then changing it to 0 would be preferable on windows at the moment I find.
User avatar
Zhane
Posts: 66
Joined: Fri Oct 26, 2007 9:33 am
Location: In your mind
Contact:

Postby Zhane » Mon Apr 28, 2008 9:46 pm

nyte wrote:
Kaizerwolf wrote:um....I got the file to be an ogg, but it still doesnt work. This is what is showing.

-introsong C:\Documents and Settings\Jeff\My Documents\My Music\119140_Rhythm_is_a_Dancer_Remix.ogg


Haven't tried the song stuff myself, but I'd try covering all the bases by copying the song to a short path with no spaces in it, renaming it to something simple, and keeping it all lowercase, ie. -introsong c:\d2\music\dancer.ogg. Also toggle the -sdl_mixer switch in the dx2.ini if it still doesn't work. I think it should be enabled (-sdl_mixer=1) but if it doesn't need to be then changing it to 0 would be preferable on windows at the moment I find.


Also, be sure to disable -nocdrom switch in the ini file. 8)
Windows XP 2002 SP2 Ver.

Pentium 4 CPU

2.53 GHz

504MB RAM

Intel 82845G/GL/GE/PE/GV Graphics Controller
User avatar
Kaizerwolf
Posts: 390
Joined: Tue Dec 25, 2007 4:37 pm

Postby Kaizerwolf » Mon Apr 28, 2008 11:00 pm

still nothing. This is what it looks like now.

-introsong C:\rytjm\dancer.ogg
User avatar
Aus-RED-5
Forum Moderator
Posts: 1490
Joined: Tue Sep 25, 2007 9:02 am
Location: Adelaide, South Australia
Contact:

Postby Aus-RED-5 » Tue Apr 29, 2008 12:32 am

Please post the contents of your d2x.ini here.

Thanks
----System Specs----
Case: Corsair Obsidian 650D Black
Motherboard: ASUS Sabertooth X58
CPU: Intel Core i7 960 3.20ghz
Heat Sink: Corsair H100 CPU Water Cooler
Memory: Corsair 6GB (3 x 2048mb) DDR3 1600 Dominator (PC12800 - TR3X6G1600C8D)
Video Card: ATi SAPPHIRE Radeon HD 7970 3GB GDDR5 OC Edition
Hard Drives: SSD Corsair Force Series 3 F120 120GB & WD5003ABYX Enterprise RE4 500GB
Media Player: LG BH10LS30 BluRay Burner
Power Supply: Corsair HX-850
OS: Windows 7 Pro 64Bit
Monitor: Benq XL2420T LED
User avatar
Kaizerwolf
Posts: 390
Joined: Tue Dec 25, 2007 4:37 pm

Postby Kaizerwolf » Tue Apr 29, 2008 2:15 am

like copy and paste everything? Allright then....

;gamenet launch parameters
;-ng_player default
;-ng_file missions/d2-2plyr.hog
;-ng_mission dog1.rl2
;-ng_level 1
;-ng_name GameNet
;-ng_join host
;-ng_connect udp
;-ng_type anarchy
;-ng_team 0

;limit the number of segments D2X-XL uses
;-max_segments 900
;launch d2x-xl in fullscreen mode
;-fullscreen
;keep mouse focus in game window
-grabmouse
;use sound sampled at 22 Khz
-sound22k
;skip CD ROM check
-nocdrom
;use trilinear filtering and mipmaps
-render_quality 3
;display multiplayer game messages from other players
-playermessages
;suppress duplicate HUD messages
-noredundancy
;don't playback cut scenes movies, but allow robot movies
-nomovies 1
;use bitmap reticle
-gl_reticle 0
;use short multiplayer game data packets (not recommended for high bandwidth connections)
;-shortpackets
;send 10 updates per second in multiplayer games
-pps 10
;add your default player name here to make D2X-XL load it at program start
-player Jeff
;use the following screen resolution at program start (will be overridden by player profile)
;-640x480
;set the following value to 0 to enable a backwards compatible camera rendering method
-render2texture 1
;set the following value to 0 to enable the original menu style
-menustyle 1
;set the following value to 1 to enable faster rendering of new style menus
-fastmenus 1
;set the following value to 1 to enable sound rendering via SDL_mixer (enables midi playback on non-Windows OS-s)
-sdl_mixer 0
;set the following value to 0 to enable original Descent 2 math data handling
-mathformat 2
;enable accelerated vector operation code (needs -mathformat 2, doesn't work on old CPUs)
-enable_sse 1
;set the following value to 0 to use Descent 2 sounds in Descent 1 levels
-use_d1sounds 1
specify the name of a custom menu background to use here
C:\Documents and Settings\Jeff\My Documents\My Pictures\gforce7.jpg
;specify the brightness of the custom menu background here (0.0 < brightness <= 1.0)
-altbg_brightness 0.75
;specify the transparency of the custom menu background here (0.0 < alpha <= 1.0; -1.0 to keep what's set in the image)
-altbg_alpha -1.0
;tell whether to convert the custom menu background to a grayscale image
-altbg_grayscale 0
;let OpenGL handle rendering of layered textures
-gl_alttexmerge 1
;enable usage of hires textures if present
-hires_textures 1
;precompute and load level OpenGL lighting info from disk
-cache_lights 0
;enable caching of resized hires textures on disk
-cache_textures 1
;enable usage of hires models if present
-hires_models 0
;set model texture size
-model_quality 2
;use 22 khz (1) or 44 khz (2), 16 bit hires sounds
-hires_sound 0
;increase render speed of smoke effects
-vertex_arrays 1
;enable use of lightmaps (not recommended)
-enable_lightmaps 0
;enable display of progress bars during longer lasting loading or computing operations
-progress_bars 1
;enable usage of shadow proof robot and ship models (recommended)
-fix_models 1
;use the shadow proof models for regular rendering, too
-alt_models 1
;Use shadows from low res models for hires models
-lores_shadows 1
;enable real time shadowing
-enable_shadows 1
;enable multithreading to speed up rendering
-multithreaded 1
;enable the German localization
;-altlanguage 1
;-text descent.tex.ger
specify user songs for intro, briefings, credits and levels
-introsong C:\rytjm\dancer.ogg
;-briefingsong
;-creditsong
;-playlist
;make d2x-xl print diagnostic messages to d2x.log
-printlog
;freeze robots
;-nobotai
;enable ship-independent camera movement (press Ctrl+Alt+S to toggle)
-enable_freecam 1
;enable the fast new (1) or slower legacy (0) render paths
-renderpath 1

Return to “D2X-XL Help”

Who is online

Users browsing this forum: No registered users and 1 guest