A multi-account autofarmer bot for Growtopia.
GTAutofarmer only works on Windows.
GTAutofarmer can open multiple instances of Growtopia at the same time and farm with them.
You can download a .exe file and launch it to start using it right away, or compile it from source.
GTAutoFarmer uses kernel32.dll
and ntdll.dll
.
- Make sure you have touch controls on.
- Make sure your inventory is not opened, the punch button should be in the screen corner.
- Make sure that you keep your screen size as default, no fullscreen.
- First read the previous section "It doesn't punch or does it in a wrong place!"
- Make sure that your chatbox shows just a single row of text.
- Make sure that the amount of hits isn't too low; you can try setting it even higher than the actual amount of hits it takes.
- If nothing else works, open an issue. Or you may try changing how often the timer(s) run in the code and compile it yourself.
- If it says "Not Responding", then your PC can't handle so many Growtopia windows opening one after another. Try opening them in smaller amounts.
- If it doesn't allow opening multiple Growtopia windows at all ("Did you unzip everything right?"), then make sure you opened this program as an administrator.
- If absolutely nothing works, you can open the windows by yourself. This program will detect already opened Growtopia instances when it launches. For that you can use Process Hacker or Process Explorer. You can get an idea on how to do it manually by reading the "How it works" page or watching a YouTube tutorial.
Growtopia uses a mutant handle called \Sessions\1\BaseNamedObjects\Growtopia
to make sure that only one instance of the game can run at a time.
So to create more than one instance of the game, we have to delete the handle.
But if the game is running and no mutant handles with that name exist, then the game crashes.
So to solve that problem, we have to temporarily suspend all of our Growtopia instances.
When a new instance of Growtopia.exe launches, we first suspend all the other instances of the game using SuspendThread
.
Then we get all the handles in the system with NtQuerySystemInformation
and filter out those that are not from the latest
Growtopia opened (the only one with these mutant handles). We get the names of the remaining handles by first duplicating
them with DuplicateHandle
so that we can retrieve information out of them with NtQueryObject
.
Then we filter out handles with incorrect names and end up with the handles that we have to delete.
To close the handles, we use DuplicateHandle
with DUPLICATE_CLOSE_SOURCE
and specify no process to duplicate to.
Once all the mutant handles are deleted, we launch a new Growtopia.exe, which will create new handles. Now we resume all the other
Growtopia.exe's with ResumeThread
and we've ended up with one more Growtopia instance open.
This project is licensed under the MIT License. See the LICENSE file for details