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

Recovery from DMM popup #148

Closed mrmin123 closed 8 years ago

mrmin123 commented 8 years ago

Issue

Multiple people (myself included) have been running into a DMM popup that would cease kancolle-auto's ability to click in the game's screen.

The popup in question:

This popup, per discussion in this reddit thread seems to be independent of kancolle-auto's behavior and could have something to do with DMM (patching of game/API refresh/bot-detect/etc) or the user's connection, or both.

On first glance, recovery from this presents a number of challenges and/or considerations (rambling ahead):

  1. As seen from the above screenshots, depending on the user's OS, Viewer, and system settings the style of the window is completely different, thus matching on the popup window itself is not possible unless the user generates their own popup screen capture to match on (may not be a bad idea)
  2. Does it allow for the page to refresh, or no? Ideally, if the popup occurs while being in the main screen, the refresh happens, and kancolle-auto goes through the recovery process from game start. If during combat, the refresh would ideally not happen. Maybe force a refresh after?
  3. Actually, refreshing regardless of context would actually be the most easy to implement. Otherwise the ability to retry the failed command on Exception would have to be implemented. Perhaps via a retry decorator?

Extra note: that is actually not the only popup I've seen that would cause kancolle-auto to freeze up. As a KC3Kai user, sometimes updates from the plugin would attempt to force a refresh, which would cause the 'Are you sure you'd like to abandon your shipgirls etc' window to popup. Other times, I've seen the page attempt to refresh by itself, with no warning from DMM and no update from KC3Kai.

mintgreenrose commented 8 years ago

Can confirm popup appears in the middle of combat. I regret I wasn't able to take a screenshot though, was too eager to close it.

mrmin123 commented 8 years ago

Is anyone getting this in other non-Chrome viewers/browsers?

n0k0m3 commented 8 years ago

Nope, used kctool and no error Btw, this error is from DMM not API request. Got the same error with MonMusu as well. Probably a DMM solution for NEET <(") On Mar 25, 2016 4:01 PM, "Minyoung Choi" notifications@github.com wrote:

Is anyone getting this in other non-Chrome viewers/browsers?

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/mrmin123/kancolle-auto/issues/148#issuecomment-201463703

silfumus commented 8 years ago

Had those pop-up when playing manually with EO, but not when I was using kancolle-auto.

mrmin123 commented 8 years ago

@silfumus If you can, could you grab a screenshot of the popup in EO the next time you get it? I'd appreciate it.

silfumus commented 8 years ago

untitled-1

mintgreenrose commented 8 years ago

Hey guys something you might find useful:

http://himeuta.org/showthread.php?7333-Bot-detection-cat-errors-201-cat

mrmin123 commented 8 years ago

I haven't been getting the DMM popups since a week or so ago, but I also don't use EO so I don't know if the DMM popups equate to the 201 error. My impression was that the DMM popup is different from the anti-bot catbombs, although it's entirely possible that the DMM popup is a new implementation of an anti-bot mechanism... Either way, thanks for the link.

silfumus commented 8 years ago

Haven't got DMM pop-up in a while so I couldn't confirm.

I think the DMM pop-up and anti-bot catbomb are two different thing since the former is done by DMM itself and not KanColle Staff. If you had frequent DMM pop-up and/or catbomb, get a better connection.

The only time I got catbomb aside from connection-related issues was when I went too fast clicking the resupply and PVP selection screen. I would be surprised if sikuli managed to pull this off.

Currently ranking for the top 100 but I wonder if KanColle Staff could just ban someone from ranking instead of the game altogether (I haven't received the top 500 February ranking reward, I hope this wasn't the reason).

mrmin123 commented 8 years ago

This will be addressed by #224.