Post by nonukez on Oct 28, 2019 13:50:13 GMT
Hey all,
Figured I'd ask the Ankulua pros after exhausting my limited Googling skills and coming up with nothing.
From my research, it seems like this is a limitation of Sikuli, but just in case someone had a workaround. Alternative solutions would be great as well!
The situation:
The game has a map with enemies to click. Enemies are generated randomly. While "standard" enemies have a common visual that I can make a screenshot of, there are "special" enemies that are unfortunately animated. These are very hard to match, as the timing has to be near-perfect based on when the screenshot was taken and when scanning is done. As well, the map is "pseudo-3D", for a lack of a better description. The enemies near the top of the map are ever so slightly smaller than the enemies near the bottom. With standard enemies, I can take multiple screenshots so that all the enemies regardless of position can match. Again, with the special enemies being animated and being slightly different sizes, matching is even harder and often leads to inconsistent results.
One solution I was thinking of was a screenshot of a blank map (since enemies are generated randomly, it can be patched together from many different refreshes), and use it as a base to compare to. Get the locations of the differences between a blank map and the current map, and you have a table of all the enemies on the screen, regardless of the type. Not only that, it would improve the performance as well, requiring only one snapshot to get all locations. Is this possible?
Again, based on the research, it seems like this isn't, but I figured I'd ask! Thank you all for reading, and apologies in advance for my long-winded post.
Figured I'd ask the Ankulua pros after exhausting my limited Googling skills and coming up with nothing.
From my research, it seems like this is a limitation of Sikuli, but just in case someone had a workaround. Alternative solutions would be great as well!
The situation:
The game has a map with enemies to click. Enemies are generated randomly. While "standard" enemies have a common visual that I can make a screenshot of, there are "special" enemies that are unfortunately animated. These are very hard to match, as the timing has to be near-perfect based on when the screenshot was taken and when scanning is done. As well, the map is "pseudo-3D", for a lack of a better description. The enemies near the top of the map are ever so slightly smaller than the enemies near the bottom. With standard enemies, I can take multiple screenshots so that all the enemies regardless of position can match. Again, with the special enemies being animated and being slightly different sizes, matching is even harder and often leads to inconsistent results.
One solution I was thinking of was a screenshot of a blank map (since enemies are generated randomly, it can be patched together from many different refreshes), and use it as a base to compare to. Get the locations of the differences between a blank map and the current map, and you have a table of all the enemies on the screen, regardless of the type. Not only that, it would improve the performance as well, requiring only one snapshot to get all locations. Is this possible?
Again, based on the research, it seems like this isn't, but I figured I'd ask! Thank you all for reading, and apologies in advance for my long-winded post.