Some days ago, I posted some info about BotIt since I found it really interesting. Decided to learn a bit about how the code works, and after asking for some tutoring and features to Arazu (member of the developing team), he gladly created them for further improvement of the projects, and to allow the creation of this bot.
For this tutorial, I'll be using the Fate/Grand Order Botit stance, process is the same for any other Botit stance, just changing some names.
So, without further ado, lets start with setup tutorial:
Things we will need:
>Any device that can run the game
>paint.net
>The bot itself
>Less than 30 minutes in set up time (only the 1st time)
Setting up:
We decompress the .rar in the folder we want to have it. Location in itself is not important, but we have to keep track of it.
Content inside the folder should look like this:
We open BotitFGO.exe, in the window that opens, press IMG Installer . Now we should have these 2 windows:
We enter inside img folder, click on the directory and copy it.
We go back to Clipper Tool, we click on Core 1, and then Image Maker.
We copy img directory into Demo Path
And we fill the empty spaces (except Multi Image) with the following:
>Image Name: with names of those Images that are in the image folder that are not of the form Botit1-10. (This is a Must)
>Button Name & INI Name: Some keyword that will help you remember what image is linked with it. (You can use same as Image Name if you want)
(C or G at the end must not be placed, since they are automatically assigned)
Once they are filled, we press the save button one time, and proceed to refill with the next img info.
Some examples:
Once we're done, we close Clipper tool and reopen it.
Now core1 should look like this:
(I forgot I had already made one for BotitAtk and have it twice in this example. There's no problem if this happens, but it occupies space in the window, and it can be latter edited)
Now we open the emulator stance and F/GO.
Let's proceed with the image installation process:
If we click on one of the buttons we just added to Clipper tool, a small popup window should appear.
(We will ignore AutoScreen and Close gui) We will click the button (in this case BotitAtk). We will then left click on the Emulator stance. Screen will turn yellowish. This means we can now scan the image we will want to save. To get the img, we will visualize a rectangle that should be contained in the click area, we will hold right click on one of its vertices and we will drag the mouse through the diagonal of that rectangle until the opposed vertice. Once we reach it, we stop holding the finger, and screen should return to normal.
(Sorry for bad quality, but can't take screenshots of this process)
(Don't worry, while you drag, you will be able to see the rectangle that will be screenshoted). If we're not happy with the reult, we can retake it. If we're happy with it, we can proceed to the next one by pressing Close Gui, and going to the next img scan.
(What images should be scanned will be posted in this thread)
Beware, Botit doesnt support size change, so make sure you're always using the same screen size. Even the slight change can screw all the images saved, forcing you to retake them.
>For AutoScreen supportedbot stances, go to the window where the scan has to be done and press AutoScreen. Image will be automatically taken.
(The 1st time you use it, the window will be resized to fit the scans. If after resizing, bot scans but no click is made, restart computer. Everything should perfectly work.)
(AutoScreen is coord based, so it might not fit your Mirror or Emulator stance if it's not the same as the mentioned. This means some imgs might not be taken properly)
Paint.net part:
Some buttons have changing backgrounds, and our Rectangles aren't good for that kind of scans, thus, we have to edit them. We proceed by doing the normal scan as it should. For example, in this case, the RESULT that appears once battle ends.
We open BotitEndC on paint.net:
We tap on the magic wand that is in the tools panel (or press "S" on your keyboard ). This will allow us to only select similar colors when we click on a pixel. We then click on a pixel of the border we want to delete. We then change the tolerance until it grabs the maximum zone we want it to detect without intruding too much into the zone we want to have scanned (if it intrudes too much, it could trigger the click on places it shouldn't):
This one is a fine selection. all background is selected, and there's not a deterring intrusion into the important scan image. Once we have it, we pres "supr" key, and then we save it.
(We proceed to repeat the same process with the same botit with the other letter [aka. If we modified BotitEndC, we now modify BotitEndG])
Congrates, all images are set up, and your bot is ready to go.
Starting the bot:
We left click the packman in Botit, a popup window will appear. Once it disappears, we left click the window we want it to attach to. If it worked, that window's name should appear on it.
We click on the Grind button:
There we can modify the timings. Time is in ms (1sec = 1000ms), so if your game and internet connection are fast, you can feel free to modify the timers. We can also choose between GrayScale and Color for scans. I find no difference, so pick whichever you fancy.
Once we're done we press the save button. Botit will restart with the config and the grab window we had the moment we saved.
We click on Mode, and then we select AutoBattle.
If game has checkboxes, left option will be chosen when chekmark is empty, right option will be chosen when checked. For example, in the follow example, with both checkboxes unchecked, bot would automatically follow the loop to search for co-op room and wouldn't consume stamina pots.
Congrates, the bot is ready, just tap the play button, and it will start doing its thing. If you want to pause it, press the pause button. Press the Pause button again to resume.
Showcase:
Enjoy!!