Forum

stvkeybinds, a tool for STV streamers

Created 27th July 2012 @ 17:22

Add A Reply Pages: 1 2 Next »

atmo

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

[img key=imgposter]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.


Last edited by atmo,

Vaskie

BulletClub

Atmo first before anything else i gotta congratulate you for a fantastic work. This tool is bound to help tons all the Casters and Streamers across the whole TF2 multiverse, be it eXtv, VanillaTV, and what not.

Would it be possible to make it that a class is bound to two players, for example since there are two scouts, and two soldiers, it would go between them using just one button.

Technically it seems possible to me as i use something for Engineer that does sorta that, as in, i press F and it can do two tasks, build sentrys, and destroy them.

I added you on steam aswell

Thanks for the great work

Monkeh

.:ne:.
.:ne:.

Sounds epic.

toogyboogy

(ETF2L Donator)
SOFT
bobs

this works on stv demos aswell yeh?

Regen

nf.
9F

Oh that’s sick

huhystah

oh you…

atmo

Quoted from toogyboogy

this works on stv demos aswell yeh?

Not really, no. You can use “spec_player” in stv demos yes, but the application has no way of getting a list of players.

mosepose

WWCD
{o,o}

wow thanks, i always wanted something like this,

i will test it in my next cast.

atmo

Quoted from Vaskie

Atmo first before anything else i gotta congratulate you for a fantastic work. This tool is bound to help tons all the Casters and Streamers across the whole TF2 multiverse, be it eXtv, VanillaTV, and what not.

Would it be possible to make it that a class is bound to two players, for example since there are two scouts, and two soldiers, it would go between them using just one button.

Technically it seems possible to me as i use something for Engineer that does sorta that, as in, i press F and it can do two tasks, build sentrys, and destroy them.

I added you on steam aswell

Thanks for the great work

Yes, something like that is possible, although if there are only two players that you are interested in then it is probably faster to just write some aliases in console and use those.

eg:

alias p1 "spec_player name1; bind x p2"
alias p2 "spec_player name2; bind x p1"
bind x p1

I will be online on steam tomorrow if you have any more questions

Vaskie

BulletClub

Thanks for the response, i probably made myself not clear. What i was hoping for is, instead of having 6 buttons per team, it would be 3.

Example, the buttons would be 1, 2, 3, and 4 for Scout, Medic, Soldier and Demoman where instead of having two seperate buttons for two scouts, and two for the two soldiers, you would have a button for the medic, one for the demoman and when you clicked on the scout button it would cicle between the two scouts of that team, and the soldier button would work the same way.

nTraum

\V/ Gold
LAME

Nice one!

atmo

Ok, I got a chance to try it on my own PC, and it does work! But there is an error in the code for the Demoman binds (it says “exec TEAM_Demo” when it should be “exec TEAM_Demoman” in TEAMteam.cfg).

Unfortunately I messed up my svn commit setup so I don’t have everything I need to build a new version here at home. Will sort that out on Monday.

@Vaskie, yes, that sounds possible, but the purpose of the application was so that you could always switch to the exact player you wanted so that people watching streams didn’t get unhappy about flicking through players one by one to get to the right view.


Last edited by atmo,

nTraum

\V/ Gold
LAME

svn ಠ_ಠ

atmo

?

atmo

Updated to Alpha1

Changes: http://code.google.com/p/stv-keybinds/source/detail?r=32

Fixed Issue #1

modified stv_keybinds/Form1.cs
* Changed: bind “exec _team Demo” to “exec _team Demoman”
* Changed: team modifier keys are now shift (BLU) and alt (RED)
* Changed: class keys changed to two horizontal groups (QWE+ASD) from vertical (QAZ+WSX)
— Q. Medic, A. Demoman, W. Soldier 1, S. Soldier 2, E. Scout 1, D. Scout 2
* Changed: firstperson spec command changed to spec_mode 4
* Changed: undo operation now done through an exec rather than alias

Download: http://code.google.com/p/stv-keybinds/downloads/detail?name=stv_keybinds_a1.exe

Add A Reply Pages: 1 2 Next »