r/TagproScripts • • Apr 25 '15

Request Fufilled [Request] Ball Stabilizer

5 Upvotes

Hiya, requesting a script that on the press of a button, your ball will stabilize on the tile it is currently most on, ie: it would dead center and not move from that tile's center point, so say if you are surrounded by enemy gates, see SNES, you would stay alive.


r/TagproScripts • • Apr 05 '15

Userscript Update Yet another update as Random Flairs now supports random carrots!

Thumbnail
github.com
5 Upvotes

r/TagproScripts • • Feb 21 '15

[Request] Non-texture pack poker chip spin

5 Upvotes

I've already got a texture pack and I'd like the spin too please.


r/TagproScripts • • Sep 10 '15

[Request] Null movement cancellation.

5 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 • • Aug 16 '18

TPUL, the TagPro Userscript Library

5 Upvotes

Adding user-editable options to your script is a mess. Most userscript authors make the users edit the script's code directly, which is far from user-friendly and will reset after every script update. Some scripts place hard-to-find buttons all over the place on the homepage or in-game.

That's why I created TPUL, which (among other things) lets a userscript author create a configuration popup in just a few lines. The styling, placing of buttons and storing of the options is all done by TPUL, with a consistent experience for all scripts that use it.

Preview images (this took about 20 lines of code)

Other features

  • Create buttons on the scoreboard/on top of the page (depending on the context).

  • Create configuration windows, with all kinds of variables, layout, tabs.. (it'll also create a button that opens the config)

  • Request a profile's id/info/settings/stats and update the settings from anywhere.

  • Built-in Rolling Chat, mainly targeted at being able to roll while a config-window is open.

Links

To use this library, include these lines in your userscripts' metadata block:

// @require      https://greasyfork.org/scripts/371240/code/TagPro%20Userscript%20Library.js
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_xmlhttpRequest
// @connect      koalabeast.com

r/TagproScripts • • Sep 08 '15

[Request] Make Browncoat's Script reference a random (from a set list) PNG for "spinOverlay"

4 Upvotes
        // Set rotation
        player.sprites.actualBall.rotation = player.angle;
    } else if (spinType == SpinType.OVERLAY) {
        if (!player.sprites.spinOverlay) {
            player.sprites.spinOverlay = new PIXI.Sprite(spinOverlay);
            player.sprites.ball.addChild(player.sprites.spinOverlay);
            player.sprites.spinOverlay.anchor.x = 0.5;
            player.sprites.spinOverlay.anchor.y = 0.5;
            player.sprites.spinOverlay.x = 20;
            player.sprites.spinOverlay.y = 20;
        }
        player.sprites.spinOverlay.rotation = player.angle;
    }

    defaultUpdatePlayerSpritePosition(player);
};

I think this where BrownCoat's Script decides whether to reference the imgur link.

Would it be possible to assign a random and unique imgur link to each ball on the field?

Edit: Browncoat's Script post


r/TagproScripts • • Aug 26 '15

Updated rules on userscripts!

Thumbnail
reddit.com
3 Upvotes

r/TagproScripts • • Sep 08 '15

[Request] Add a 'shine.png' to the TagPro Replay's Extension.

3 Upvotes

Browncoat's Script lets you assign a 'shine.png' that is a 40x40 PNG that sits over the top of all balls in the game. If your ball spins, the Shine stays fixed in position.

I would love to have this option in ballparts's Recording Script. I have no idea how to make it happen though.


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 07 '15

[TOMT] Looking for a script I remember from ages ago to help with mapmaking -- ball follows mouse pointer

4 Upvotes

Yo,

I remember seeing a script aaaaaaaages ago, where you could toggle a new tool that would have your ball follow your cursor upon left-click.

I'm wondering if anyone remembers it or knows where to find it; it's not on the wiki and I couldn't find it after searching for it on /r/TagPro (using keywords like mouse, cursor, etc.)

If anyone knows where to find it, or can redirect me to the script, that'd be great.

Cheers :)


r/TagproScripts • • Sep 06 '15

How do I remove particles from BrownCoat's Usercript?

2 Upvotes

http://pastebin.com/raw.php?i=TeBiE1tf

I'm using this one.

I've tried to do it by myself but I have no idea what I'm doing.

thanks in advance!


r/TagproScripts • • Aug 26 '15

[Request] Is this possible?

3 Upvotes

I would like to be able to do all of these things at once:

  • Put flair in the center of the balls.

  • Make flair the size of the balls. I would like to do this by referencing a larger PNG file instead of 'expanding' the current tiny PNG.

  • Add spin to the flair and the ball, but separately. In other words, the ball spins at one rate and the flair spins at another rate.

  • Overlay each ball with a PNG that is 40x40 pixels.

I've been told that Browncoat's Mod does most of these things, but I really, really want to make flair bigger.

Any ideas?


r/TagproScripts • • Sep 09 '15

Fully Compliant Name Changer. Change your name to your return count at the press of a button! (xpost)

Thumbnail
reddit.com
4 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 • • Mar 26 '16

[Help] Userscript works on one server but not another, no idea why.

2 Upvotes

I'm using an old script I found that normally puts a number next to your ball after you pick up a powerup showing how much time it has left before it runs out. Also puts a number next to other balls that you see pick up the powerup. It's called "TagPro Timers (Pubs Only)" by CumFlakes. Pastebin of it here.

For some reason it does exactly what I want it to do when I'm on Pi, but it doesn't do anything when I'm on sphere. I disabled all my other scripts and it still is working on Pi but not sphere.

I don't know much about writing scripts, but I tried adding // @include http://tagpro-sphere.koalabeast.com:* to the top part and it didn't change anything. Also, chrome thinks the script is running during the games (there's a little 1 on the tampermonkey icon) but no numbers are appearing.

Any help would be appreciated.


r/TagproScripts • • Mar 26 '17

Userscript All Cocoabot/CocoaTools Botmaking/Helper scripts are released open-source now.

Thumbnail
github.com
1 Upvotes

r/TagproScripts • • Sep 05 '15

[Request] A script that replaces the flair texture, but nothing else.

4 Upvotes

I use Dr.Holmes & ballparts' texture pack replacer, which I find has less bugs and a cleaner interface than the tagpromods extension. One disadvantage of Dr. Holmes' is that it can't replace the flair skin.

Could someone make a script that allows a custom flair skin?


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 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


r/TagproScripts • • Jun 27 '16

[REQUEST] Modular Macros

1 Upvotes

I had an idea for a macro script that would make it easier to use macros in a small section of the keyboard (e.g if you want tu use just numpad). How it would work is that each key would have a certain macro, and you could hit them in order, then hit enter and it would send it as a macro (e.g. if you have 4 as left, 9 as TP and 7 as I got, you'd hit 497, then enter. Could anyone make a script that could do that?

Extra features that may not be easy to implement but would be cool:

  • Show message while being typed in the same area as chat, but not actually in the chat box (so you can still move and shit)

  • (this one might be straight up impossible) Have it parse the sentence correctly, as in 497 would type "I got TP left", but just 47 would type "I'm left"


r/TagproScripts • • Apr 22 '15

I'm not the original author but I updated Some Ball -1's End of Game Timer userscript so that it counts down from 25 seconds rather than 20 (introduced by Tagpro v3.2)

5 Upvotes

Not sure if I'm allowed to make changes to userscripts and post them here but here is the link to the newly updated userscript. Before v3.2, it counted down from 20 seconds but now it counts down from 25.


r/TagproScripts • • Apr 27 '15

Discussion Should I use Pastebin or Github for my scripts? And how would you make your script auto-update?

3 Upvotes

Pastebin or Github? Can you not auto-update from Pastebin? I don't even understand Github, it's a weird interface imo. Pastebin you can click one button and its copied; I understand its down to my own preference, but witch one(or another similar site) would you recommend?

How would I go about auto-updating my script? Is it just the Update URL?

I have one more question, one that would be the most helpful. How would I make it so that when the user presses Raw it automatically asks if you want to install the script?

I'll add how to auto-update scripts into the wiki; thanks!


r/TagproScripts • • Apr 19 '15

Userscript TagPro Team Switcher

5 Upvotes

Switch teams quickly, either to the other team or to the other team and back automatically. Initiate through icons on the top-right of the screen or with configurable shortcut keys (which are off by default).

Direct download here.

Code here.


r/TagproScripts • • Apr 20 '15

[Request] Can someone fix the bug in beachballs.

3 Upvotes

So theres a bug with the beachballs spin script where balls stay on the screen, and the name stays on the scoreboard when someone leaves or refreshes. Has this been fixed already? AFAIK this is the latest script http://pastebin.com/FyvGCD9t


r/TagproScripts • • Dec 27 '15

Testing scripts

3 Upvotes

Hi guys, I'm trying to work on a script just to allow for volume control. How are you guys testing your scripts out? Is there anyway just to start up a private game just to mess around in?