Closed usagi123 closed 7 years ago
What sub(s) are in the fleet that you're trying to switch out? What equipment do they have?
I am trying to switch damaged maruyu from the fleet, repair her and use other subs to constantly grinding 3-2.
Hrm. Maruyu shouldn't have any equipment to worry about. Try the new code pushed today and the new config settings: https://github.com/mrmin123/kancolle-auto/issues/334
Sub switching has been going through a lot of work and bugfixing for a couple weeks. Hopefully this clears things up, but there might always be some more edge-cases. God speed ttk.
Try the script without the VM environment, afaik there have always been some problems on VM setups.
@comtrends123 please try the latest release and report back
@waicool20 I'll try.
@mrmin123 I am running this latest release and new issue happened caused me cannot tested the sub switching function. They detecting the wrong damaged ship from light-damaged into moderately-damaged and looping in the dock all the time. Video: https://youtu.be/NGGZJfWLO5Q
Console log
[←[92m[2017-03-14 11:04:58] At Home!←[0m
←[94m[2017-03-14 11:04:58] Checking for returning expeditions!←[0m
←[94m[2017-03-14 11:04:58] Are there returning expeditions to receive?←[0m
←[94m[2017-03-14 11:04:59] No, no fleets to receive!←[0m
←[94m[2017-03-14 11:05:00] Refreshing home with 0 or less sidestep(s)!←[0m
[log] CLICK on L(220,299)@S(0)[0,0 1600x900] (561 msec)
[log] CLICK on L(189,325)@S(0)[0,0 1600x900] (561 msec)
←[94m[2017-03-14 11:05:06] Are there returning expeditions to receive?←[0m
←[94m[2017-03-14 11:05:07] No, no fleets to receive!←[0m
←[94m[2017-03-14 11:05:08] Navigating to combat menu with 0 sidestep(s)!←[0m
[log] CLICK on L(348,358)@S(0)[0,0 1600x900] (560 msec)
[log] CLICK on L(437,387)@S(0)[0,0 1600x900] (531 msec)
[log] CLICK on L(420,532)@S(0)[0,0 1600x900] (531 msec)
[log] CLICK on L(776,267)@S(0)[0,0 1600x900] (531 msec)
[log] CLICK on L(762,536)@S(0)[0,0 1600x900] (531 msec)
←[94m[2017-03-14 11:05:29] Checking fleet condition...←[0m
←[94m[2017-03-14 11:05:30] Light damage: 1; moderate damage: 1; critical damage:
0←[0m
←[93m[2017-03-14 11:05:33] Ships (1) in condition below repair threshold! Sortie
cancelled!←[0m
←[94m[2017-03-14 11:05:34] Focus on KanColle!←[0m
[log] App.focus: [1852:Chrome]
←[94m[2017-03-14 11:05:43] Going home with 0 or less sidestep(s)!←[0m
[log] CLICK on L(183,315)@S(0)[0,0 1600x900] (541 msec)
←[92m[2017-03-14 11:05:49] At Home!←[0m
←[94m[2017-03-14 11:05:49] Are there returning expeditions to receive?←[0m
←[94m[2017-03-14 11:05:50] No, no fleets to receive!←[0m
←[94m[2017-03-14 11:05:51] Navigating to repair screen with 0 sidestep(s)!←[0m
[log] CLICK on L(210,413)@S(0)[0,0 1600x900] (531 msec)
←[94m[2017-03-14 11:05:56] Attempting to conduct repairs on 1 ship(s)!←[0m
←[94m[2017-03-14 11:05:56] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(317,264)@S(0)[0,0 1600x900] (551 msec)
←[94m[2017-03-14 11:05:58] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:05:59] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:06:01] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:06:01] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(398,250)@S(0)[0,0 1600x900] (531 msec)
←[94m[2017-03-14 11:06:02] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:06:03] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:06:04] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:06:04] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(416,398)@S(0)[0,0 1600x900] (541 msec)
←[94m[2017-03-14 11:06:07] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:06:08] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:06:09] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:06:09] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(308,242)@S(0)[0,0 1600x900] (561 msec)
...
truncated
...
←[94m[2017-03-14 11:09:06] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:09:07] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:09:09] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:09:09] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(385,238)@S(0)[0,0 1600x900] (531 msec)
←[94m[2017-03-14 11:09:12] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:09:13] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:09:14] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:09:14] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(407,423)@S(0)[0,0 1600x900] (531 msec)
←[94m[2017-03-14 11:09:17] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:09:18] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:09:19] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:09:19] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(294,253)@S(0)[0,0 1600x900] (531 msec)
←[94m[2017-03-14 11:09:22] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:09:23] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:09:24] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:09:24] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(322,413)@S(0)[0,0 1600x900] (550 msec)
←[94m[2017-03-14 11:09:26] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:09:27] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:09:28] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:09:28] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(349,247)@S(0)[0,0 1600x900] (541 msec)
←[94m[2017-03-14 11:09:31] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:09:32] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:09:34] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:09:34] Available docks: 3; repair queue: 1←[0m
[error] RobotDesktop: checkMousePosition: should be L(392,416)@S(0)[0,0 1600x900
]
but after move is L(579,304)@S(0)[0,0 1600x900]
Possible cause in case you did not touch the mouse while script was running:
Mouse actions are blocked generally or by the frontmost application.
You might try to run the SikuliX stuff as admin.
[log] CLICK on L(392,416)@S(0)[0,0 1600x900] (541 msec)
←[94m[2017-03-14 11:09:37] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:09:38] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:09:39] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:09:39] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(311,402)@S(0)[0,0 1600x900] (551 msec)
←[94m[2017-03-14 11:09:42] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:09:43] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:09:44] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:09:44] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(450,253)@S(0)[0,0 1600x900] (521 msec)
←[94m[2017-03-14 11:09:46] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:09:47] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:09:48] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:09:48] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(366,246)@S(0)[0,0 1600x900] (520 msec)
←[94m[2017-03-14 11:09:51] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:09:52] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:09:53] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:09:53] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(297,431)@S(0)[0,0 1600x900] (541 msec)
←[94m[2017-03-14 11:09:55] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:09:56] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:09:57] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:09:57] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(291,425)@S(0)[0,0 1600x900] (590 msec)
←[94m[2017-03-14 11:10:00] Check for critically damaged ships.←[0m
←[94m[2017-03-14 11:10:01] Check for moderately-damaged ships.←[0m
←[94m[2017-03-14 11:10:02] 1 ships needing repairs left...←[0m
←[94m[2017-03-14 11:10:02] Available docks: 3; repair queue: 1←[0m
[log] CLICK on L(386,233)@S(0)[0,0 1600x900] (541 msec)
←[94m[2017-03-14 11:10:04] Check for critically damaged ships.←[0m
]
I strongly suggest that this might be a VM issue. The 0.7 threshold for damages have not caused issues previously in my testing and production environments. As a matter of fact, raising the threshold caused many false negatives, but it might be what's required here.
kancolle-auto.py
to this:debug_find('dmg_moderate.png', 'Chrome', 0.7)
dmg_light.png
dmg_critical.png
combat.py
with your threshold:DMG_SIMILARITY = 0.7 # Damage state icons
Again, I want to note that raising the threshold has caused false negatives for me (ie. ships that were critically damaged were NOT correctly identified as being critically damaged). As such, if you do modify the threshold, I'd watch it for a bit to make sure that the damage count outputs in the console are correct as kancolle-auto runs, and be ready to shut down kancolle-auto the moment it incorrectly ascertains the damage counts.
And if that doesn't work, ditch the VM.
(PS If you do go with the modifying threshold route, I'd be interested in knowing what value you end up with)
0.7 seem fine to me. Light, moderate or critical dmg are all matched. The result: http://imgur.com/a/jaGpK So it should be the problem of my VM. Wait me setup a new VM.
Adding to this, I started encountering issues with VMWare Workstation 12 Pro 12.5.2 build-4638234
, but did not have any issues after switching to Oracle VM VirtualBox
as per #256
Everything work perfectly after running on new VM. Hope I won't mess VM this time, haha. Thanks everyone for the help! Much appreciated.
@perryhuynh my problem with Oracle VM is that it caused a huge suttering although I already give them twice the cpu and ram for it compared to VMware to run.
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
Issue
Is the issue consistent (can be reproduced consistently) or is it transient (only happens sometimes)?:
After the game new update, I cannot used submarine switching anymore no matter how I config or re-download the new one.
Submarine switching setting: http://imgur.com/a/31SUi Video: https://youtu.be/uHevAIbM5qs
Console log (if applicable)
Relevant config snippet (if applicable)