linus-jansson / btd6farmer

A tool to make autonomous macros in Bloons Td 6. Relies on OCR and template matchmating for navigation. Made in python
https://discord.gg/qyKT6bzqZQ
MIT License
33 stars 11 forks source link

Unable to locate current round on 4k monitors #60

Open Litesung opened 1 year ago

Litesung commented 1 year ago

round_area.png might be upscaled to an all-white image which would not be located on the screen.

PY C:\Git\btd6farmer\main.py -p C:\Git\btd6farmer\Instructions\Dark_Castle_Hard_Standard\ -d
Setting up Bot...
Using gameplan located in: C:\Git\btd6farmer\Instructions\Dark_Castle_Hard_Standard
RUNNING IN DEBUG MODE, DEBUG FILES WILL BE GENERATED
Waiting for Home screen. Please switch to Bloons TD 6 window.
Waiting for loading screen..
Waiting for loading screen..
Waiting for loading screen..
Waiting for loading screen..
selecting map
Scaling: [0.438671875, 0.8666666666666667] -> (1684, 1872)
Scaling: [0.69453125, 0.9055555555555556] -> (2667, 1956)
Scaling: [0.30390625, 0.9055555555555556] -> (1167, 1956)
Scaling: [0.856640625, 0.4041666666666667] -> (3289, 873)
Scaling: [0.5546875, 0.24305555555555555] -> (2130, 525)
Scaling: [0.675390625, 0.3902777777777778] -> (2593, 843)
Scaling: [0.330859375, 0.5416666666666666] -> (1270, 1170)
Scaling: [0.59375, 0.6763888888888889] -> (2280, 1461)
Waiting for loading screen..
Waiting for loading screen..
Game start
(2968, 27, 96, 17)
C:\Git\btd6farmer\BotUtils.py:98: RuntimeWarning: invalid value encountered in true_divide
  gainDivision = np.where(localMax == 0, 0, (screenshot/localMax))
Found text 'i. WA' does not match regex requirements
Saved screenshot of what was found
Failsafe triggered. Exiting bot.

get_current_round_failed.png get_current_round_failed

round.png round

linus-jansson commented 1 year ago

Is this still a problem, with the current main branch?