Open PrzemoInf opened 7 years ago
Is it actually taking more than 10 seconds for the screen with repair_start_confirm.png
to show up after pressing the previous button? If so, you can raise the wait on that function call. If not, not much I can do especially if it's intermittent and doubly so if you're on a VM of some sort.
It switches to repair confirm screen fast, tops 2 second of delay. It was working quite fine on previous week and all of the sudden it started having some problems with it. PS. Does VM means Virtual Machine? If so, I'm not using it.
Could you download the latest master
branch and give that a spin?
I tried it and it seems that there is still that problem exist. I think it have something to do with my laptop, cuz it was working fine earlier, and seems like older versions show the same problem on it.
Hmmm, can you tell me if it's possible to modify a code a bit so it will try to refresh entire game(f5) like it's doing it in catbomb scenario? Because that would allow me to keep the game automated, bit slower but still.
Environment details
Issue
For some time I have a problem with auto-repairing ships. It goes to pick a ship on repair screen, check time and pick bucket if necesarry, but when it comes to confirmation screen sometimes it click confirmation, and sometimes it just crashes. I'm also using KAGA if it in case it makes any difference. I also tried changing sleep time, but no effect.
Console log (if applicable)
[2017-10-12 23:08:27] Attempting to conduct repairs on 2 ship(s)! [2017-10-12 23:08:27] Available docks: 4; repair queue: 2 [log] CLICK on L(504,270)@S(0)[0,0 1920x1080] (522 msec) [2017-10-12 23:08:30] Check for critically damaged ships. [2017-10-12 23:08:31] Check for moderately-damaged ships. [log] CLICK on L(740,238)@S(0)[0,0 1920x1080] (522 msec) [2017-10-12 23:08:32] Starting repair on moderately damaged ship! [2017-10-12 23:08:33] Got valid timer (11:03:10)! [2017-10-12 23:08:33] Repair time too long... using bucket! [log] CLICK on L(929,401)@S(0)[0,0 1920x1080] (529 msec) [log] CLICK on L(827,562)@S(0)[0,0 1920x1080] (524 msec) [log] TYPE "#ESC." [2017-10-12 23:08:45] Non-catbomb script crash, or catbomb script crash w/ unsupported Viewer! FindFailed: repair_start_confirm.png: (104x28) seen at (645, 496) with 1,00 in S(0)[0,0 1920x1080] E:Y, T:3,0 Line 2754, in file Region.java
[error] script [ C:\Users\Przemek\Desktop\bot2.0\kancolle-auto-master\kancolle_auto.sikuli ] stopped with error in line 542 [error] FindFailed ( repair_start_confirm.png: (104x28) seen at (645, 496) with 1,00 in S(0)[0,0 1920x1080] E:Y, T:3,0 ) [error] --- Traceback --- error source first line: module ( function ) statement 585: util ( pattern_generator ) m = match(r'M[\d+\,\d+ (\d+)x(\d+)]', str(find(pic))) 544: util ( wait_and_click ) kc_region.wait(pattern_generator(kc_region, pic, expand), time) 574: combat ( go_repair ) wait_and_click(self.kc_region, 'repair_start_confirm.png', 10) 256: main ( sortie_action ) combat_item.go_repair() 478: main ( kancolle_auto_wrapper ) sortie_action() 540: main ( ) kancolle_auto_wrapper()
[error] --- Traceback --- end --------------
Relevant config snippet (if applicable)
Program = Chrome RecoveryMethod = KC3 BasicRecovery = true JSTOffset = -8 SleepCycle = 0 Paranoia = 0 SleepModifier = 0
[ScheduledSleep] Enabled = false StartTime = 0030 SleepLength = 3.5
[ScheduledStop] Enabled = false Mode = TIME Count = 5
[Expeditions] Enabled = true Fleet2 = 37 Fleet3 = 38 Fleet4 = 2
[PvP] Enabled = false FleetComp = 1
[Combat] Enabled = true FleetComps = Area = 3 Subarea = 3 CombinedFleet = false Nodes = 5 NodeSelects = Formations = line_ahead NightBattles = false, true, true, true RetreatLimit = 2 RepairLimit = 1 RepairTimeLimit = 0230 ReserveDocks = false CheckFatigue = true PortCheck = true MedalStop = false LastNodePush = false
[SubmarineSwitch] Enabled = false EnabledSubs = ss ReplaceLimit = 0 FatigueSwitch = false UseBuckets = false
[LBAS] Enabled = false EnabledGroups = Group1Nodes = Group2Nodes = Group3Nodes =
[Quests] Enabled = true Quests = bd1, bd2, bd3, bd4, bd5, bd6, bd7, bd8, bw1, bw2, bw3, bw4, bw5, bw6, bw7, bw8, bw9, bw10, c2, c3, c4, c8, d2, d3, d4, d9, d11, e3, e4 CheckSchedule = 5