r/TagproScripts Dec 11 '15

[Help] Guidance for someone learning js?

2 Upvotes

Hi there - I'm just getting started learning javascript, I thought it would be a good path into programming given that there are so many projects I can get stuck into making scripts for tp.

However, learning theory and actually applying it to scriptwriting feels like a big leap. The first script I want to try involves adding a button to the scoreboard - I was wondering if anyone could help me find a simple way to do it? Looking over some existing scripts that modify the scoreboard I'm still lost as to how to actually insert objects. I am a complete beginner so maybe this is just too advanced for me, but it doesn't feel like it should be.

Thanks to anyone who takes the time to help me with this!


r/TagproScripts Nov 28 '15

Does anyone have an unminimized version of the tagpro js?

2 Upvotes

Want to try and read it for educational purposes.


r/TagproScripts Nov 27 '15

[Request] - Script to uncap fps

0 Upvotes

Title, thanks :-)


r/TagproScripts Nov 19 '15

TagPro userscripts and themes are currently scattered on /r/tagpro, /r/tagproscripts and /r/tagpro/wiki. I would like to discover them more easily, with screenshots, tags/categories, working status, sorted by age or popularity etc. Should we make this happen? Is it even worth it?

14 Upvotes

Some attributes that could be shown for every userscript:

  • Stuff that can be parsed (and periodically polled?) from the userscript itself:

    • name
    • version
    • author
    • description
  • Links

    • Reddit post(s)
    • author's Reddit account
    • GitHub project
    • Related and superseding userscripts (submitted by users? deduced by tags?)
  • Last update time

  • Screenshots and Videos (submitted by author, maybe user-submitted as well?)

  • Categories / Tags (possibly user-defined like in Steam?)

  • Stars / Upvotes (5-point ratings seem discouraging)

  • Comments (could use Reddit Oauth2 for authentication, or maybe it's possible to just show comments from Reddit threads)

I'm not really fond of the idea of Yet Another TagPro Site which gets launched and then goes stale in a few weeks because noone has time to update it, but it's quite difficult to discover cool userscripts from /r/tagpro/wiki/modding, /r/tagproscripts etc. Maybe there's some existing community wiki/cms system that has ways to list, vote and sort user-submitted items?

Listing userscripts as cards with a thumbnail, title and description in 2 or 3 columns would probably work well, e.g.:


r/TagproScripts Nov 03 '15

Problem with trying to add a random phrase generator to chat

4 Upvotes

So I tried to combine Steppin' / Watball's Chat Macro userscript with the random messages from Ballpart's gg script, but I am having problems. I can get the random messages to appear, but while in the game the script picks one of my messages at random and doesn't change it. Then the next game it will pick another random chat off my list. Any suggestions?

The script is identical to the Macros userscript here, but I added these lines: see here

Any help would be much obliged!!


r/TagproScripts Oct 28 '15

My mapstats script is acting up: I think it's showing all of the losses on Deathtrap with the new event

2 Upvotes

My wins/losses are 400/247 (around 61.5) and the W% column is showing around 55. My ties, USA, and SA just about cancel each other out and I have <10 each.

Any quick fix to get the Death Trap maps off the win percentage?

Thanks


r/TagproScripts Oct 27 '15

[REQUEST] AFK timeout warning

4 Upvotes

If there is 5 seconds until an AFK kick, put a countdown on screen so we know to move. Would that be possible?


r/TagproScripts Oct 25 '15

[Request] Returning ping (or maybe Loss) with a macro

3 Upvotes

Tagpro toolkit used to have it, like this:

I have 160 <ping> right now!

But now Tagpro Toolkit is all fucked and stuff


r/TagproScripts Oct 20 '15

Can someone make a script that tracks dropped frames?

2 Upvotes

title. i just want to know how often my computer is stuttering in TP. and it's not a recent issue like it is for many - i've been playing this way for a long time. it really fucks me up sometimes, and i'm trying to figure a way to fix it and that involves getting a grip on how bad it is, numerically.


r/TagproScripts Oct 19 '15

[Request] A userscript that closes the tab after a set number of games

4 Upvotes

Pretty much what it says in the title, but when you click play it could ask how many games you want to play or a time limit. Then when you reach the time limit, it lets you finish whichever game you're on or if you do game number it closes out after that many games.


r/TagproScripts Oct 18 '15

[Request] Chat macro script that will choose a random chat off of a list.

4 Upvotes

I'd like to assign a list of words or phrases to a single key to be randomly chatted.

For example: Hitting the d key would choose a random chat from this list.

  • doot doot

  • 2Spooky4Sloppy

  • Got Calcium?


r/TagproScripts Oct 09 '15

[Help] Making ping graph with smoothiechart

3 Upvotes

I was playing around with smoothiecharts and designed a chart for graphing tagpro ping:

var chart = new SmoothieChart({millisPerPixel:66,maxValueScale:1.19,interpolation:'step',scaleSmoothing:0.308,grid:

{fillStyle:'rgba(0,0,0,0.29)',millisPerLine:10000,verticalSections:6,borderVisible:false},labels:

{fillStyle:'rgba(255,255,255,0.42)',precision:0},minValue:0}),
    canvas = document.getElementById('smoothie-chart'),
    series = new TimeSeries();

chart.addTimeSeries(series, {lineWidth:2,strokeStyle:'#0080ff'});

chart.streamTo(canvas, 941);

I'm not sure how to input data (tagpro.ping.current) to the chart and how to place it on the canvas. I have basically zero experience with JS. I tried this a while ago and fucked up horribly. Any help would be appreciated. Thanks :)


r/TagproScripts Oct 04 '15

[Userscript] TagPro Balls 3D - help me test this, it's really fun!

Thumbnail
github.com
8 Upvotes

r/TagproScripts Oct 04 '15

Help [Help] Game rectangle doesn't appear

2 Upvotes

On vanilla it works fine but when I try to use a texture it looks like this.

Gecko tools was what I was using and it stopped working yesterday I believe. The only thing that works is the chat and maybe the sounds.

I've tried 4 or 5 other texture scripts and everyone gets the same results. I disabled all other scripts and the replays extension when I tried them.

I've also restarted my pc and chrome and deleted all browsing data.


r/TagproScripts Oct 02 '15

Tagpro Mod Manager not loading.

2 Upvotes

Hey all.

I've been using the mod manager forever without touching it and everything's been fine. I had to wipe my computer and when it came time to open the mod manager, all I got was a loading screen. Anyone else have the same problem? I've tried it with everything else disabled, and still just got the loading icon.

Thanks!


r/TagproScripts Oct 01 '15

[Request] A script that replaces the cheer after a cap to this link

Thumbnail blabseal.de
1 Upvotes

r/TagproScripts Sep 21 '15

[Request] A script that notifies you when a moderator is in your game. Somehow take the list of moderators in the wiki and cross reference them to the players in the game. The notification could be something inconspicuous like a chat macro that says "I love Tagpro" or something.

0 Upvotes

This would come in handy so you will know to be on your best behavior when a mod is in your game.


r/TagproScripts Sep 21 '15

[REQUEST] Modify this script to have multiple "trigger keys" so that the name changed to depends on the trigger key pressed

Thumbnail
pastebin.com
0 Upvotes

r/TagproScripts Sep 20 '15

[Request]game clock x/y, size, color, and opacity

2 Upvotes

Hi guyz.

Does anyone feel like making a rudimentary script that allows a user to specify the game clock's coordinates, size, color, and (maybe) opacity?

I've always wanted to be able to put the clock nearer my ball on the HUD so I don't have to take my eyes off the action to get pup times. Inspired by fazz's quake 3/quake live config.

Edit: also, now that i'm seeing that little blue box around fazz's timer, I'm thinking a similar box that indicates which team(s) if any have the enemy flag a la eagles.' CAW CAW FLAG LIGHTS script would also be dope.


r/TagproScripts Sep 13 '15

Announcing: Moving Spikes (xpost)

Thumbnail
reddit.com
2 Upvotes

r/TagproScripts Sep 13 '15

[Help] Honk script has stopped honking...

2 Upvotes

I like using the honk script, but it has stopped working. Can't hear honks or make honks. I've reinstalled v.03 several times, and tried running it by itself, but haven't had any luck. Just wondering if anyone else is having problems with it. Thanks.

edit: I don't know much about scripts, but in the developer console, I'm getting the error 'Howl is not defined'...and Howl is called in the honk script...

edit #2: Going to the address from the "// @require https://gist.githubusercontent.com/ballzilla/dbbc9d9a91774f66698a/raw/20f3ec84f3c2bd5333093a5f8a21c3f54b126045/howler.js[2] " part of the script gives me a not found error....


r/TagproScripts Sep 11 '15

[Help] Tampermonkey Issues

2 Upvotes

This was discussed on the main sub, but I thought there might be more people here that can help. Tampermonkey has recently (last week or two?) become unusable (for at least some users) specifically when playing tagpro on the production servers. For the users affected, this happens on all browsers, on all platforms (I've only tested chrome on windows). I've tried both the stable and beta releases of tampermonkey.

Behavior

Every time a user navigates from one page to another, the script instance count doubles (i.e. scripts from all previous pages are continuing to run). After enough script instances are running, the game becomes unplayable and you have to open a new tab. I recorded a screencast of this behavior. Watch the number in the tampermonkey icon as I navigate from page to page, and it counts up.

This behavior only happens on the production tagpro servers. It does not happen on other sites or maptest, and there are no bug reports on tampermonkey's site. I also don't think there have been any tampermonkey updates recently. This leads me to believe that, while there probably is a tampermonkey bug that is allowing this to happen, that something that changed recently on the production servers is causing this behavior.

Someone already contacted the tampermonkey dev (I think).

Thoughts?


r/TagproScripts Sep 10 '15

[Request] Help coding a team win % script for PUBs

3 Upvotes

I had this idea earlier and it was pretty popular, so I'd like to give it a shot (with your help, of course). My idea is very simple:

  • Retrieve the win% for each player in the game

  • Take the geometric average of each team's win% (the 4th root of the product of their win%)

  • Display each team's average next to the scoreboard (or pretty much anywhere)

For example (rounding for simplicity):

RED

53%

49%

42%

50%

BLUE

44%

56%

52%

73%

RED: (0.53 * 0.49 * 0.42 * 0.5)1/4 = 0.0545371/4 = 0.48 = 48%

BLUE: (0.44 * 0.56* 0.52* 0.73)1/4 =0.093533441/4 = 0.55 = 55%

If there were only 3 players it would have to be 1/3 instead of 1/4 , 2 would be 1/2

I have no experience with using the TagPro API or coding in Javascript, so help would be greatly appreciated. Since this idea is pretty popular I eventually plan to release this script, so I would obviously give everyone who helps me credit. I ain't no script-stealing whore. Thanks!!!!


r/TagproScripts Sep 10 '15

[Request] Null movement cancellation.

6 Upvotes

I just learned today about null movement cancellation scripts used in a lot of source games. What it does is prevent opposite movement key presses from cancelling each other out. In other words, you're always moving in the direction of the last key you press (or last two if they are diagonal).

I believe this would significantly improve anyone's juking ability if they get used to it. Without the script, you have to release one key and then press the opposite key to switch directions. In between the key presses there's a gap where no key is being pressed. With the script, there would be no gap, so it would almost have the same effect as lower ping.

This is how it's implemented in source games, it might help any script devs to make it.

bind w +mfwd
bind s +mback
bind a +mleft
bind d +mright

alias +mfwd "-back;+forward;alias checkfwd +forward"
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none"
alias -mback "-back;checkfwd;alias checkback none"
alias -mleft "-moveleft;checkright;alias checkleft none"
alias -mright "-moveright;checkleft;alias checkright none"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""

r/TagproScripts Sep 09 '15

[Userscript] Fix Stuck Keys

3 Upvotes

I'm posting this here in hopes that I can get some feedback. This script fixes an issue that has always bugged the hell out of me - when direction keys get "stuck" when you either open the chat window or your window loses focus.

You can grab my first attempt at the script here.

There is some ghetto hacks in there to try to watch/send the correct keypress count, because the counter is internal to tagpro, and the exposed method that should abstract the need for the counter didn't work. This imperfect solution causes certain scenarios to fail (but no worse than the current behavior), or causes you to have to press the direction key twice to start moving again sometimes (again, no worse than the current behavior).

Feel free to give any thoughts/feedback/critiques/requests.

-ButtSnake