From d23ed54e2bddc084620ddfb25161ada2807a0cf9 Mon Sep 17 00:00:00 2001 From: whoamikyo Date: Sun, 14 Jun 2020 13:13:10 -0300 Subject: [PATCH] Doc: Quick guide updated with EasyALAS_CLICK_INSTALL guide --- EasyALAS_CLICK_INSTALL.bat | 2 +- alas.bat | 13 +++++++++++-- doc/Quick_guide.md | 10 ++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/EasyALAS_CLICK_INSTALL.bat b/EasyALAS_CLICK_INSTALL.bat index 0bce3d3d0..e06937d51 100644 --- a/EasyALAS_CLICK_INSTALL.bat +++ b/EasyALAS_CLICK_INSTALL.bat @@ -56,7 +56,7 @@ popd PowerShell -Command "Start-Sleep -s 10" > nul 2>&1 :: killing adb server -"%PROGRAMDATA%\chocolatey\lib\adb\tools\platform-tools\adb.exe" kill-server > nul 2>&1 +call adb kill-server > nul 2>&1 pushd %~dp0 echo creating Virtual Environment diff --git a/alas.bat b/alas.bat index eec6920e1..a28481dd6 100644 --- a/alas.bat +++ b/alas.bat @@ -1,5 +1,14 @@ @echo off -adb connect 127.0.0.1:5555 +echo Start batch on %CD% +call .\venvalas\scripts\activate.bat +REM Change to your emulator port +::adb connect 127.0.0.1:5565 python -m uiautomator2 init -Py alas_en.pyw \ No newline at end of file +Py alas_en.pyw + +PAUSE + + + + diff --git a/doc/Quick_guide.md b/doc/Quick_guide.md index bf247b696..bbb872abe 100644 --- a/doc/Quick_guide.md +++ b/doc/Quick_guide.md @@ -9,6 +9,16 @@ * The use of a virtual environment (venv) in python is highly recommended * ADB debugging enabled and emulator with 1280x720 resolution * **Read the entire guide before asking any questions.** +* + +# New installation method + +* Just download the file [EasyALAS_CLICK_INSTALL.bat](https://raw.githubusercontent.com/whoamikyo/AzurLaneAutoScript/master/EasyALAS_CLICK_INSTALL.bat), put in some folder and run as administrator (`Right click> Run as administrator`) +* Then it will install everything and download ALAS +* Will be created a folder `AzurLaneAutoScript` in the directory you run `EasyALAS_CLICK_INSTALL.bat` +* To Run ALAS, just click in `alas.bat` +* to avoid connection errors it's recommended to configure your emulator port correctly in the `alas.bat` file, just open it with notepad and edit line 6, remove the `::` and configure with your emulator PORT, below you have more information on how to find your emulator PORT, READ ALL. +* It probably doesn't work on windows 7, you can test it and if it doesn't work try manual installation, tested on Windows 10 x64 Version 2004. # How to create e python virtual environment