The Perfect Tower II

The Perfect Tower II

89 ratings
Fast Autominer V2
By d0sboots
This is about as fast as autominers get - it is throttled by the game's ability to create floating text boxes and other graphical effects. It only takes 9 lines to import, but they're very complicated lines. I include a link to the original source code, as well as many other scripts and utilities for The Perfect Tower II, which live on GitHub.
5
4
2
   
Award
Favorite
Favorited
Unfavorite
Import Code
Be sure to triple-click to get the whole thing!

DUQwUy5BdXRvbWluZXICAAAABndha2V1cAlvcGVuLm1pbmUBAAAAEnRvd24ud2luZG93Lmlzb3Blbghjb25zdGFudAQEbWluZQkAAAAOZ2xvYmFsLmludC5zZXQIY29uc3RhbnQECWRpZ2dlcnBvcw5hcml0aG1ldGljLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQJZGlnZ2VycG9zCGNvbnN0YW50BAErCGNvbnN0YW50AgEAAAAPZ2VuZXJpYy5leGVjdXRlDnRlcm5hcnkuc3RyaW5nDmNvbXBhcmlzb24uaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50BAlkaWdnZXJwb3MIY29uc3RhbnQEATwIY29uc3RhbnQCIwAAAAhjb25zdGFudAQNRDBTLkF1dG9taW5lcghjb25zdGFudAQADWxvY2FsLmludC5zZXQIY29uc3RhbnQEA3Bvcwt0ZXJuYXJ5LmludA5jb21wYXJpc29uLmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BANwb3MIY29uc3RhbnQEAT4IY29uc3RhbnQCAAAAAA5hcml0aG1ldGljLmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BANwb3MIY29uc3RhbnQEASsIY29uc3RhbnQCAQAAAAt0ZXJuYXJ5LmludA5jb21wYXJpc29uLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQJZGlnZ2VycG9zCGNvbnN0YW50BAI9PQhjb25zdGFudAIiAAAACGNvbnN0YW50AiEAAAALdGVybmFyeS5pbnQOY29tcGFyaXNvbi5pbnQOZ2xvYmFsLmludC5nZXQIY29uc3RhbnQECWRpZ2dlcnBvc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ANwb3MIY29uc3RhbnQEAT4IY29uc3RhbnQCKwAAAAhjb25zdGFudAIJAAAACGNvbnN0YW50AgMAAAAIY29uc3RhbnQCCQAAAA1taW5lLm5ld2xheWVyDmdlbmVyaWMuZ290b2lmCGNvbnN0YW50AgcAAAAPY29tcGFyaXNvbi5ib29sEnRvd24ud2luZG93Lmlzb3Blbghjb25zdGFudAQEbWluZQhjb25zdGFudAQBJg5jb21wYXJpc29uLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQJZGlnZ2VycG9zCGNvbnN0YW50BAE+CGNvbnN0YW50AgAAAAAMZ2xvYmFsLnVuc2V0CGNvbnN0YW50BAlkaWdnZXJwb3M=
How to use
The script will activate automatically when you enter the mine - no impulse key required! You do need to have the AI enabled with F4, of course.

This script mines across all tabs, at 16x speed (i.e. all squares simultaneously). It takes 181 frames, or ~1.5 seconds to mine 10 layers * 12 tabs at the default 120 FPS (with vsync disabled). However, the amount of floating text drops the framerate much lower, such that it takes longer.

If you have the 2nd floor of the mine from MT Perks, being on the 2nd floor will cut out the floating text while still allowing mining, making the script go much faster.

Using this with turbo exec will take the roughly the same amount of real time, but cause the game to lag until the mining is finished.
Source Code and More Good Things
The source code for this is at https://github.com/d0sboots/PerfectTower. It was written in the external editor, which I find much more usable than the built-in editor - it supports actually using the keyboard, labels for gotos, macros, and a host of other nice features.

My GitHub includes a number of other goodies, such as an auto dust-uptierer[github.com], a link to an improved version of the external editor, and more.
25 Comments
dzenly7 10 Aug @ 10:18am 
Hi! Thank you for scripts. But what about full automation without need to exit from the testing mode ? )
1 Jun, 2024 @ 2:18am 
what res is this intended for? It appears to not really function under 2K res, UI scaling or not.
Enginerd 12 Oct, 2023 @ 4:50pm 
Any chance you've made a thing that will just re-assign workers to each resource in the mine to constantly rotate through so you can keep mining all resource shards during tower testing when you get the boosts?
This only seems to work upon initial opening and doesnt re-dig when a new layer shows up, is that intended? as in its a one-time dig all fast thing?
afrogwholikesbread. 27 Jul, 2023 @ 8:23pm 
if you go into your settings, to graphics, just above accessibility you can turn the size of the floating text box to zero and remove them that way
Nightmare 19 May, 2023 @ 1:25pm 
Beautiful clicks
Bxbel 15 Jan, 2023 @ 6:21am 
bro wth did i just watch?! its so quick
Aetherswitch 24 Dec, 2022 @ 11:14am 
Phenomenal, thank you so much!
crowbarzero 8 Dec, 2022 @ 6:15am 
Lovely script!
Arcius Tiger 2 Dec, 2022 @ 2:50pm 
Thank you for saving my hands from further repetitive injury lmao. 10/10 quality of life.
veemo 19 Oct, 2022 @ 8:16am 
What in the cubos this is hella fast