I can't play music, not even samples.

Help with using HLDJ
Post Reply
Geremy
Game DJ
Posts: 8
Joined: Sat Mar 05, 2011 7:56 am

I can't play music, not even samples.

Post by Geremy »

Hi, i'm trying to make HLDJ work on my L4D1. I read the manual and the forum sticky, I've done everthing right and it seems to work fine, but when i play hldj_playaudio (F11) music doesn't start.
It started automatically to play the song i chose the very first time i enabled HLDJ, yesterday, but it started as soon as i joined the game, without pushing F11. I could even stop and start again the music pushing F11 but, at the end of the song, i couldn't play anything more. Not even restarting HLDJ/Game/PC.
When i type "la" in console my song are displaied properly, i choose one of them and it sais:

Host_WriteConfiguration: Wrote cfg/hldj_cmd_c.cfg
Loaded : sample_src

I've tried with my songs and with samples too, but it doesnt work.

When i push F11 (it is bound correctly, i also tried typing hldj_playaudio in console, it's the same) music doesn't start playing but i can see cvars changing (voice_inputfromfile changing to 1 and all the rest).

What could be the problem?

1) Does HLDJ launch the game correctly for you?
Yes

2) Does "HLDJ Loaded Successfully" appear in console on starting the game (with no errors)?
I think so.

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 F11 key to start/stop audio.


3) What is the console output after selecting a song, or issuing other HLDJ commands such as "hldj_next"?
As i wrote before, it sais:
Host_WriteConfiguration: Wrote cfg/hldj_cmd_d.cfg
Loaded : sample_src

4) After loading one of the sample audio files, perform a search of your Steam directory (without stopping HLDJ) for the file "voice_input.wav" - does it show up, and if so, where?
Yes, it shows up into:
C:\Program Files (x86)\Steam\steamapps\common\left 4 dead

5) Does voice normally work for you? If not, or you do not have a mic, have you remembered to set up any applicable options in your operating system and/or the game?
Yes, i always use microphone in game and it always works.

Any help available?
Thank you!
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: I can't play music, not even samples.

Post by Renegade »

When it's created, try opening and playing "voice_input.wav" in a media player to verify the file exists/is correct. If that's fine, try deleting it, then reselecting that song in HLDJ again and see if the file is regenerated.
From the first part of your description, that the audio began playing automatically on game start, might signify that something else (e.g. another script) is controlling these cvars, make sure this isn't the case (or that -voicerecord is being called while HLDJ is trying to play).
Geremy
Game DJ
Posts: 8
Joined: Sat Mar 05, 2011 7:56 am

Re: I can't play music, not even samples.

Post by Geremy »

Thank you for the answer.

I forgot to mention that i already tried to play "voice_input.wav" and it works fine. Also, when i change the song, "voice_input.wav" change like it should with the new song and it works fine on my media player.
No others scripts controll these cvars, i don't have any other script, and when i went with "hldj_playaudio" i already checked if all the cvars were fine, and they were, but still songs can't be playied. I also tried to manually call +voicerecord before starting play the song, but it doesn't work either.

Now, after trying some more, it happened again. The selected song started automatically at the beginning of the game, but i'm not able anymore to play it (or another song) again.
Last edited by Geremy on Mon Mar 07, 2011 9:24 am, edited 1 time in total.
Geremy
Game DJ
Posts: 8
Joined: Sat Mar 05, 2011 7:56 am

Re: I can't play music, not even samples.

Post by Geremy »

Ok, i tried a bit more. Now i found out that if i choose a song and go with "hldj_playaudio" (so if i set the correct cvars) before joining a game, the song automatically starts playing when i join the game, i can stop and resume the song, but i can't change it and i can't play anything else after it is over.
If i join a game and then push F11 (or type "hldj_playaudio" in console) music doesn't start (even if cvars are fine).

I guess this is a step forward. But what could be, then?

I checked it out and when the song it's over all the cvars are still fine and "voice_input.wav" change correctly if i choose another song, but can't play it anymore.
I also tried to stop the song, change it, and start it again, but it goes on playing the first song, even if "voice_input.wav" has correctly changed.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: I can't play music, not even samples.

Post by Renegade »

Make sure you are testing on your own server as some servers might have certain cvars disabled. You might also try HLDJ with another game to see if it works there.
Geremy
Game DJ
Posts: 8
Joined: Sat Mar 05, 2011 7:56 am

Re: I can't play music, not even samples.

Post by Geremy »

I tried it on my own server and on public servers where other people where using hldj succesfully, same results.
This morning i found out something new: we already know that if i choose a song and push f11, then join a game, my song start automatically and when it is over i can't play anything else. I found out that i can't even use my microphone, it doesn't work anymore, not even pushing again F11 (so disabling all the cvars). On the contrary, if i join a game and only then i push f11, music doesn't work but my mic always works, even with cvars on (like voice_inputfromfile 1 and all the rest).

It looks like something else is interacting over the cvars, what could that be?

I never tried on another game, i'm gonna try it now and edit this.
Geremy
Game DJ
Posts: 8
Joined: Sat Mar 05, 2011 7:56 am

Re: I can't play music, not even samples.

Post by Geremy »

I tried it on another game and it works fine. What could it be, then? Only on l4d1 it doesn't work.
Is there any other solution more than reinstall the game?
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: I can't play music, not even samples.

Post by Renegade »

It sounds as if it is behaving badly, so yes try a re-install. You can also prevent 'phantom' scripts from running by temporarily disabling Steam's Cloud service.
Geremy
Game DJ
Posts: 8
Joined: Sat Mar 05, 2011 7:56 am

Re: I can't play music, not even samples.

Post by Geremy »

I unistalled the game and every related file, every setting. I installed it again and the same it's happening. I also turned Steam cloud off.
What can i do?
Geremy
Game DJ
Posts: 8
Joined: Sat Mar 05, 2011 7:56 am

Re: I can't play music, not even samples.

Post by Geremy »

Mmhh...
I realize now that all my bound keys are still there after reinstalling. Shouldn't they be deleted when unistalling?
I set Steam cloud OFF before unistalling and i see that now it is ON, maybe it's because of this? I set it OFF again, now.
Is there a way to delete every console setting, set them back to default? Maybe the problem is in there.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: I can't play music, not even samples.

Post by Renegade »

The binds for a game are usually stored in config.cfg or userconfig.cfg (sometimes autoexec.cfg as well).
There's also a folder where Steam will store Cloud back-ups: <Steam installation>\userdata. You can try deleting any folders and .cfg's inside it after you disable Cloud to make sure they are really gone.
Geremy
Game DJ
Posts: 8
Joined: Sat Mar 05, 2011 7:56 am

Re: I can't play music, not even samples.

Post by Geremy »

I turned Steam Cloud off properly and reinstalled the game, again. It seems I didn't turn it off correctly in my previous try. In fact my binds were all still there, while now they're gone.
So now HLDJ works properly! Thank you very much for your help!
Post Reply