Skip to content

Growtopia autofarming bot that can open multiple instances of the game at the same time.

License

Notifications You must be signed in to change notification settings

avalanced/gtautofarmer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GTAutofarmer

A multi-account autofarmer bot for Growtopia.

How to use

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.

Common problems

It doesn't punch or does it in a wrong place!

  1. Make sure you have touch controls on.
  2. Make sure your inventory is not opened, the punch button should be in the screen corner.
  3. Make sure that you keep your screen size as default, no fullscreen.

It doesn't place or does it in a wrong place!

  1. First read the previous section "It doesn't punch or does it in a wrong place!"
  2. Make sure that your chatbox shows just a single row of text.
  3. 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.
  4. 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.

I can't open multiple Growtopia windows!

  1. 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.
  2. 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.
  3. 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.

Media

Media 1

Media 2

Media 3

Media 4

How it works

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.

Details

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.

License

This project is licensed under the MIT License. See the LICENSE file for details

About

Growtopia autofarming bot that can open multiple instances of the game at the same time.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%