Closed akagiknowsbest closed 7 years ago
Well you can always try to increase the sleep modifier even higher. You sure its not just your internet thats loading the confirmation screen too long ?
I was right there, watching by myself, repeated all process few times in front of my eyes. It took less than 1 second to load that screen when sleep modifier was set on 5 sec. so, sure... and it looks kinda weird. cause it should work fine oO... everything is ok with button and with 516 line in combat file about it.
can there be an option to manually through combat.py force script to wait for ~10 sec just in this moment (for sure in Any cases like "suddenly pc will freeze a bit" 10 should be enough. but pc is fast enough for so long sleep mod for eeeveeeryyy buuuttoooon) and then just click on coordinates counted manually in my screen? I don't know how to write it actually. But if script works fine with everyone else, then, maybe it's just my lack of being "special" :D I mean, I guess, there's nothing to fix actually, if it works with others and noone complained but me. So I ask, how to avoid this weird stage and change it on something stupid and simple aka "Method of crutches and bicycles" in my case? what generally should I write instead of "wait_and_click blabla that-invisible-magic-button"?)
right now tried with really long sleep mod. nope) still, loaded in one, but nothing happened for 20 seconds and then error.
if you really really are confident with your internet you can always modify the script to click that specific region using coordinates instead of trying to find it (and failing)
(that's what I'm talking about yes!) so... how should I write this line? it's "wait_and_click(self.kc_region, 'repair_start_confirm.png', 10)" now. I'm not sure, how to write coordinates inside this code instead of png file in right way without ruining everything?) simple screen coordinates go from top left (0; 0) to bottom right afaik from what I read about mouse moving scripts. should I count the pc screen coordinates or ingame window one? if it says self.kc_region - I guess i should count the second option. and... how to write it correctly in it? for example, from top left in game it's x = 500 y = 400
This should do
Region(self.kc_region.x + xOffset, self.kc_region.y + yOffset, widthOfButton, heightOfButton).click()
just replace the variables with whatever measurements you get relative to the top left corner of kancolle
It works perfectly now!~ Thank you!)))
@akagiknowsbest Close the issue if it has been resolved
Environment details
Issue
Is the issue consistent: consistent
So. to the point: my k-auto had a loop on repair screen all the time. When I tried to use last master version, not released one, it crashed because of bucket reservation features right on the start. I couldn't run it successfully at all. so I used 9.1 late march build again and just manually fixed combat.py 448 line (was it? don't remember already) It started to work finally, yeeeah! but... when it comes to repair start confirmation button on the dark screen with chosen ship, it writes findfailed and crashes. I repeated it few times, increased sleep mod to 4, but even if it loads in a second or less, still "findfailed" and errors.
Console log
Relevant config snippet
maybe there is something more I should write there? or should I check some more lines? It's weird that it crashes immediately at this point. kancolle has no subtitles or other stuff that can be in front of this button, of course. 100% size of course too.