perryhuynh / kcauto

kcauto, the successor to kancolle-auto, a Kantai Collection (Kancolle) bot/automation tool
GNU General Public License v3.0
68 stars 22 forks source link

Unable to run script, same error every time when starts-up #326

Closed Melxzy closed 5 years ago

Melxzy commented 5 years ago

Environment details

Issue variability

Unable to startup the script, got everything(JAVA, sikulix ETC) up to date

Issue

When trying to run the script, it;ll appears in the following Error shows below

Log

[2018-11-25 13:10:41] Initializing config module [2018-11-25 13:10:41] Reading config

[2018-11-25 13:10:41] Validating config [2018-11-25 13:10:41] Starting kcauto!

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

[2018-11-25 13:10:58] Could not find a reference point. [log] App.focus: [4636:Chrome]

[2018-11-25 13:11:14] Could not find a reference point. [error] script [ kcauto ] stopped with error at line --unknown-- [error] Error caused by: Traceback (most recent call last): File "C:\Users\R\Downloads\kcauto-7.0.0\kcauto-7.0.0\kcauto.sikuli\kcauto.py", line 84, in Recovery.recover(kcauto, config, e) File "C:\Users\R\Downloads\kcauto-7.0.0\kcauto-7.0.0\kcauto.sikuli\recovery.py", line 28, in recover kcauto.kc_region if kcauto.kc_region File "C:\Users\R\Downloads\kcauto-7.0.0\kcauto-7.0.0\kcauto.sikuli\util.sikuli\util.py", line 340, in focus_kc raise FindFailed(None) Line -2, in file null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:21

1) org.sikuli.script.FindFailed: FindFailed: null Line -2, in file null

n0k0m3 commented 5 years ago

Click on the chrome window (manual focus) to help sikuli focus on chrome

On Sat, Nov 24, 2018 at 11:17 PM Melxzy notifications@github.com wrote:

Environment details

  • kcauto version (version on first line of CHANGELOG.md): 7.0.0
  • Viewer/browser: Chrome
  • Operating system and/or VM: Win 7

Issue variability

Unable to startup the script, got everything(JAVA, sikulix ETC) up to date Issue

When trying to run the script, it;ll appears in the following Error shows below Log

�[94m[2018-11-25 13:10:41] Initializing config module�[0m �[94m[2018-11-25 13:10:41] Reading config�[0m

�[94m[2018-11-25 13:10:41] Validating config�[0m �[94m[2018-11-25 13:10:41] Starting kcauto!�[0m

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

�[91m[2018-11-25 13:10:58] Could not find a reference point.�[0m [log] App.focus: [4636:Chrome]

�[91m[2018-11-25 13:11:14] Could not find a reference point.�[0m [error] script [ kcauto ] stopped with error at line --unknown-- [error] Error caused by: Traceback (most recent call last): File "C:\Users\R\Downloads\kcauto-7.0.0\kcauto-7.0.0\kcauto.sikuli\kcauto.py", line 84, in Recovery.recover(kcauto, config, e) File "C:\Users\R\Downloads\kcauto-7.0.0\kcauto-7.0.0\kcauto.sikuli\recovery.py", line 28, in recover kcauto.kc_region if kcauto.kc_region File "C:\Users\R\Downloads\kcauto-7.0.0\kcauto-7.0.0\kcauto.sikuli\util.sikuli\util.py", line 340, in focus_kc raise FindFailed(None) Line -2, in file null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:21

1.

org.sikuli.script.FindFailed: FindFailed: null Line -2, in file null

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mrmin123/kcauto/issues/326, or mute the thread https://github.com/notifications/unsubscribe-auth/AKa08iCcn14CiiJH4B8v1kCh91OVT9Gkks5uyhnkgaJpZM4YxtPK .

-- Minh Nguyen

Ph.D candidate - Operation Research Florida Institute of Technology - Mathematical Sciences 150 W. University Blvd. Melbourne, FL, 32901 Phone Number: 321-368-9310

mrmin123 commented 5 years ago

Please refer to this FAQ section. This can also happen if the top part of the game is obscured.