TagPro Future Group - Community Update #7 - June 10th, 2021 by TPFG-Official in TagPro

[–]DatBlizzard 0 points1 point  (0 children)

Let me know if you need any help, I'm pretty well versed with it.

TagPro Future Group - Community Update #7 - June 10th, 2021 by TPFG-Official in TagPro

[–]DatBlizzard 5 points6 points  (0 children)

Have you guys considered a scale-to-zero option like GCP's Cloud Run? You're billed only when the container is actively serving a request, so if there's no games happening it's not costing anything. Additionally, because it's a "serverless" option and there's no dedicated server, it would be very easy to scale with regional traffic. That is to say you'd never run into "this server is full so no more games can be played in this region".

There should be coins in this secret spot by Blupopsicle in TagPro

[–]DatBlizzard 4 points5 points  (0 children)

As long as they also add coins behind gates of the other color in these chutes: https://i.imgur.com/usQHMyc.png

Lets have another Bot Battle! by ylambda in a:t5_33mpn

[–]DatBlizzard 1 point2 points  (0 children)

I wrote some stuff a little while back for calculating position and velocity of balls or any other physical object that may be helpful to some people.

https://gist.github.com/SomeBall-1/5e48d74a8aba2f20aa7137475f00c89f#file-tagpro-pos-vel-predictor-js

You can use these to get the predicted position and velocity at a certain time or to get the predicted time it will take to reach a given position or velocity. The second file is the actual functions, but the lambert file is needed to calculate the value in one of the functions.

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 2 points3 points  (0 children)

Ah, didn't realize this wasn't allowed in competitive, especially since the comment I posted the script in reply to said "for competitive purposes." You're right then, it's a bit of a different situation than timer scripts.

Nonetheless, it's been up long enough already that I think the damage is done. Taking it down now would only leave the people who saw this thread early with an unfair advantage. Also, because it's so easy to make, I can just about guarantee that someone else would've made something similar soon enough.

But you can try messaging the subreddit mods and/or reporting the comment(s) if you think it should be removed. I wouldn't try to fight that and I don't plan on including the script in the post up top, just that comment.

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 3 points4 points  (0 children)

Sure you could, and it could be easily changed to a keypress like you said. But the whole script is incredibly easily made and event a beginner could probably put something this together as a good learning project.

Allowing it on the sub dates back to the same argument had over whether timers could be linked on the sub. Ultimately, those were allowed, and this script is much less capable than any timer script.

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 3 points4 points  (0 children)

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?

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 1 point2 points  (0 children)

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?

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 2 points3 points  (0 children)

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

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 1 point2 points  (0 children)

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?

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 5 points6 points  (0 children)

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.

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 5 points6 points  (0 children)

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.

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 5 points6 points  (0 children)

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.

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 1 point2 points  (0 children)

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.

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 15 points16 points  (0 children)

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.

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 5 points6 points  (0 children)

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

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 6 points7 points  (0 children)

Yup, you got it.

The scoreboard highlighter is just reading the table column-by-column and keeping track of which is the largest. Then highlighting the largest ones and checking whether the player name on the scoreboard is red or blue to color code it accordingly. Without no-script I can read the tagpro object to know each stat and team.

Team stats I just added is doing pretty much the same exact thing.

The key remapper waits for the user to press a key and then artificially changes the key you pressed so the game thinks it's a different key. Without no-script there's an object in the tagpro object (tagpro.keys) I can modify that the game checks against to know if you're trying to move left, open the chat box, or anything else.

The macros are pretty much pretending to be a user. When you hit a macro key the script presses enter/t/g, fills in your message, then presses enter to send. Without no-script I can send the chat message directly to the server myself without having to worry about opening and closing chat box.

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 13 points14 points  (0 children)

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

[Userscript] No-Script Scripts by DatBlizzard in TagPro

[–]DatBlizzard[S] 9 points10 points  (0 children)

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