vncsms / Metin2FishBot

A bot to fish in METIN2
38 stars 14 forks source link

not clicking #27

Open hferhate opened 11 months ago

hferhate commented 11 months ago

it starts normally but didn't click the fish. (Velor2)

vncsms commented 8 months ago

Can you check if your bot is running as admin?

jrsmatos commented 4 months ago

I had the same problem and I was able to solve it by adjusting the FISH_WINDOW_POSITION values in fishingbot.py.

mittwz commented 4 months ago

I had the same problem and I was able to solve it by adjusting the FISH_WINDOW_POSITION values in fishingbot.py.

What values ​​did you use?

MarioRadu commented 4 months ago

@jrsmatos i'm also having the same issue, can you please provide us the FISH_WINDOW_POSITION values that you used?

mittwz commented 4 months ago

@jrsmatos i'm also having the same issue, can you please provide us the FISH_WINDOW_POSITION values that you used?

@MarioRadu If there is anything new let me know

jrsmatos commented 4 months ago

Hi all,

I changed it to the following: FISH_WINDOW_POSITION = (265, 210)

This works for me but might not work for you. I suggest you try to adjust it by yourself. It is not hard to do, in fishingbot.py, inside runHack method after crop_img variable definition add: cv.imshow("title", crop_img) cv.waitKey(0)

This will open a window the shows the supposed fishing window location. The goal is to adjust the FISH_WINDOW_POSITION until the fishing window fits in this cropped image. That way the bot will detect the fish and run as intended. To do this you run hack.py but don't click the start button. First open your fishing window in the game a then press start.

Once it is done you can remove the code you added.

I the repo owner ever finds some spare time, a fishing window detection would solve this problem.

MarioRadu commented 4 months ago

What i did was to tweak the FISH_WINDOW_POSITION to (260, 190) in my case, running the client in a 800x600 resolution and the fishing window in right in the middle of the game. I also tweaked the detect_minigame() method to return True if the max_valis greather then 0.39(if max_val > 0.39:) from fishingbot.py file. NOTE : new versions of CShield detects the bot.