Kramar1337 / Tower-of-Fantasy-AHK-flex

AHK script for Tower of Fantasy
39 stars 11 forks source link

Fishing is not fully working. #25

Closed Skullmonkey closed 1 year ago

Skullmonkey commented 1 year ago

Hello and thank you for the work you have done so far.

I am not able to get the afk fishing to fully work. It will not start fishing or reel in the fish automatically. The portion where you have to keep it in the yellow is working fine.

For example, I have to click on the fishing button in the bottom right to start the fishing. After that, the bot does its thing but when the fish is ready to be reeled in, I have to click the button. It also does not cast out again.

Kramar1337 commented 1 year ago

Hello. My fishing works without problems. Checked on: Main computer 1440p 90fps virtual machine 720p 30fps I cast the bait and the script itself finds the yellow strip and catches the fish itself and casts the bait again. I use the standard rod and standard bait and fish on the starting island. Sometimes landscape colors and fishing colors merge and the script misses, but usually everything works fine.

I increased the color range and capture area and put the settings in "tofuConfig.ini".

Kramar1337 commented 1 year ago

Try increasing the setting

; Fishing. color scatter PixelFisRange=3

Skullmonkey commented 1 year ago

I play 3440x1440 90fps on the global client. Also using standard rod and bait.

I have tried all of the 1440 resolutions with no success at the starting spot in Astra Shelter and the 2 spots up the river. All of them work for the yellow part but will not auto cast or retrieve. What spot are you fishing from?

Maybe if you can outline where you are scanning for the color, I can grab a screenshot and try to see if I can find the color in there and modify it to get it to work.

Kramar1337 commented 1 year ago

Screenshot_7 PixelFisPix=0x8CFFFF

Kramar1337 commented 1 year ago

heh, I get it. ultrawide monitor

Kramar1337 commented 1 year ago

the script uses the formula

and it works for 16-9 ratio I don't know how to do for 21-9

Kramar1337 commented 1 year ago

I need a screenshot of the game while fishing on your monitor.

Skullmonkey commented 1 year ago

Screenshot 2022-12-26 145058 Black areas are my status bar and window I had open so I could SS. I labeled the upper left and lower right locations of each of the areas of interest for you. For the 8CFFFF location, I marked the pixel position that I can find the lowest of.

Kramar1337 commented 1 year ago

increased range. update the script and try again

Skullmonkey commented 1 year ago

Working perfectly now!