[Help] Garry's Mod Not Playing Music?

Help with using HLDJ
Post Reply
Mal1t1a
Game DJ
Posts: 3
Joined: Fri Nov 14, 2008 1:46 pm

[Help] Garry's Mod Not Playing Music?

Post by Mal1t1a »

Hello, I'm new to 'Half Life DJ', But I seem to understand how to setup everything, and after doing some reasearch, I can't seem to troubleshoot my problem. I've purchased 'Garry's Mod', and I want to play my wav files in-game, I used 'Wave Pad Sound Editor' to convert them to the sample rate of '11025' on 'Mono' Channel. Automatic Launch does not work, as I have seen in other posts(It's not that big a problem anyways). When I startup the game, everything in console appears fine, I type 'la' in-game, with voice enabled, and i select my song, and when i press my Hotkey, the voice icon appears on my screen, but no sound. When I have my mic plugged in, It turns my mic on. I alt-Tabbed out of game and found the Voice_input.wav file in my 'steamapps\<steamid>\garrysmod\' folder(Even though in HLDJ it says: 'steamapps\<steamid>\garrysmod\garrysmod\'. Yes it is a game, not a Sourcemod. Anything i can do? Thanks in Advanced.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: [Help] Garry's Mod Not Playing Music?

Post by Renegade »

Hi, and welcome.
Everything seems to be correct as you've described it; the intended location for voice_input.wav is, as you've noticed it, one level up from the game directory (for source games), so this is correct.
Can you verify two things:
1) You're not using HLDJ 1.4.7 (if so, please use 1.4.8)
2) Assuming voice_input.wav is in the folder you mentioned above, enter the following into console:

Code: Select all

"voice_inputfromfile 1; voice_forcemicrecord 0; voice_loopback 1; +voicerecord"
Does this start playing the audio file?

If neither of the above are successful, then you can try bypassing HLDJ altogether:
1) Start a game
2) in console, enter: "voice_recordtofile 1"
3) Activate your microphone for a short while to record some random mic data.
4) Alt-tab to the "<steamid>\garrysmod" directory and verify that the files "voice_micdata.wav" and "voice_decompressed.wav" are present
5) Copy one of your audio files to this same directory and rename it to "voice_input.wav"
6) re-enter the game and enter into console:
"voice_inputfromfile 1; voice_forcemicrecord 0; voice_loopback 1; +voicerecord"
Does this play the audio file?
(*note: reset all vars to original values once done)

This is the most basic, unadorned way of imitating what HLDJ does; this at the very least should work.
If not, let me know at what steps a problem occurred.
Mal1t1a
Game DJ
Posts: 3
Joined: Fri Nov 14, 2008 1:46 pm

Re: [Help] Garry's Mod Not Playing Music?

Post by Mal1t1a »

Ok, Yes, I am already using HLDJ 1.4.08.

voice_input.wav is in the folder, and i can't enter that code in all at once cause it won't let me? i have the "" wrapped around it, it just says that voice_inputfromfile is not a command, or something along those lines. So i manually entered each command one by one. I really don't know why it wouldn't let me put it into console, it looks exactly how it should be and should work.
The second method also failed, it did put the two .wav files into the folder, i copied one of my wav files to the directory and renamed it to: "voice_input.wav" i then go and enter that into console and it still does not play the file. So i really do not know what is wrong.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: [Help] Garry's Mod Not Playing Music?

Post by Renegade »

Entering each command separately is fine too (actually you don't need the quotes either, but it still should have worked). So neither attempt produced any music? When you entered "voice_inputfromfile 1" separately, did it still report an invalid command?

It could be something specific with your game's setup/config files or with Garry's Mod itself. Have you tried HLDJ with any other Source games? If so, and it works there, you might want to try deleting and re-installing Gmod.
Mal1t1a
Game DJ
Posts: 3
Joined: Fri Nov 14, 2008 1:46 pm

Re: [Help] Garry's Mod Not Playing Music?

Post by Mal1t1a »

Nope, when i entered each command seperatly, it worked fine. I will try it with a different source game, and edit this post after attempting.

[Edit]
Ok, I've tried it with CS:S and it still did not play my .wav files, BUT! I also found out, It my .wav files, apparently it did not convert them properly. It was on 32 bit, not 16. I need a good audio converter, i tried audiuacity, but it messes up my files, i convert to 11Mhz and it speeds it up really fast. Converts to the right bit though on the right channel. And the way i figured out, is i tried the sample.wav and the sample_src.wav files i found on this website. and they worked. now im gonna to see if it works on garrysmod
Weegee
Game DJ
Posts: 1
Joined: Thu Dec 04, 2008 3:40 pm

Re: [Help] Garry's Mod Not Playing Music?

Post by Weegee »

i am having a similar problem... my wavs are all converted correctly but im having a hard time getting hldj to load up garrysmod... i found the directory (c:.../myname/garrysmod/garrysmod) but whenever i load that up it loads up the sdk base and not garrys mod... ive tried the alternate sound source thing but to no avail... i have to go to work now but ill check back in a few hours
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: [Help] Garry's Mod Not Playing Music?

Post by Renegade »

A problem launching the game is separate from problems playing wavs, which do you have?
As the OP was savvy enough to find, you may bypass automatic game launching (Options->Launch Game) and start the game manually (which may be necessary for Garry's mod as it's "gameinfo.txt" (the file that HLDJ uses to launch the game) is incorrectly formatted).
*note: as this seems to have come up a couple times now, I've also added it to the Known Game Issues thread.
Post Reply