Page 1 of 1

TF2 script interference

Posted: Thu Oct 23, 2008 1:35 am
by hot dogs
I've got some code in my spy.cfg file that seems to be conflicting with hldj. I have the following mapped to my "q" key as part of a larger script:

Code: Select all

"slot1; +attack; alias +stab +attack; alias -stab -attack; alias +sht1 +backstab1; alias -sht1 -backstab1; alias +sap +destsent; alias -sap -destsent"
Each time I press q as a spy, hldj sets the current track to number 27. Here is the console output from several key presses:

Code: Select all

Host_WriteConfiguration: Wrote cfg/hldj_selh.cfg
Loading : cakepanyo 
Host_WriteConfiguration: Wrote cfg/hldj_seli.cfg
Loading : cakepanyo 
Host_WriteConfiguration: Wrote cfg/hldj_selj.cfg
Loading : cakepanyo 
Host_WriteConfiguration: Wrote cfg/hldj_selk.cfg
Loading : cakepanyo 
Host_WriteConfiguration: Wrote cfg/hldj_sell.cfg
Loading : cakepanyo 
Host_WriteConfiguration: Wrote cfg/hldj_selm.cfg
Loading : cakepanyo 
Host_WriteConfiguration: Wrote cfg/hldj_seln.cfg
Loading : cakepanyo 
Host_WriteConfiguration: Wrote cfg/hldj_selo.cfg
Loading : cakepanyo 
and so forth.

Is there something in that line of script that would be resetting the loaded song, or is there a different problem? I'm using hldj v1.4.05.

Thanks.

Re: TF2 script interference

Posted: Thu Oct 23, 2008 2:14 am
by Renegade
Nothing there looks suspect, but it could be a result of some other part of the script. When it happens, get a listing of your aliases (enter "alias") and see if any of them have been accidentally mapped to "27". Also check to make sure that 'q' wasn't previously bound to a +/-alias containing an HLDJ command.

If all else fails, you can also try adding a quick-select prefix, go to Setup->Advanced->Quick-Select Prefix, i.e. if your prefix is 's', then the new alias to select song #27 would be 's27'.

Re: TF2 script interference

Posted: Thu Oct 23, 2008 3:57 am
by hot dogs
Hm. From what I could tell, the only thing mapped to 27 is "27". I disabled quick select and was getting an "unrecognized command: 27" in console, which means that it was still being bound somewhere.

Here's what the actual bind was in the script:

Code: Select all

bind "q" "+sht1;"
I changed that to:

Code: Select all

bind q "+sht1"
...and the 27 command isn't given by q any more. Problem inexplicably solved by useless punctuation removal, I guess. Make any sense to you?

Thanks for the help.