Hldj stopped working after update (l4d2)

Help with using HLDJ
A9i
Game DJ
Posts: 15
Joined: Sun May 30, 2010 12:45 pm

Hldj stopped working after update (l4d2)

Post by A9i »

Hello. I got the same problem. I think valve fu*** up this with the Passing Update (DLC).

Now, in the game folder you got "2 games".

A) Steam\steamapps\common\left 4 dead 2\left4dead2
B) Steam\steamapps\common\left 4 dead 2\left4dead2_dlc1 <--- They added this on the DLC Update.

If you want HLDJ to load when you open the game, you should select the "B" path as the game path in the settings of HLDJ. If you press the key binded to play the songs, the voice chatter icon will pop up on top of your nickname (like when you talk through mic), but nothing will be played. If you look at the console you can see the list of songs you've got. If you try to load one, apparently it will load, but as soon as you press the key to play it, it shows: Current: (none). And nothing is played. On advanced settings, you can indicate the game audio directory, which is on the "A" Path (Checked as stated on this thread).

For the record, not sure if that's related.

Unknown command "hldjsf"
Unknown command "voice_fadeouttime"
Host_WriteConfiguration: Wrote cfg/hldj_cmd_a.cfg

HLDJ successfully loaded!


Before the update, everything worked fine with the "A" path. But now, if you want HLDJ to load when you open the game, you need to change the game path to the "B", and you will get what i stated above.


For me, i got this:
1) Does HLDJ launch the game correctly for you? Yes with "B" path. No with "A" Path.
2) Does "HLDJ Loaded Successfully" appear in console on starting the game (with no errors)? Yes with "B". Nothing with "A"
3) What is the console output after selecting a song, or issuing other HLDJ commands such as "hldj_next"?]

Current: (none) Next: 03Benny Hill Show
Directory: xxxx\HLDJ\Audio
1. .\ 2. ..\
3. 03Benny Hill Show
] 3 <--- I load the song 3.
Host_WriteConfiguration: Wrote cfg/hldj_cmd_g.cfg
Loaded : 03Benny Hill Show

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? Can't find the file voice_input. But HLDJ still working on L4D1.
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 OS and/or the game? Voice working perfect as before.

I'll appreciate if you can help me out to sort the problem. Thanks in advance. If you need me to test something, tell me.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Hldj stopped working after update (l4d2)

Post by Renegade »

I split the topic as your problems were not identical.
If HLDJ is responsive (i.e. it shows up in console, you can load files/directories, etc), then your game path is correct. If you can play audio, then your game audio path (where voice_input.wav shows up) is correct. If the former is true but not the latter, then the game audio path is incorrect.

There's a section in the manual on how to find the game audio directory if you believe it is incorrect. However, even with an incorrect path, voice_input.wav will still show up somewhere after loading a file. If it doesn't and you are sure of this, then there are bigger problems (i.e. why the file could not be created).
A9i
Game DJ
Posts: 15
Joined: Sun May 30, 2010 12:45 pm

Re: Hldj stopped working after update (l4d2)

Post by A9i »

Hello. Thanks for the reply.

I checked again for the game audio directory. And it's on Steam\steamapps\common\left 4 dead 2\left4dead2. Picture:

Code: Select all

http://i49.tinypic.com/1o9gk9.png
The config in HLDJ is as follow. Picture:

Code: Select all

http://i45.tinypic.com/2vrwuc5.png
The only way to make HLDJ load succesfully with l4d2, is using this path for the game directory: Steam\steamapps\common\left 4 dead 2\left4dead2_dlc1


However, even with an incorrect path, voice_input.wav will still show up somewhere after loading a file. If it doesn't and you are sure of this, then there are bigger problems (i.e. why the file could not be created).
I checked with L4D1, that file appears under Steam\steamapps\common\left 4 dead\left4dead; when a file is played. But it doesn't appear when i load a song in L4D2 and press the button to play the file (when i do this, i can see the ico pop up above my nickname (http://i46.tinypic.com/ndx9ig.png), but, no song is played, nothing). So i'm afraid this is the bigger problem you said :S

Also, checked the folder permissions, they are ok, all permissions, write and read. And, i can record demos (which are created on the "A" path, so the game can write in there).

Thanks for your answer again.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Hldj stopped working after update (l4d2)

Post by Renegade »

Your game audio directory according to the screenshot should be "common\left 4 dead 2", not "common\left 4 dead 2\left4dead2" (the game directory will be "common\left 4 dead 2\left4dead2_dlc"). This is what HLDJ will use anyways, so it's not necessary to specify it explicitly. If you open your hldj.settings file in a text editor, you should see an entry for Left 4 Dead 2 dlc something along the lines of:

Code: Select all

- - - - -
Left 4 Dead 2
...\Steam\steamapps\common\left 4 dead 2\left4dead2_dlc
...\Steam\steamapps\common\left 4 dead 2\
...
The two paths above are the game directory and game audio directory, verify that they match yours (if not, make sure you are using the latest version of HLDJ).
A9i
Game DJ
Posts: 15
Joined: Sun May 30, 2010 12:45 pm

Re: Hldj stopped working after update (l4d2)

Post by A9i »

I changed that path to fit the correct audio game directory. Now, it shows like this:

Code: Select all

Left 4 Dead
E:\Juegos\Steam\steamapps\common\left 4 dead\left4dead
E:\Juegos\Steam\steamapps\common\left 4 dead
E:\Juegos\HLDJ\Audio
hldj_listaudio la hldj_playaudio PGUP = 
game.ico
1 1 1
- - - - -
Left 4 Dead 2
E:\Juegos\Steam\steamapps\common\left 4 dead 2\left4dead2_dlc1
E:\Juegos\Steam\steamapps\common\left 4 dead 2
E:\Juegos\HLDJ\Audio
hldj_listaudio la hldj_playaudio PGUP = 
For some reason, i still get no sound when i try to play a song through HLDJ. Under L4D1 it creates the voice_input file when a song is played. But it cannot create the file under L4D2 (Not sure if this can be the problem).

The HLDJ version is the last one on the website, 1.5.05 beta.
Any other ideas on what to check?

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

Re: Hldj stopped working after update (l4d2)

Post by Renegade »

HLDJ should have filled in the correct game audio directory for you, what was the previous value?

After you select a song in L4D2, does the output of the 'hldjca' command match that song? Can you traverse through different directories? If yes, the only other conclusion I can reach is that something is actively preventing the creation of voice_input.wav to that folder, which I find highly unlikely. Try copying one of your audio files to this folder and rename it voice_input.wav, then re-enter the game and hit your playaudio key, this should at least figure out if that is the problem. If that is not the problem, I can give you a debug build of HLDJ which may help figure out where exactly the problem is, let me know.
A9i
Game DJ
Posts: 15
Joined: Sun May 30, 2010 12:45 pm

Re: Hldj stopped working after update (l4d2)

Post by A9i »

1)Not sure how can i check what was the default value for the game audio directory. If i press the button to set the default config, when i try to select the audio directory, it starts from here: E:\Juegos\Steam\steamapps <-- Maybe this is the default.

2) I load a song, then type the command "hldjca".
Results:

Code: Select all

] la
Current: (none)       Next: 03Benny Hill Show 
Directory: E:\Juegos\HLDJ\Audio 
 1. .\                  2. ..\               
 3. 03Benny Hill Show   4. 04Leeroy Jenkins  
 5. 05Orgasm            6. 06Satisfaction    
 7. 07What is love      8. 08DP HBFS         
 9. 09DPAerodynamic    10. 10beatit          
11. 11Sparta           12. 12Jaws            
13. 13Giveyouup        14. 14bananaPhone     
15. 15LinkinNumb       16. 16rythemisadancer 
17. 17Muppets          18. 18nigga           
19. 19tralala         
] 3
Host_WriteConfiguration: Wrote cfg/hldj_cmd_b.cfg
Loaded : 03Benny Hill Show 
] hldjca
Current: (none)       Next: 03Benny Hill Show 
] 5
Host_WriteConfiguration: Wrote cfg/hldj_cmd_c.cfg
Loaded : 05Orgasm 
] hldjca
Current: (none)       Next: 03Benny Hill Show 
] 10
Host_WriteConfiguration: Wrote cfg/hldj_cmd_d.cfg
Loaded : 10beatit 
] 17
Host_WriteConfiguration: Wrote cfg/hldj_cmd_e.cfg
Loaded : 17Muppets 
] hldjca
Current: (none)       Next: 03Benny Hill Show 
As you can see, no matter what song i tried to load, it will always say: None and next for my first song (number 3).

I also checked the firewall (KIS 2010) and Left 4 dead 1 and 2, has no restrictions.

3) Ok. I manually placed one of my songs to the audio game directory, and renamed it to voice_input.wav as you said... pressed the play song button and it worked. Stop and re-pressed, and still working. It keeps playing the same song no matter which song i try to load.

Thanks for the help!
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Hldj stopped working after update (l4d2)

Post by Renegade »

Can you switch directories? If not, communication is broken between HLDJ and the game. Since it works with your other games, L4D2 may have broke a command, perhaps the host_writeconfig command. Try running: "bind = "TESTCOMMAND"; host_writeconfig TESTFILE.CFG" in console, then take a look in the "left4dead2_dlc1\cfg" folder for that file. If it's not present, or doesn't contain the line "bind = "TESTCOMMAND"", then that would be problematic.
A9i
Game DJ
Posts: 15
Joined: Sun May 30, 2010 12:45 pm

Re: Hldj stopped working after update (l4d2)

Post by A9i »

What do you mean with switch directories? Changing the HLDJ directory (from E:\Juegos\HLDJ\Audio to another one) ? If so, i will try in a few hours.

I tried your last part. The "bind = "TESTCOMMAND"; host_writeconfig TESTFILE.CFG".

It creates a file, but under this directory: "left4dead2\cfg"

Not in "left4dead2_dlc1\cfg" Where the game directory is located.

Tell me if you need to content of the Testfile, i'll send you a pm with it.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Hldj stopped working after update (l4d2)

Post by Renegade »

I see the problem, the cfg file is created in the wrong location. I can't understand why Valve would do this, but to confirm:
a) Setting the game directory to "left4dead2" in HLDJ does not work with the dlc
b) host_writeconfig generates the config file in "left4dead2\cfg" and not "left4dead2_dlc1\cfg".
It makes little sense to me, but if that is the case, I'll see what I can do to fix Valve's mess-up.
A9i
Game DJ
Posts: 15
Joined: Sun May 30, 2010 12:45 pm

Re: Hldj stopped working after update (l4d2)

Post by A9i »

Hi.

A) Exactly, i just double checked that a few minutes ago. Doesn't work if the game directory is "left4dead2" with the DLC.
B) Correct. That creates the file into "left4dead2\cfg".

If you need my help to test something just leave me a message i'll help!. Thanks!
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Hldj stopped working after update (l4d2)

Post by Renegade »

It's impossible to test fully on my end, but I think this may solve your problem; unzip and use this hldj.exe.
If it works, it's not the solution I'm looking for, but it'll do for now until I figure out how many people are affected by this and why...
A9i
Game DJ
Posts: 15
Joined: Sun May 30, 2010 12:45 pm

Re: Hldj stopped working after update (l4d2)

Post by A9i »

Hi. Tested but didn't work.

Also i checked this part, and the program never remember that option.

Code: Select all

http://i50.tinypic.com/n2kb9h.png
I'm gonna delete the whole game, download it again and see what happens.

Edited: Done, game uninstalled, installed again, clean files. But nothing. And most of the time, is like HLDJ can't read the music files on my music folder for HLDJ (wav..), when i press "la" it says: Current: None, Next: None. And nothing listed. Gonna do a few more test, changing the audio game directory, the game directory between left4dead2 (but with this it doesn't load), and left4dead2_dlc1.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Hldj stopped working after update (l4d2)

Post by Renegade »

It's okay, you don't have to, I've got a pretty good idea what the problem is. Every other game both reads and writes its config files to "<game folder>/cfg". For some reason in your case (or perhaps globally too) it seems the L4D2 dlc reads from "left4dead2_dlc/cfg" but writes to "left4dead2/cfg"... go figure. So what I did with the fix there is have HLDJ copy whatever configs are generated from the latter folder to the former. I'm not sure why it didn't work, but I was pretty exhausted when I did it, so maybe I overlooked something. I'll have another look at it today.

fyi: for the option in your screenshot, since the path you provided is the same one HLDJ would have chosen anyways, it doesn't recognize it as "alternate".
A9i
Game DJ
Posts: 15
Joined: Sun May 30, 2010 12:45 pm

Re: Hldj stopped working after update (l4d2)

Post by A9i »

Ahh thank you, wasn't sure about that option not being remember.

No problem, take your time, when you can, just leave a message here and i'll test whatever you upload :)

Also, i'm gonna ask friends, see if someone uses HLDJ and got this problem with L4D2.

Thanks for your time Renegade!
Post Reply