HLDJ not playing sound!

Help with using HLDJ
Post Reply
NerpAngel
Game DJ
Posts: 6
Joined: Tue Jan 26, 2010 10:33 pm

HLDJ not playing sound!

Post by NerpAngel »

I ran through the help sticky and it didn't solve my problem.
1) HLDJ does launch my game when I click the green arrow
2)HLDJ does load successfully when my game starts up. (My console window automatically is opened when I load L4D2 and it says "HLDJ Loaded Successfully" without and errors next to it)
3)After I load a song the console says:
Host_WriteConfiguration: Wrote cfg/hldj_cmd_b.cfg
Loaded : sample3
4)The voice_input.wav file IS in my game directory
5)and yes, my mic works just fine in the game

Every time I press my play button (F4) nothing is played.. just crickets...
I'm running Windows 7 64 bit and my game of course is L4D2.

Help!
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: HLDJ not playing sound!

Post by Renegade »

From your diags, everything seems to be in order. You're testing with the sample audio?
Once you've got a file loaded, try entering into console:

Code: Select all

voice_enable 1; voice_forcemicrecord 0; voice_inputfromfile 1; voice_loopback 1; +voicerecord
This emulates what your playaudio key does, do you hear anything now?

If not, ensure you are testing on your own server. Also if L4D2 has the same cvar as TF2 that allows/blocks voice input from file, make sure this is enabled (check the sticky for the exact cvar name in TF2 that controls this, if it's not present in L4D2 ignore this).
NerpAngel
Game DJ
Posts: 6
Joined: Tue Jan 26, 2010 10:33 pm

Re: HLDJ not playing sound!

Post by NerpAngel »

I tried to enter those commands into my console once I selected a song and still nothing... :(

I tried searching for that "cvar" thing you mentioned but I'm confused about that. What exactly do you mean enable it? Doesn't the command you gave me enable it? Or am I just confused :)

Also, I did notice something weird in my console when I started up my game, I'll paste everything in my console when I load the game from hldj:

Parent cvar in server.dll not allowed (spit_scaling_min_scale)
***VPK: FastFindFile Attempting to use full path with VPK file!
File: c:\program files (x86)\steam\steamapps\common\left 4 dead 2\left4dead2\addonlist.txt
Parent cvar in client.dll not allowed (steamworks_immediate_upload)
Parent cvar in client.dll not allowed (steamworks_stats_disable)
Parent cvar in client.dll not allowed (steamworks_show_uploads)
Game supporting (2) split screen players
maxplayers set to 18
Steam config directory: c:\program files (x86)\steam\steamapps\common\left 4 dead 2\platform\config
***VPK: FastFindFile Attempting to use full path with VPK file!
File: c:\program files (x86)\steam\steamapps\common\left 4 dead 2\left4dead2\addonlist.txt
Unknown command "chet_debug_idle"
Can't use cheat cvar rr_thenany_score_slop in multiplayer, unless the server has sv_cheats set to 1.
Unknown command "hldjsf"
Unknown command "voice_fadeouttime"
Host_WriteConfiguration: Wrote cfg/hldj_cmd_a.cfg

HLDJ successfully loaded!
Quick-Start Guide:
1 ) enter 'la' to display the audio list.
2 ) enter the number of the file to load.
3 ) press the F4 key to start/stop audio.

Basic Commands:
hldjn, hldjp, hldjr - loads the next/previous/random audio file.
hldjca, hldjcd - displays the current audio file/directory in console.
hldjsca, hldjstca - displays the current audio file in public/team chat.
hldjsq, hldjqa - stops HLDJ and quits the current game/quits both.

[enter 'hldj1' for more commands/help]
[enter 'hldj' to display this guide again]

NET_GetBindAddresses found 72.233.245.105: 'Intel(R) Wireless WiFi Link 4965AGN'
Opened Steam Socket NS_SERVER ( virtual port 27015 ) : listen socket handle( 5 )
Opened Steam Socket NS_CLIENT ( virtual port 27005 ) : listen socket handle( 65542 )
Network: IP 72.233.245.105, mode MP, dedicated No, ports 27015 SV / 27005 CL
BinkOpen( c:\program files (x86)\steam\steamapps\common\left 4 dead 2\left4dead2\media\l4d2_background03.bik )
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: HLDJ not playing sound!

Post by Renegade »

I didn't notice anything particularly weird, but I'm not certain what's 'normal' for L4D2. (although 'chet_debug_idle' is pretty amusing)
The cvar I refer to is "sv_allow_voice_from_file", if it exists in L4D2 make sure it's set it to "1" for your server.

The only other thing to try is re-installing the game.
NerpAngel
Game DJ
Posts: 6
Joined: Tue Jan 26, 2010 10:33 pm

Re: HLDJ not playing sound!

Post by NerpAngel »

So does that mean I can only use HLDJ on my own server since I would have to input that command? Or is it a personal client thing like voice_loopback1 or cl_showfps1?
NerpAngel
Game DJ
Posts: 6
Joined: Tue Jan 26, 2010 10:33 pm

Re: HLDJ not playing sound!

Post by NerpAngel »

Sorry for the double post, BUT I GOT IT TO WORK!!

Turns out you can't have "open microphone" on when you want to use HLDJ. In your audio settings you have to have it on "push to talk".

So now I'm back to being sort of bummed... because I would've liked to have my microphone on open chat the whole time WHILE using HLDJ instead of pushing a button to talk.
Think there is a way around this?
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: HLDJ not playing sound!

Post by Renegade »

This is an option in L4D2? If so, I'm not sure since I do not own it; if you can find the cvar that controls "open mic" you can toggle it off/on just before/after you start playback via modifying the hldj_custom_playaudio_on/off custom aliases (see Tips & Tricks forum for how to use custom aliases).
NerpAngel
Game DJ
Posts: 6
Joined: Tue Jan 26, 2010 10:33 pm

Re: HLDJ not playing sound!

Post by NerpAngel »

Below is a picture of an error I get now. Every time I press my "play" button my game just loops ingame sound and freezes of course, so I have to minimize and press ok thus causing my game to crash. What do you think would cause this error?

EDIT: Ok after testing multiple times I thought that the problem could have been file size but that's not the case. Some songs are being allowed to play and some aren't....
re-edit: Ok i just tested more clips and turns out hldj is getting super picky with certain sound clips.... I'll upload ones that work and ones that don't. Think you can look at them?

DO NOT WORK!!!!?? WHY!!
http://www.mediafire.com/file/juzjan0d0m2/cookie monster.wav -4.04mb
http://www.mediafire.com/file/j3yzjw1m0ih/dethklok.wav -738kb
http://www.mediafire.com/file/ynm2lymjn ... fucked.wav -248kb

WORK EVERY TIME!!!!
http://www.mediafire.com/file/by4iy4zdoqt/intro.wav -326kb
http://www.mediafire.com/file/mdkbetylzwz/pants on the ground.wav -2.19mb
Attachments

[The extension wav has been deactivated and can no longer be displayed.]

stupid error
stupid error
Last edited by NerpAngel on Fri Jan 29, 2010 2:47 am, edited 1 time in total.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: HLDJ not playing sound!

Post by Renegade »

If it crashes and seems random, I'd suspect the dual-core bug first (see sticky for guide), otherwise if you suspect the audio follow the conversion guide on Audacity and remember to remove any meta data before exporting. Unfortunately I cannot test the linked songs as I am currently experiencing connection problems.
Post Reply