mrmin123 / kancolle-auto

Kantai Collection (Kancolle) bot/automation tool - DEPERECATED - see kcauto-kai:
https://github.com/mrmin123/kcauto-kai
54 stars 22 forks source link

CheckFatigue issue Fleet moral checking fail #359

Open matsumotokenji opened 7 years ago

matsumotokenji commented 7 years ago

Please read the FAQ/Common Issues section of the README before opening a ticket. Please remove sections of this template you do not find relevant when creating your ticket.

Environment details

kancolle-auto, latest kancolle-auto-master build

Issue

I have tested slot 1,2,3,6 and replicated 2 times with red face moral, and kancolle auto passed the check as moral good.

config: CheckFatigue = True

matsumotokenji commented 7 years ago

However Ship(s) with medium fatigue found worked.

2017-04-15 02_29_46-kancolleviewer

mrmin123 commented 7 years ago

@matsumotokenji can you find this line in kancolle_auto.py:

# debug_find('dmg_critical.png', 'Chrome', 0.75)  # For debugging purposes only!

and replace it with this?:

debug_find('fatigue_high.png', 'Chrome', 0.9)  # For debugging purposes only!

(replace 'Chrome' with whatever program you're using, if needed)

Fatigue high should match at 0.98 or above. If they're matching at anything below, please report the values here.

edit: derp, to be clear, make the code changes above, navigate to the pre-sortie screen where you see the fatigue states in-game, then run kancolle-auto. It'll move the mouse over each match, and spit out details for each match in the console.

matsumotokenji commented 7 years ago

[log] App.focus: [8480:Chrome]

matsumotokenji commented 7 years ago

P/S: == deleted a post found out damage threshold is set to 0.7 ==

mrmin123 commented 7 years ago

Right, hopefully the damage matching worked after setting it to 0.7.

For the fatigue issue you could modify FATIGUE_SIMILARITY in combat.py to 0.97 or even 0.96 and that should resolve your issue. When I can, I'll also do some additional testing to see if it's safe to bump the threshold down in master.