Developer Mode - HoloKi/BitHeroesBot GitHub Wiki

How can I access developer mode?

The "Developer Mode" function was developed from 5.8.1-alpha as the bot had many problems with the recognition of the various images from pc to pc

By accessing the bot, button 4 will allow you to view the mini menu.

Menu:

1) Check&Click:

This option allows you to test the sensitivity of the bot in recognizing the specific image and click it

The functionality of this option is recommended to test if the bot sees the image and clicks in the right place you want (center of the button)

The options it asks are:

  1. the image directory: You can put:
- image
- raid
- dungeons
  1. the name of the image
example:
- accept.png
- cimento.png
  1. The sensitivity:
 -float number(from 0.3 to 1 reccomended)
example:
0.5 

RETURN:

NONE = image not found
cords = (x,y) coordinates of the image

WATCH OUT: The sensitivity must be from 0.3 to 1 this means that at 1 the bot looks for the image perfectly as it was saved while with 0.3 it will be less sensitive. So I advise you to start from 0.5 which is by default and then gradually increase or decrease IF THE BOT DOES NOT RECOGNIZE THE IMAGE WITH ALL POSSIBLE VARIABLES, I INVITE YOU TO CHANGE THE IMAGE WITH A SCREENSHOT DIRECTLY FROM YOUR GAME

2) Check:

This option allows you to test the sensitivity of the bot in recognizing the specific image

Compared to the aforementioned function, this does not click the button so it is less efficient.

The options it asks are:

  1. the image directory: You can put:
- image
- raid
- dungeons
  1. the name of the image
example:
- accept.png
- cimento.png
  1. The sensitivity:
 -float number(from 0.3 to 1 reccomended)
example:
0.5 

RETURN:

NONE = image not found
cords = (x,y) coordinates of the image

WATCH OUT: The sensitivity must be from 0.3 to 1 this means that at 1 the bot looks for the image perfectly as it was saved while with 0.3 it will be less sensitive. So I advise you to start from 0.5 which is by default and then gradually increase or decrease IF THE BOT DOES NOT RECOGNIZE THE IMAGE WITH ALL POSSIBLE VARIABLES, I INVITE YOU TO CHANGE THE IMAGE WITH A SCREENSHOT DIRECTLY FROM YOUR GAME

3)Debug mode:

Check that you can see each single image in the main screen

ex:
raid, pvp, gvg etc.

Additional function

HOW TO CHANGE THE SENSITIVITY AFTER TESTING IT WITH THE DEVELOPER MODE?

All sensitivities are stored in the data.json file which will be generated every time the bot is opened for the first time. (TO RESET DATA.JSON IN CASE OF ERROR, JUST DELETE IT AND START THE BOT)

Open the data.json file, with notepad ++ or the built-in Windows blocknote

Edit the desired part of the bot.

Example:

  • to edit the sensitivity of the main button raid, gvg etc, just change the number related to the name of the function as shown in the image.

To change the values ​​with those tested just edit the number inside the "x"

example:

"pvp": "0.5"
to
"pvp": "0.6"