Upvote Upvoted 17 Downvote Downvoted
[repost] stvkeybinds, a tool for STV streamers
1
#1
16 Frags +

reposting this from NATF2 since I don't know how long that will be around

-------------------------------------------------------------------------

I made a simple application to help people who stream games from SourceTV (extv, vanillatv etc)

http://i.imgur.com/xU7vz.png

It produces something along the lines of this: http://pastebin.com/W1mnm4Rz

Actual sample output from a pub server: http://pastebin.com/BYHrHqTq

Basically you paste the match server IP (not the sourcetv) onto the window with Ctrl-V, drag the class icons to the players, then hit save. This spits out a bunch of cfg files in the same folder.

If you run this in your tf/cfg folder you can then enter "exec stvkeybinds" in tf2 and it will apply the matches you just made.

Keys will then be bound as follows:

Shift Q - Blu Med
Shift A - Blu Demo
Shift W - Blu Solly 1
Shift S - Blu Solly 2
Shift E - Blu Scout 1
Shift D - Blu Scout 2

And likewise for Alt and RED team.

The binds should revert the above keys to the default values after you release Ctrl/Shift, so if you have custom binds on those keys you should back up your config.cfg (do this anyway).

Then you can join the sourcetv for the game and use these keys combinations to change to the players specified in one press.

It's the first release and I haven't had a chance to test it with an actual TF2 game since I haven't had access to my gaming PC in the last few days, but let me know how it goes for you.

So the download and source (C#) are available here: http://code.google.com/p/stv-keybinds/downloads/list

Thanks to the creator of coLdemoplayer. I took the server-communication code from there.

PS. the Auto button does nothing.

PPS. "undo.cfg" is used to change the Q,W,E,A,S,D keys back to their default bindings after release. If you don't use the standard keybinds you should edit this file.

bind Q lastinv 
bind W +forward  
bind A +moveleft  
bind S +back  
bind E "voicemenu 0 0"
bind D +moveright

Shift and Alt are also bound but I never figured out how to revert those.

[b]reposting this from [url=http://natf2.com/topics/6320]NATF2[/url] since I don't know how long that will be around[/b]

-------------------------------------------------------------------------

I made a simple application to help people who stream games from SourceTV (extv, vanillatv etc)

[img]http://i.imgur.com/xU7vz.png[/img]

It produces something along the lines of this: http://pastebin.com/W1mnm4Rz

Actual sample output from a pub server: http://pastebin.com/BYHrHqTq

Basically you paste the match server IP (not the sourcetv) onto the window with Ctrl-V, drag the class icons to the players, then hit save. This spits out a bunch of cfg files in the same folder.

If you run this in your tf/cfg folder you can then enter "exec stvkeybinds" in tf2 and it will apply the matches you just made.

Keys will then be bound as follows:

Shift Q - Blu Med
Shift A - Blu Demo
Shift W - Blu Solly 1
Shift S - Blu Solly 2
Shift E - Blu Scout 1
Shift D - Blu Scout 2

And likewise for Alt and RED team.

The binds should revert the above keys to the default values after you release Ctrl/Shift, so if you have custom binds on those keys you should back up your config.cfg (do this anyway).

Then you can join the sourcetv for the game and use these keys combinations to change to the players specified in one press.


It's the first release and I haven't had a chance to test it with an actual TF2 game since I haven't had access to my gaming PC in the last few days, but let me know how it goes for you.

So the download and source (C#) are available here: http://code.google.com/p/stv-keybinds/downloads/list

Thanks to the creator of coLdemoplayer. I took the server-communication code from there.

PS. the Auto button does nothing.

PPS. "undo.cfg" is used to change the Q,W,E,A,S,D keys back to their default bindings after release. If you don't use the standard keybinds you should edit this file.

[code]bind Q lastinv
bind W +forward
bind A +moveleft
bind S +back
bind E "voicemenu 0 0"
bind D +moveright[/code]

Shift and Alt are also bound but I never figured out how to revert those.
2
#2
4 Frags +

i love using this for my casts! props

i love using this for my casts! props
3
#3
8 Frags +

Some dudes from OZfortress updated this since I haven't touched it since the first release, credit to Pishkeh-

http://code.google.com/p/stv-keybinds/downloads/detail?name=stv_keybinds_a2.exe&can=2&q=

ps I would suggest adding "+exec stvkeybinds" to your launch options if you plan to use this frequently (or add "exec stvkeybinds" to your autoexec)

Some dudes from OZfortress updated this since I haven't touched it since the first release, credit to Pishkeh-

http://code.google.com/p/stv-keybinds/downloads/detail?name=stv_keybinds_a2.exe&can=2&q=

ps I would suggest adding "+exec stvkeybinds" to your launch options if you plan to use this frequently (or add "exec stvkeybinds" to your autoexec)
4
#4
5 Frags +

could also make a shortcut to steam with different launch options. Applaunch 440 is tf2

"C:\Program Files (x86)\Steam\Steam.exe" -applaunch 440 -sw -noborder -w 1920 -h 1080 -console -novid -noborder +exec stvkeybinds
could also make a shortcut to steam with different launch options. Applaunch 440 is tf2

[code]"C:\Program Files (x86)\Steam\Steam.exe" -applaunch 440 -sw -noborder -w 1920 -h 1080 -console -novid -noborder +exec stvkeybinds[/code]
5
#5
1 Frags +

We actually use it slightly differently. We just do our own binds to refer to the files directly. I stick the application in a folder called stv and then run these two configs

alias +blumedic 	"exec stv/BLU_Medic.cfg"
alias +blupocket 	"exec stv/BLU_Soldier_1.cfg"
alias +bluroamer 	"exec stv/BLU_Soldier_2.cfg"
alias +bludemo 		"exec stv/BLU_Demoman.cfg"
alias +bluscout1	"exec stv/BLU_Scout_1.cfg"
alias +bluscout2	"exec stv/BLU_Scout_2.cfg"

alias +redmedic 	"exec stv/RED_Medic.cfg"
alias +redpocket 	"exec stv/RED_Soldier_1.cfg"
alias +redroamer 	"exec stv/RED_Soldier_2.cfg"
alias +reddemo 		"exec stv/RED_Demoman.cfg"
alias +redscout1	"exec stv/RED_Scout_1.cfg"
alias +redscout2	"exec stv/RED_Scout_2.cfg"

echo ================================
echo == STVkeybinds aliases Loaded ==
echo ================================
bind "kp_leftarrow" 	"+redmedic"
bind "kp_end" 			"+reddemo"
bind "kp_5" 			"+redpocket"
bind "kp_rightarrow" 	"+redroamer"
bind "kp_downarrow" 	"+redscout1"
bind "kp_pgdn" 			"+redscout2"

bind "kp_home" 			"+blumedic"
bind "backspace" 		"+bludemo"
bind "kp_uparrow" 		"+blupocket"
bind "kp_pgup" 			"+bluroamer"
bind "kp_slash" 		"+bluscout1"
bind "kp_multiply" 		"+bluscout2"

bind "kp_plus" 			spec_next
bind "kp_minus" 		spec_prev

bind "kp_ins" 			"spec_mode 4"
bind "kp_del" 			"spec_mode 5"

bind "kp_enter" 		"exec casting/spec_best.cfg"//for huge_status_monitor

of course you could bind directly, but I do it this way because I also have some other scripts which use the same aliases. I also use a autohotkey script to assign numlock to backspace.

Ends up like this

http://puu.sh/5Q96C.png

We actually use it slightly differently. We just do our own binds to refer to the files directly. I stick the application in a folder called stv and then run these two configs

[code]alias +blumedic "exec stv/BLU_Medic.cfg"
alias +blupocket "exec stv/BLU_Soldier_1.cfg"
alias +bluroamer "exec stv/BLU_Soldier_2.cfg"
alias +bludemo "exec stv/BLU_Demoman.cfg"
alias +bluscout1 "exec stv/BLU_Scout_1.cfg"
alias +bluscout2 "exec stv/BLU_Scout_2.cfg"

alias +redmedic "exec stv/RED_Medic.cfg"
alias +redpocket "exec stv/RED_Soldier_1.cfg"
alias +redroamer "exec stv/RED_Soldier_2.cfg"
alias +reddemo "exec stv/RED_Demoman.cfg"
alias +redscout1 "exec stv/RED_Scout_1.cfg"
alias +redscout2 "exec stv/RED_Scout_2.cfg"


echo ================================
echo == STVkeybinds aliases Loaded ==
echo ================================[/code]


[code]bind "kp_leftarrow" "+redmedic"
bind "kp_end" "+reddemo"
bind "kp_5" "+redpocket"
bind "kp_rightarrow" "+redroamer"
bind "kp_downarrow" "+redscout1"
bind "kp_pgdn" "+redscout2"

bind "kp_home" "+blumedic"
bind "backspace" "+bludemo"
bind "kp_uparrow" "+blupocket"
bind "kp_pgup" "+bluroamer"
bind "kp_slash" "+bluscout1"
bind "kp_multiply" "+bluscout2"

bind "kp_plus" spec_next
bind "kp_minus" spec_prev

bind "kp_ins" "spec_mode 4"
bind "kp_del" "spec_mode 5"

bind "kp_enter" "exec casting/spec_best.cfg"//for huge_status_monitor[/code]

of course you could bind directly, but I do it this way because I also have some other scripts which use the same aliases. I also use a autohotkey script to assign numlock to backspace.

Ends up like this

[img]http://puu.sh/5Q96C.png[/img]
Please sign in through STEAM to post a comment.