[Userscript] No-Script Scripts

Here's a few scripts to use with the no-script option in groups. They should automatically enable only in no-script games so you won't have to worry about turning them on/off yourself.

They're all pretty bare bones so settings and instructions can be found each script. Let me know if you have any questions.

Key Remapper

Lets you remap keys to other keys. For example, IJKL can be remapped to WASD and used for movement.

Macros

Map specific keys to chat messages. You can create macros that chat to everyone, just your team, or to your group. Key used for macros are not affected by the key remapper script.

Scoreboard Highlighter

Highlights the highest value per column on the scoreboard (like the Scoreboard Enhancer script). It's color-coded by team, you can change the colors inside the script. Screenshot. You may notice the colors sort of flashing if you leave the scoreboard open for long periods of time. Unfortunately, that's a side effect I can't get around. You can try raising the value of the refreshRate variable, but above 60 it likely won't make much of a difference.

Team Stats

Adds a second table to the scoreboard for total stats across each team. Pretty the exact same thing as u/thevdude's script found here but for no-script groups.

Posted Aug 9, 2017, 11:55 PM UTC · edited

4962
StamratMr. Hat•

get this man on the dev team

24
BanzaiOnTagProI get 30 fps now. pls stop yelling at me•

In title? Not worth it. In action? Absolutely.

Here's how I see it:

As a peace offering, the devs bend to the will of the askreddit mods, apologizing profusely. The devs placate the mods as best they can. Swallowing his pride, Lucky remarks that it is understandable that nothing will change. But as a token of his good will, he explains that the tagpro community has raised enough money to provide all 45 askreddit mods with some of the newest must-haves in IoT technology.

Satisfied that they've really put the evil tagpro community in its place, the mods are quite pleased with themselves and their new toys. That is, until their light bulbs all go dark, their Alexas and Echo's start playing this and finally, the piece-de-resistance: sb-1's army of knife-wielding Roombas chase the mods from their homes.

This leaves askreddit unmonitored and essentially ungoverned for 24-48 hours as the mods flee for their lives. (Until the roombas run out of juice.) During that time, we escalate from a vote brigade to a full-on voting field army.

I mean, I'm a big sb-1 fan. So you could make him a dev as well. I hate seeing untapped potential.

10
[deleted]•

[deleted]

1
ElbwanaGoofy Goober || Arc <3•

That was almost a real plan until it took a turn for the dank

1
DatBlizzardOPSome Ball -1•

I'm not really qualified enough. Plus it's probably more of a commitment then I'd be up for.

6
StamratMr. Hat•

I'm not really qualified enough.

You've done more for the game than the devs over the past ~2 years.

it's probably more of a commitment then I'd be up for

I've been given to understand that it requires 0 commitment.

17
DatBlizzardOPSome Ball -1•

I've made a lot of scripts but the bar for scripts is much lower. If there's bugs I can take as long as I need to fix them, I only care about compatibility with Chrome, and sometimes I use things only the newest browser versions have without any need for backwards compatibility.

I'm good at hacking things together that usually work. But for development you'd want someone more knowledgable with better CS fundamentals who can write cleaner and smarter code than I do. u/snaps_ is a good example of someone significantly more capable than myself. If he had the time and inclination (and the current devs wanted him) I think he'd be a great choice.

17
snaps_snaps||radius•

Thanks, that's nice of you to say.

2
[deleted]•

[deleted]

1
slam-•

Is there any way you would be able to make this script work? I'm not sure if it's possible but it's nice to see the timers during the games especially in competitive: https://gist.github.com/SomeBall-1/14fb11c9f0257a5c29fa/raw/TagPro%20Timers.user.js

12
DatBlizzardOPSome Ball -1•

Sure thing, give me a few minutes.

Completely unrelated, does anyone have the link for NLTP signups? I think it's about time I got back in there.

16
ProfessorTag-•

Do it! I'm playing my first season, it's great.

7
DatBlizzardOPSome Ball -1•

I was just joking. I got banned for I think a season a while back for using timers.

Unfortunately, league things take up more time than I'm interested in giving.

7
qbsyquibble•
5
TheMy5teryManMy5teryMan•

wait you just reposted what u/buckeyeleaves posted

-13
RonSpawnsonTPRonSpawnson || The Wild Pings•

Nah, this one is timers

3
wrigsamWRIG || Origin || boop•

Awesome as always, sb-1. Any way you can get this script to work? It's just a GUI thing that makes the game look better for me.

https://gist.github.com/SomeBall-1/14fb11c9f0257a5c29fa

edit: mfw I realize I made the same joke as slam a couple minutes later

9
BuckeyeLeavesBALLDON'TLIE | ALL CAPS•

Is there any way you would be able to make this script work? I'm not sure if it's possible but it's nice to see the team stats after games especially in competitive: https://pastebin.com/c3qXbfXC

7
DatBlizzardOPSome Ball -1•

Yea I can make that one later.

2
DatBlizzardOPSome Ball -1•

I added it to the OP.

2
TheMy5teryManMy5teryMan•

well this just ruined the whole point of no script

6
DatBlizzardOPSome Ball -1•

Nah these scripts aren't doing anything that no-script is there to prevent.

12
hoogstraHoog | OLTP Commissioner•

What does no-script prevent?

5
DatBlizzardOPSome Ball -1•

No-script blocks access to the tagpro, PIXI, and io objects. The tagpro object has information for pretty much everything happening in the game, PIXI is the library the game uses to draw on the screen, and socket.io is the library the client uses to communicate with the server.

With all these blocked, no-script is essentially preventing a script from knowing current values in the game (does anyone have the flag, which tiles are where, etc.) receiving updates on what happens in a game (powerup taken, player keypresses, etc.) and from being able to draw things relative to the map (timers on specific tiles, something that tracks a ball, etc.).

14
hoogstraHoog | OLTP Commissioner•

So the scoreboard highlighter is just looking at the values displayed in the table and highlighting the largest ones?

Thanks for your answer, you explained it quite well.

2
TheMy5teryManMy5teryMan•

scripts

3
bsa86Berlin Ball•

Dummy question,but do these scripts mean that someone could bypass the no-script with a timer script?

4
DatBlizzardOPSome Ball -1•

No.

2
bsa86Berlin Ball•

How come? What is it about the functions of the scripts that you've produced here that mean these can bypass the no script filter that a bot wouldn't be able to?

2
tottinhosFTotti10•

as shown below, people still have the ability to manually set timers. Although im not sure why someone would go through the effort rather than just remembering a number

1
nabbynznabby • diameter•

Nice workaround. Maybe add something like if ($('#options').is(':visible') && ...) so it only does the updating if the scoreboard is open?

5
DatBlizzardOPSome Ball -1•

Good idea.

3
furytagproFURY. // Radius•

Now this may not be your field of expertise at all, but is it possible to get the replays extension to work for the no-script/extension groups?

5
DatBlizzardOPSome Ball -1•
6
furytagproFURY. // Radius•

I must've missed that. Thanks for the response, that's a bummer

3
woah_m8Juan Pelota•

It would be great if it was possible that these scripts were added to the actual game.

4
[deleted]•

[deleted]

2
DatBlizzardOPSome Ball -1•

I can place a timer in the middle of the screen, but there's no way to accurately check how much time is left in a game. I can think of a way that might work if you're there when the game starts, but I'm not sure if it's reliable.

What you could do is have a timer on the ball that's completely independent of the game clock, just counts from 60 to 0 and back around again starting whenever the page loads. But then it'd be completely out of sync with the game clock and I think that'd get too confusing. I guess the user could always just manually sync it up with the game clock, that's another option. Sounds annoying as well though.

2
[deleted]•

[deleted]

3
DatBlizzardOPSome Ball -1•

Ok this should do what you want: https://gist.github.com/SomeBall-1/6d0c0bfbc381c74b11a6a43cdb5369dc.

You'll need to click on it to start the timer. After a click, the timer starts at the top of 59 seconds meaning it sets the time to 59 seconds and then 1 second later it will change to 58. So you'll want to click right at the transition from 00 to 59.

Oddly, I noticed at the start of the game it transitions from 01 directly to 59 so for the start click right at that time change. You can adjust throughout the game at the top of the minute.

5
[deleted]•

[deleted]

4
[deleted]•

[deleted]

4
stirusRon Hextball // TC Jukes // TLOP•

What you're doing for the community is great, but maybe consider taking this script and explanation down. If I'm not wrong, couldn't someone take this and easily turn it into more of a malicious timer script?

Pull the map name from scoreboard, display a small grid/GUI somewhere based on the map, and have key presses premapped to certain pups. So like you have 4 keys for timers. It sees you're playing pilot, so the gui gives a spot for left pup, mid, and right. Then it automatically maps keys H to left, J to mid, and L to right. As you see a pup get taken, hit corresponding key and boom timers. Could probably detect audio files being triggered too if you wanted to try and get automatic timing. You'd still have to manually map them but the timing would become as accurate as old timers.

2
DatBlizzardOPSome Ball -1•

Yea the audio trigger is what I had in mind for being automatic when the game started, but that starts to get a bit sketchy and could (should) get blocked in the future.

But why do you want me to take my script and explanation down when you've just written a much more detailed method of creating timers yourself?

5
stirusRon Hextball // TC Jukes // TLOP•

Just this one not all of them! Eh, anyone who can actually do what I described is smart enough to take your script and do it themselves without me giving instructions. Plus obviously I'll take my comment down with yours.

ON TOP of all that, this specific script already is disallowed in competitive so it's essentially useless you're playing a casual game with the no script option.

1
tottinhosFTotti10•

welp back to square one. Thanks everyone!

1
[deleted]•

[deleted]

1
FrothyMeFrothy•

Is there any way to get the Tagpro Poker Chip Spin script working with it?

1
DatBlizzardOPSome Ball -1•

No, there's no way to know the ball's rotation. You'll need to use a texture pack with the poker chip drawn on the ball and turn on the the ball rotate that's on your profile settings page.

6
FrothyMeFrothy•

Ok, thanks for the response! :)

1
ajcantouchthis•

Send me your tiles and poker chip overlay on gm. I'll fix it for you.

3
ItsFroce.•

Could you make nabby's texture manager work? Or is it not affected by the toggle in groups anyway?

1
DatBlizzardOPSome Ball -1•

I don't know what that one does but texture packs are built-in to the game now so do you still need a texture pack script? Have you tried asking nabby since it's his script?

2
ItsFroce.•

It has much more graphic options than just texture packs. i think it's this one that has all the features.

1
DatBlizzardOPSome Ball -1•

Looks like you can do some of those things but not most of them, at least going off the description at the top of that script. But again, have you asked nabby, it's his script?

2
ItsFroce.•

no

1
Jim_JimsonJim Jimson•

I presume the millisecond script should also be able to function in the no-script mode (I'm not on my computer atm, but it's an old one of yours that displays the time to the nearest millisecond)

If it's not a great effort, I'd definitely appreciate an update for that's one.

1
DatBlizzardOPSome Ball -1•

Millisecond script won't work in no-script mode because there's no way to modify drawing objects.

3
Jim_JimsonJim Jimson•

Ah, shame.

3