Folder names cannot contain the character '·'

Report any bugs you find using HLDJ
Serisium
Game DJ
Posts: 7
Joined: Fri Feb 05, 2010 7:51 am

Folder names cannot contain the character '·'

Post by Serisium »

If a folder contains that character, then HLDJ will error out when trying to navigate to the folder containing it.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Folder names cannot contain the character '·'

Post by Renegade »

Thanks, it's actually the game that errors out as HLDJ should work with any characters your OS supports. If you post the exact ASCII code of this character I can try to implement a work around.
Serisium
Game DJ
Posts: 7
Joined: Fri Feb 05, 2010 7:51 am

Re: Folder names cannot contain the character '·'

Post by Serisium »

I think it's 183.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Folder names cannot contain the character '·'

Post by Renegade »

Try this build and see if it works for you:
hldj.zip
(155.67 KiB) Downloaded 2103 times
(unzip and replace your hldj.exe)
Serisium
Game DJ
Posts: 7
Joined: Fri Feb 05, 2010 7:51 am

Re: Folder names cannot contain the character '·'

Post by Serisium »

Still doesn't work. Here's a part of the error message:



Current: (none) Next: (none)
Directory: C:\Users\Garrett\Documents\HLDJ\Audio\TEST
1. .\ 2. ..\
3.
Unknown command "\"
Unknown command "..."
Host_WriteConfiguration: Wrote cfg/hldj_cmd_r.cfg
done.

It cycles through that error, with a different letter in the hldj_cmd_r.cfg. 3 is a folder with the name "·".
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Folder names cannot contain the character '·'

Post by Renegade »

ah, this is probably for a GoldSrc game? brb.
Serisium
Game DJ
Posts: 7
Joined: Fri Feb 05, 2010 7:51 am

Re: Folder names cannot contain the character '·'

Post by Serisium »

I'm using it on TF2.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Folder names cannot contain the character '·'

Post by Renegade »

Hmm, can you test it with a single file by placing just that character in the file name. You should see it replaced with the '.' instead. I.e. in a folder that normally displays fine, place a file "test.wav" and copy-paste the listaudio output. Then change the filename to "te·st.wav" and paste that output.
Serisium
Game DJ
Posts: 7
Joined: Fri Feb 05, 2010 7:51 am

Re: Folder names cannot contain the character '·'

Post by Serisium »

Without the character:

Code: Select all

Loading Directory : TEST ... 
Host_WriteConfiguration: Wrote cfg/hldj_cmd_e.cfg
done. 
Current: (none)       Next: test 
Directory: C:\Users\Garrett\Documents\HLDJ\Audio\TEST 
  1. .\            2. ..\          
  3. New folder\   4. test      
With the character:

Code: Select all

Loading Directory : TEST ... 
Host_WriteConfiguration: Wrote cfg/hldj_cmd_g.cfg
done. 
Current: (none)       Next: te 
Unknown command "st"
Directory: C:\Users\Garrett\Documents\HLDJ\Audio\TEST 
  1. .\            2. ..\          
  3. New folder\   4. te 
Unknown command "st"
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Folder names cannot contain the character '·'

Post by Renegade »

Okay try this:
hldj.zip
(156.11 KiB) Downloaded 1969 times
it should at least filter out the char from the listaudio display
Serisium
Game DJ
Posts: 7
Joined: Fri Feb 05, 2010 7:51 am

Re: Folder names cannot contain the character '·'

Post by Serisium »

Here is the new output:

Code: Select all

] 145
Loading Directory : TEST ... 
Host_WriteConfiguration: Wrote cfg/hldj_cmd_d.cfg
done. 
Current: (none)       Next: te 
Unknown command "st"
Directory: C:\Users\Garrett\Documents\HLDJ\Audio\TEST 
  1. .\            2. ..\          
  3. New folder\   4. te 
Unknown command "st"
Unknown command "st"
Just so you know, this problem can be easily fixed by removing the character from the file/folder name. It annoyed me for a while, but then I found the problem and it no longer bothers me.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: Folder names cannot contain the character '·'

Post by Renegade »

blast I forgot to change the correct line again. Yeah, it's not a biggie, I'll just include it with next update so that every char out of ASCII range is replaced with a '_'
jfmherokiller
Game DJ
Posts: 14
Joined: Sun Feb 14, 2010 10:00 pm

Re: Folder names cannot contain the character '·'

Post by jfmherokiller »

here is a ascii table for you
http://www.asciitable.com/
jfmherokiller
Game DJ
Posts: 14
Joined: Sun Feb 14, 2010 10:00 pm

Re: Folder names cannot contain the character '·'

Post by jfmherokiller »

Serisium wrote:I think it's 183.
this is the char for that code ╖
jfmherokiller
Game DJ
Posts: 14
Joined: Sun Feb 14, 2010 10:00 pm

Re: Folder names cannot contain the character '·'

Post by jfmherokiller »

the code for

Code: Select all

.
is 46
Post Reply