A couple scripts to help with the event

First one is more for people who are having difficulty with the jump mechanics. If you feel comfortable jumping, this probably isn't for you. This adds a jump meter above your ball. When you're able to double jump is dictated by your vertical velocity. If you're falling too fast or moving upwards too fast, you won't be able to do a second jump. It changes color indicating when you can (green) and cannot (red) jump. It also shrinks in size as your speed changes so you can get an idea of how long you have left until you won't be able to (or will be able to if moving up) jump.

Example: http://streamable.com/fl1q8
Script: https://gist.github.com/SomeBall-1/ceafb125c9db7ba1467592250dc6b9f2
Install Link: https://gist.github.com/SomeBall-1/ceafb125c9db7ba1467592250dc6b9f2/raw/Jump%2520Meter.user.js

The jump meter will only appear when pressing alt/option. You can press shift+alt to make it stay on. Pressing alt again will turn it back off.

There's 2 settings inside to turn on/off the text and to turn on/off the tile highlighting. The text can be helpful in finding the star (it's at x=21, y=21) and for determining if you can jump again (you can only jump if your y-velocity is between -2 and 2, inclusive). The tile highlighting is sometimes useful to gauge your movement when you're floating out in the void. Both are on by default.


The second script is for practicing the top part of the map. This should be helpful for anyone struggling with the mars balls to the star flair. First, you'll need the following script:

Script: https://gist.github.com/SomeBall-1/d5bbd9b05a7f0eb8c1c60ffb286e1d33
Install Link: https://gist.github.com/SomeBall-1/d5bbd9b05a7f0eb8c1c60ffb286e1d33/raw/Tower%2520Map%2520Editor.user.js

Next, head on over to any of NewCompte's servers and create a group to get started: (1), (2), (3), or (4). Your ping does not matter so any of the servers will work for anyone, you're best off picking the least crowded one.

In your group, put yourself on the red team and in the Game Settings enter 14350 in the text area under the Map section. The dropdown should already be on maps.jukejuice.com, leave it on this. Go ahead and launch the game.

Once the game starts, you'll find yourself at the bottom of the mars ball area. Besides normal movement, you can ctrl+click anywhere on the map to teleport to that spot. Spectator zoom controls work so you can zoom in/out with the - and + keys, pressing 0 resets the zoom. Also, holding shift while moving will let you move through anything but walls.

There's flags placed at certain points on the map so you can practice with and without it (when you have the flag team tiles don't affect you so movement is a bit harder). At any point you can also give/remove the flag or any powerups from yourself at the top of the screen by pressing the Player Options button.

The floating effect occurs whenever you are holding the neutral flag. In place of the star flair, there's a button you can hit that'll reset you if you manage to hit it while holding the neutral flag.

To get portals to work, you'll need to drag and drop the map json onto the screen after the game starts. Download the json here.

Also, if you find the mars balls end up too far out of sync or get stuck, press Esc to open the menu and click the Reset Marsballs button to fix them.


That's everything. Both scripts are kind of bastardizations of previous scripts of mine. So if you're looking at the code or even some of the stuff that shows up on the practice map, you'll see things that's not used anywhere.

Let me know if you have any issues. I'll do what I can, but the scripts are really only useful for a couple days so I'm not planning on putting in a bunch of time to make them perfect.

Posted Jan 28, 2017, 5:54 PM UTC

2231
DaEvil1DaEvil1•

Did you just package an entire duplicate of the game in that script lol

9
DatBlizzardOPSome Ball -1•

I made a sort-of offline tagpro a while back. Pretty much the game handles the drawing aspects and the script ignores server input and takes over all the physics. For this script I hard-coded a bunch of the tower stuff and put it into that script.

8
DaEvil1DaEvil1•

Yeah I remember that. When I saw it was 2000+ lines and looked at what it did, I figured you did something like that. Very nice work!

3
MultiMediaWillJuke King - MVP 90% of the time•

Can you post the triple jump script too pls.

3
DatBlizzardOPSome Ball -1•

Idk what that is.

3
MultiMediaWillJuke King - MVP 90% of the time•

Last year someone was able to exploit the game with a script to allow you triple jump consistently. I figured you'd have it.

2
HelplessMooseHelplesMoose (please raise the limit on nick length) // Chord•

Surely that counts as cheating?

3
MultiMediaWillJuke King - MVP 90% of the time•

It is. Was done on private servers.

1
catalyst518Catalyst - DoF | LSP | GB | BC | Tears | FotP | Protag | 21JS•

I'd also recommend my viewport expander script. It helps plan your jumps and boosts a little if you have the resolution for it.

2
orlandoduranlighght // Tears•

Just installed it and am having trouble -- even with all other scripts disabled. The viewport expansion functions fine, but everything is greyed over, rather than just the parts of the map outside my field of view. Any idea how I might fix this? I can play with the alpha at 0, but I'd like to be able to differentiate between the parts of the map that are updating and the parts that are not.

1
catalyst518Catalyst - DoF | LSP | GB | BC | Tears | FotP | Protag | 21JS•

That's strange. I've never heard of that before. I'm assuming you didn't touch anything else in the code besides flipping the spec_only variable to false. Are you using Chrome and Windows? If not, perhaps there is something specific in my code that doesn't apply.

1
orlandoduranlighght // Tears•

chrome and macOS. yeah didn't touch anything else. tried a clean install as well. o well! if you think of anything hmu, otherwise no biggie.

1
9bob99bob9 // Centra // 171°•

Can i get the entire map please?

1
DatBlizzardOPSome Ball -1•

Here's a version of the full map I'm pretty sure should work with the script above: http://maps.jukejuice.com/save/14351 (some of the buttons at the button may not work).

And here's just the full map, no mars balls or floaty top: http://maps.jukejuice.com/save/14352.

Both have buttons in place of the 4 flair spots.

1
flecksFLOWERFIST•

Thanks. I tried to play on the maptest server with your script, however, my ball keeps sticking at the starting port, I can't move, teleport, etc - anything I can do?

1
DatBlizzardOPSome Ball -1•

Did you refresh? It only works when starting a new game.

1
thedandandandandandandandan ❤ radius ❤ 360°•

i found that if i put the waiting time to "instant" or if i join a game that's already in progress, that happens. when i put the waiting time to "2 seconds" that problem was gone.

1
EphewSeekayEphewSeakay//RADIUS•

Dandandandan <3

1
snaps_snaps||radius•

I'm having the same issue as u/flecks. I start the game and my ball is stuck at the starting location past the time the game actually starts. I added some tracing to the script and it looks like the callback to tagpro.ready() isn't getting called. This is on Chrome Version 57.0.2986.0 dev (64-bit) on Ubuntu 16.04.

Side note: anyone else getting a ton of console spam from tagpro.updateSounds not being found? I just replaced it with some no-op function to prevent thousands of messages appearing.

1
DatBlizzardOPSome Ball -1•

The function passed to tagpro.ready isn't getting called? That's weird. If you change it to tagpro.ready.after is it any better? Worst case I can just add a button or put it in a setTimeout.

And NewCompte's server uses some sound library that the regular servers don't, I think it's called howler. It's for directional sound so you can sort of tell where a bomb went off or a pop occurred (at least if you have headphones on). I'm on stable chrome v55 and I get a couple messages just at the start about various audio related things being deprecated in v56. I'm guessing the console spam is related to that. I imagine it's the same case playing any game on NewCompte's server, with or without the script?

If you want to kill sound while running the script. ctrl+f for the line soundfn = fn; and set soundfn = function() {}; instead.

1
thedandandandandandandandan ❤ radius ❤ 360°•

i found that if i put the waiting time to "instant" or if i join a game that's already in progress, that happens. when i put the waiting time to "2 seconds" that problem was gone.

1
[deleted]•

[deleted]

1
cyclictpFormerly 1618 \\ Centra \\ Apparently a RFTINDPWSTCF Winner?•

The second script is not working at all for me. I can't move my ball at all when entering a new game and waiting the pregame time. In addition, there aren't any buttons I can click such as "Player Options".

Here's a screenshot: http://imgur.com/a/8dugS

I'm on Chrome for Mac, if that helps.

1
DatBlizzardOPSome Ball -1•

A couple other people said they had the same issue, look at some of the other comments on this post about changing the waiting time to a couple seconds. Changing your tamper monkey script order may help as well. If not, I'll just add a button you can press to start it.

2
cyclictpFormerly 1618 \\ Centra \\ Apparently a RFTINDPWSTCF Winner?•

I turned off all of my other scripts in the screenshot. My waiting time was set to 5 seconds in this case, so I think it's a different issue.

1
DatBlizzardOPSome Ball -1•

Here's a version with a button in the top left. Once the game starts, click it and wait a second and it should start up. You can probably refresh and click the button as well if need be. https://gist.github.com/SomeBall-1/32dedfef5488865dc6a01e0841a1ae23

2
cyclictpFormerly 1618 \\ Centra \\ Apparently a RFTINDPWSTCF Winner?•

It mostly works, although I can't drag-and-drop a .json in. Probably my Mac acting up.

EDIT: OK, if I drop in a .json and then refresh, it works with one exception: the boosts don't work.`

1