r/tf2 • u/FanciestBanana • Aug 04 '17
Suggestion Bringing scripts to mainstream: TF2-EasyScript
I come here to share with you a stupidly complex script API to address all your scripting needs:
GitHub link
GitLab link
If you ever wrote script, you know that they require a lot of ground work. Well, I've done it for you, all of it, I mean it. Everything you ever wanted is just a few lines of code. Weapon specific FOV, quickbuild, trahstalking? Anything has become easier with TF2-EasyScriptTM (former ultimate framework).
I will stop fanfares here since i already did that in readme. My idea behind this script is to provides lots of utlities for scrpting like stable frontend and short-hand aliases for every in-game function. This means sharing your scripts is also easier, since very little modification should be ever required.
PS. Even if you don't really need or understand it, just please appreciate that a dude on the internet spent moths on creating a programming language and a compiler to create 94kb script to make writing other scripts easier for a videogame. I need some validation.
4
u/lkemme Se7en Aug 04 '17
Maybe I'm missing something but I found these two lines while scrolling through the easyscript.cfg file. It looks like they are the wrong way around: alias join_spec jointeam auto alias join_auto jointeam spectator
4
u/covert_operator100 Aug 04 '17
So, do I (1) script in Ruby by calling Ruby functions, then compile to Sourcescript, or (2) do I script in SourceScript, but a bunch of aliases are created for me?
2
u/just_a_random_dood Aug 05 '17
So how do you think this'll interact with a cfg.tf config?
Will they counteract each other, or what? Or should I just read the readme?
13
u/Tvde1 Aug 04 '17
The callback stuff is really interesting! I might redo all my scripts again and I'll do it this way.
1
u/reedworth Jan 22 '18
This is really impressive. I'm excited to look into your functions.
I find the abbreviated prefixes and suffixes confusing. I'm sure that with more familiarity it all makes sense.
In any case, thanks for contributing to the community and putting in the time and effort.
1
u/bigsqueaks Aug 11 '17
I've finally gotten around to trying this out. I'm having problems getting it to work right. I did have to change all of the keys to my keyboard layout. Upon executing easyscript after doing so, my console no longer responds to commands. I'm debugging when that happened in the script now. Is there a good way to contact you?
1
u/gatlingfirepea Aug 04 '17
v a l i d a t i o n m a c h i n e b r o k e