You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.
hi, the script should be working even if the image files are changed (as long as their filenames are in sync with the script) as i change them after each patch. i think you should try to save the image files in the following way:
capture screenshot via prtscr button
crop the unit from the screenshot
save the image with 32bit png file with software like paint.net
a few notes:
try to capture the characteristics instead of the whole unit image
keep the size of the image as minimal
do not use transparency color
try to run a test script like this to check if the script pick up the actual unit
from PyMacroV2 import *
#x is monitor resolution width
#y is monitor resolution length
#0.97 is the tolerance; 0.97 = 97% similar to the image presented in the game against the filename
print(FindImage("filename", 0, 0, x, y, 0.97))
#[-1,-1] means it failed to locate the unit
try capture from the actual game and compare it with the image file saved before manually
as a matter of fact, i will try to make transparency template matching working but that's another project (i.e. PyMacroV2) and i am busy at other things right now.
No description provided.
The text was updated successfully, but these errors were encountered: