ATG
Junior Member
Posts: 79
|
Post by ATG on Aug 7, 2020 8:02:53 GMT
What's the similarity? How about snap and play script? Does the snap and play script work? Does re-taking the pictures to compare help? Sometimes, the button with only text and the game developer change the text size or font. That will cause problem. You can share the screenshot and the images with problem. Will try to help.
What's the similarity?
>> set to 0.75 How about snap and play script? Does the snap and play script work?
>> I run the script that Ive created. when you say whether snap and play script work or not? do you mean after I having the problem and try run snap and play script?
Does re-taking the pictures to compare help? Sometimes, the button with only text and the game developer change the text size or font. That will cause problem.
>> I haven't try retake the picture. So far, I don't see the button text has changed. when I stopped the service and start again to run. It will run fine again.
You can share the screenshot and the images with problem. Will try to help. so far, two problem I face is when the program failed to click on boss and exit when completed the boss stage. It really so random. when I encountered them again, will definitely post here to let you know.
FYI. I've tried enable the "Image recognition at half comparing dimension" to see whether it helps or not.
so the program able to recognised the image of the boss then click on it and start battle. however, after completed and exit button show up, it won't click on it. despite it has highlight the exit button region. i guess because it affected the script results. in the end, I have to untick it.
|
|
ATG
Junior Member
Posts: 79
|
Post by ATG on Aug 8, 2020 2:36:18 GMT
You can share the screenshot and the images with problem. Will try to help.
Ankulua, I've emailed you with the screenshots and portion of my codes. please read.
|
|
|
Post by AnkuLua on Aug 8, 2020 3:17:02 GMT
Ankulua, I've emailed you with the screenshots and portion of my codes. please read. The email was replied.
|
|
ATG
Junior Member
Posts: 79
|
Post by ATG on Aug 8, 2020 3:25:12 GMT
I've read your email.
fyi. my script is running in the while loop, which the longest wait time is around 12 second. In other words, it is constantly doing searching and readily to click.
I know it will be hard for you to debug for me.
I will try to re-work my code where it can make improvement.
I forgot to mention in the email.
I disable root and the ankulua app only uses accessibility. This is to prevent the game somehow detect root permission. I'm really afraid of being banned.
So I want to be clear, ankulua accessibility itself won't freezes or stop when game running prolonged time?
|
|
|
Post by AnkuLua on Aug 8, 2020 13:18:17 GMT
I've read your email.
fyi. my script is running in the while loop, which the longest wait time is around 12 second. In other words, it is constantly doing searching and readily to click.
I know it will be hard for you to debug for me.
I will try to re-work my code where it can make improvement.
I forgot to mention in the email.
I disable root and the ankulua app only uses accessibility. This is to prevent the game somehow detect root permission. I'm really afraid of being banned.
So I want to be clear, ankulua accessibility itself won't freezes or stop when game running prolonged time?
No.
|
|
ATG
Junior Member
Posts: 79
|
Post by ATG on Aug 9, 2020 0:23:00 GMT
I found the culprit. it is my while loop.
while not Image:existsClick(bossOnMap, 0) do end
I really don't know why that giving me problem. some time it can run more than a hour without problem and other time ran 10 minutes and not working properly. Even I used similar logic applied to other image searching and clicking and it will just work fine.
So I resolved by modified the while loop to:
while Image:exists(bossOnMap, 0) do Image:existsClick(bossOnMap) end
|
|