Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/noop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: noop
run-name: noop🚀
on: [push]
jobs:
noop:
runs-on: ubuntu-latest
steps:
- run: echo "done"

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ config/reloadalas
test.py
test/

!config/alas.json
.DS_Store

# Created by .ignore support plugin (hsz.mobi)

### JetBrains template
Expand Down Expand Up @@ -178,7 +181,7 @@ profile_default/
ipython_config.py

# pyenv
.python-version
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8.20
16 changes: 9 additions & 7 deletions alas.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def run(self, command, skip_first_screenshot=False):
return True
except GameNotRunningError as e:
logger.warning(e)
self.config.task_call('Restart')
self.start()
return False
except (GameStuckError, GameTooManyClickError) as e:
logger.error(e)
Expand Down Expand Up @@ -476,17 +476,19 @@ def get_next_task(self):
self.is_first_task = False
method = self.config.Optimization_WhenTaskQueueEmpty
if method == 'close_game':
logger.info('Close game during wait')
self.device.app_stop()
logger.info('Go home during wait')
time.sleep(5)
self.run('goto_main')
self.device.go_home()
release_resources()
self.device.release_during_wait()
if not self.wait_until(task.next_run):
del_cached_property(self, 'config')
continue
if task.command != 'Restart':
self.config.task_call('Restart')
del_cached_property(self, 'config')
continue
# if task.command != 'Restart':
# self.config.task_call('Restart')
# del_cached_property(self, 'config')
# continue
elif method == 'goto_main':
logger.info('Goto main page during wait')
self.run('goto_main')
Expand Down
Binary file modified assets/jp/coalition/NEONCITY_FLEET_PREPARATION.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/jp/os/SELECT_DANGEROUS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/jp/os/SELECT_DANGEROUS_old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/jp/os/SELECT_OBSCURE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/jp/os/SELECT_OBSCURE_old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/jp/tactical/REWARD_2.BUTTON.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/jp/ui_white/POPUP_CONFIRM_WHITE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/jp/ui_white/POPUP_CONFIRM_WHITE_old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
218 changes: 218 additions & 0 deletions conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,218 @@
name: alas
channels:
- anaconda
- conda-forge
dependencies:
- _mutex_mxnet=0.0.50=openblas
- aiofiles=22.1.0=py38hca03da5_0
- anyio=1.3.1=py_0
- aom=3.5.0=h7ea286d_0
- asgiref=3.5.2=py38hca03da5_0
- async_generator=1.10=pyhd3eb1b0_0
- attrs=23.1.0=py38hca03da5_0
- av=10.0.0=py38h846960b_3
- blas=1.0=openblas
- brotli-python=1.0.9=py38hc377ac9_7
- bzip2=1.0.8=h93a5062_5
- c-ares=1.19.1=h80987f9_0
- ca-certificates=2024.2.2=hf0a4a13_0
- cairo=1.16.0=h302bd0f_5
- certifi=2024.2.2=pyhd8ed1ab_0
- cffi=1.16.0=py38h80987f9_0
- charset-normalizer=2.0.4=pyhd3eb1b0_0
- click=8.1.7=py38hca03da5_0
- colorama=0.4.6=py38hca03da5_0
- commonmark=0.9.1=pyhd3eb1b0_0
- cryptography=41.0.3=py38hd4332d6_0
- curio=1.4=pyhd3eb1b0_0
- cyrus-sasl=2.1.28=h9131b1a_1
- dataclasses=0.8=pyh6d0b6a4_7
- eigen=3.3.7=h525c30c_1
- exceptiongroup=1.0.4=py38hca03da5_0
- expat=2.5.0=h313beb8_0
- ffmpeg=5.1.2=gpl_hf318d42_106
- font-ttf-dejavu-sans-mono=2.37=hd3eb1b0_0
- font-ttf-inconsolata=2.001=hcb22688_0
- font-ttf-source-code-pro=2.030=hd3eb1b0_0
- font-ttf-ubuntu=0.83=h8b1ccd4_0
- fontconfig=2.14.1=hee714a5_2
- fonts-anaconda=1=h8fa9717_0
- fonts-conda-ecosystem=1=hd3eb1b0_0
- freetype=2.12.1=h1192e45_0
- future=0.18.3=py38hca03da5_0
- gettext=0.22.5=h8fbad5d_2
- gettext-tools=0.22.5=h8fbad5d_2
- giflib=5.2.1=h80987f9_3
- glib=2.69.1=h514c7bf_2
- gmp=6.2.1=hc377ac9_3
- gnutls=3.7.9=hd26332c_0
- graphite2=1.3.14=hc377ac9_1
- gst-plugins-base=1.14.1=h313beb8_1
- gstreamer=1.14.1=h80987f9_1
- h11=0.12.0=pyhd3eb1b0_0
- harfbuzz=4.3.0=he9eebac_1
- hdf5=1.12.1=h05c076b_3
- icu=68.1=hc377ac9_0
- idna=3.4=py38hca03da5_0
- imageio=2.27.0=pyh24c5eb1_0
- importlib-metadata=6.0.0=py38hca03da5_0
- inflection=0.5.1=py38hca03da5_0
- jellyfish=0.11.2=py38hd0c8013_0
- jpeg=9e=h80987f9_1
- krb5=1.20.1=hf3e1bf2_1
- lame=3.100=h1a28f6b_0
- lcms2=2.12=hba8e193_0
- lerc=3.0=hc377ac9_0
- libasprintf=0.22.5=h8fbad5d_2
- libasprintf-devel=0.22.5=h8fbad5d_2
- libblas=3.9.0=1_h2ec9a88_netlib
- libcblas=3.9.0=5_h880f123_netlib
- libclang=14.0.6=default_h1b80db6_1
- libclang13=14.0.6=default_h24352ff_1
- libcurl=7.88.1=h3e2b118_2
- libcxx=16.0.6=h4653b0c_0
- libdeflate=1.17=h80987f9_1
- libedit=3.1.20221030=h80987f9_0
- libev=4.33=h1a28f6b_1
- libffi=3.4.2=h3422bc3_5
- libgettextpo=0.22.5=h8fbad5d_2
- libgettextpo-devel=0.22.5=h8fbad5d_2
- libgfortran=5.0.0=12_2_0_hd922786_32
- libgfortran5=12.2.0=h0eea778_32
- libiconv=1.17=h0d3ecfb_2
- libidn2=2.3.4=h80987f9_0
- libintl=0.22.5=h8fbad5d_2
- libintl-devel=0.22.5=h8fbad5d_2
- liblapack=3.9.0=5_h880f123_netlib
- libllvm14=14.0.6=h7ec7a93_3
- libmxnet=1.5.1=openblas_h34268ac_0
- libnghttp2=1.57.0=h62f6fdd_0
- libopenblas=0.3.23=openmp_hc731615_0
- libopus=1.3.1=h27ca646_1
- libpng=1.6.39=h80987f9_0
- libpq=12.15=h02f6b3c_1
- libsodium=1.0.18=h1a28f6b_0
- libsqlite=3.45.2=h091b4b1_0
- libssh2=1.10.0=h02f6b3c_2
- libtasn1=4.19.0=h80987f9_0
- libtiff=4.5.1=h313beb8_0
- libunistring=0.9.10=h1a28f6b_0
- libvpx=1.11.0=hc377ac9_0
- libwebp=1.3.2=ha3663a8_0
- libwebp-base=1.3.2=h80987f9_0
- libxml2=2.10.4=h372ba2a_0
- libxslt=1.1.37=habca612_0
- libzlib=1.2.13=h53f4e23_5
- llvm-openmp=20.1.2=hdb05f8b_0
- lxml=4.9.2=py38h43d3e64_0
- lz4=4.3.2=py38h80987f9_0
- lz4-c=1.9.4=h313beb8_0
- mxnet=1.5.1=hca03da5_0
- mysql=5.7.24=ha71a6ea_2
- ncurses=6.4.20240210=h078ce10_0
- nettle=3.9.1=h40ed0f5_0
- numpy=1.24.4=py38ha84db1f_0
- openblas=0.3.23=openmp_hf78f355_0
- opencv=4.6.0=py38h8794c10_2
- openh264=2.3.1=hb7217d7_2
- openjpeg=2.3.0=h7a6adac_2
- openssl=3.2.1=h0d3ecfb_1
- outcome=1.1.0=pyhd3eb1b0_0
- p11-kit=0.24.1=h29577a5_0
- packaging=24.1=py38hca03da5_0
- pcre=8.45=hc377ac9_0
- pillow=10.0.1=py38h3b245a6_0
- pip=24.0=pyhd8ed1ab_0
- pixman=0.40.0=h1a28f6b_0
- platformdirs=3.10.0=py38hca03da5_0
- pooch=1.7.0=py38hca03da5_0
- prettytable=2.2.1=pyhd8ed1ab_0
- psutil=5.9.3=py38hb991d35_1
- py-mxnet=1.5.1=py38h3f2eb1c_0
- pycparser=2.21=pyhd3eb1b0_0
- pydantic=1.10.12=py38h80987f9_1
- pygments=2.15.1=py38hca03da5_1
- pyopenssl=23.2.0=py38hca03da5_0
- pysocks=1.7.1=py38hca03da5_0
- python=3.8.19=h2469fbe_0_cpython
- python_abi=3.8=4_cp38
- pyyaml=6.0.1=py38h80987f9_0
- pyzmq=22.3.0=py38hc377ac9_2
- qt-main=5.15.2=h9b4df51_9
- qt-webengine=5.15.9=h2903aaf_7
- qtwebkit=5.212=h19f419d_5
- readline=8.2=h92ec313_1
- requests=2.31.0=py38hca03da5_0
- retrying=1.3.3=pyhd3eb1b0_2
- rich=11.2.0=pyhd8ed1ab_0
- scipy=1.10.1=py38h9d039d2_1
- setuptools=69.2.0=pyhd8ed1ab_0
- six=1.16.0=pyhd3eb1b0_1
- sniffio=1.2.0=py38hca03da5_1
- sortedcontainers=2.4.0=pyhd3eb1b0_0
- sqlite=3.41.2=h80987f9_0
- starlette=0.14.2=pyhd8ed1ab_0
- svt-av1=1.4.1=h7ea286d_0
- tk=8.6.13=h5083fa2_1
- tqdm=4.65.0=py38h86d0a89_0
- trio=0.22.0=py38hca03da5_0
- typing-extensions=4.7.1=py38hca03da5_0
- typing_extensions=4.7.1=py38hca03da5_0
- urllib3=1.26.18=py38hca03da5_0
- uvicorn=0.17.6=py38h10201cd_1
- wcwidth=0.2.5=pyhd3eb1b0_0
- websockets=12.0=py38h336bac9_0
- wheel=0.43.0=pyhd8ed1ab_1
- wrapt=1.13.1=py38hea4295b_0
- x264=1!164.3095=h57fd34a_2
- x265=3.5=hbc6ce65_3
- xz=5.4.2=h80987f9_0
- yaml=0.2.5=h1a28f6b_0
- zeromq=4.3.4=hc377ac9_0
- zipp=3.11.0=py38hca03da5_0
- zlib=1.2.13=h53f4e23_5
- zstd=1.5.5=hd90d995_0
- pip:
- Deprecated==1.2.14
- adbutils==0.11.0
- alas-webapp==0.3.7.0
- apkutils2==1.0.0
- cached-property==1.5.2
- cigam==0.0.3
- cnocr==1.2.3
- contourpy==1.1.1
- cycler==0.12.1
- decorator==5.1.1
- deprecation==2.1.0
- filelock==3.13.4
- fonttools==4.51.0
- gevent==24.2.1
- gluoncv==0.6.0
- greenlet==3.0.3
- importlib_resources==6.4.0
- kiwisolver==1.4.5
- logzero==1.7.0
- matplotlib==3.7.5
- msgpack==1.0.8
- onepush==1.3.0
- packaging==20.9
- portalocker==2.8.2
- progress==1.6
- py==1.11.0
- pycryptodome==3.20.0
- pyelftools==0.31
- pyparsing==3.1.2
- pypresence==4.2.1
- python-dateutil==2.9.0.post0
- pywebio==1.6.2
- retry==0.9.2
- tornado==6.4
- ua-parser==0.18.0
- uiautomator2==2.16.17
- uiautomator2cache==0.3.0.1
- user-agents==2.2.0
- whichcraft==0.6.1
- xmltodict==0.13.0
- zerorpc==0.6.3
- zope.event==5.0
- zope.interface==6.2
Loading