-
Notifications
You must be signed in to change notification settings - Fork 13
Manually setting game screen coordinate
HungPV edited this page Oct 4, 2021
·
3 revisions
From Bit Heroes bot version 1.4.0 toward, JNA was added to support automatically detect game screen offset
But if you are using Web version of Bit Heroes or the automatic detection method it doesn't work, you have to setting it manually by doing the following steps:
- Play game on Steam client or web version at https://www.kongregate.com/games/Juppiomenz/bit-heroes using Google Chrome
- Make a screenshot and paste/open it using Paint (on Windows) or something like that on other OSes
- Point to the top left corner of the in-game screen to find out it's coordinate
- Open
user-config.properties
file - Update value of
offset.screen.x
andoffset.screen.y
. For example, based on the above picture, we have:
offset.screen.x=206
offset.screen.y=284
- Save file after modified
- On Ubuntu 18.04, usually
x=0
andy=57
when using mini client of Google Chrome - On Windows 10, usually
x=8
andy=31
when using mini client of Google Chrome - On Windows 7, usually
x=4
andy=24
when using mini client of Google Chrome orx=7
andy=30
when using Steam client - On MacOS 10.14, usually
x=0
andy=45
when using mini client of Google Chrome
Why have to do that? To optimize performance of this bot, I use some hard-coded relative coordinate and only scan specific screen rectangle.
Hi, I'm a bot. Please give me a Star for this repository, thank you 😜