Egoistically / ALAuto

Azur Lane bot based on azurlane-auto. Discord: https://discord.gg/vCFxDen.
Do What The F*ck You Want To Public License
106 stars 43 forks source link

connected but do nothing usefull #13

Closed NodokaMurmevent closed 5 years ago

NodokaMurmevent commented 5 years ago

Hello i try to use the script but it not work Nox rooted + Debug enabled i start ADB :

> adb connect 127.0.0.1:62001
connected to 127.0.0.1:62001

i have this on config :

[Network]
Service: 127.0.0.1:62001

and i start the script :

PS C:\Users\Miaou\ALAuto> python .\ALAuto.py
[2019-10-17 18:49:35] Initializing config module
[2019-10-17 18:49:35] Validating config
[2019-10-17 18:49:35] Starting ALAuto!
* daemon not running; starting now at tcp:5037
* daemon started successfully
[2019-10-17 18:49:41] Sucessfully connected to the service.

aaaaand... he no thing but spam the top left corner.

i missed something ?

KurutsuKaren commented 5 years ago

Can you share full config.ini?

Egoistically commented 5 years ago

It's not an adb related error, it's getting stuck here for some reason:

    if not Utils.find("menu/button_battle"):
        Utils.touch_randomly(Region(54, 57, 67, 67))
        Utils.script_sleep(1)
        continue

Do what @KurutsuKaren said, please.

hjk22 commented 5 years ago

If it spams the top left corner, it means the script is not able to find the battle button. Have you changed your emulator resolution to the one suggested (1920x1080)? Otherwise the library used for image recognition won't work.

NodokaMurmevent commented 5 years ago

ok found it it's was the resolution, i changed to 1920x1080 and it's work perfectly, sorry to be a retard