Giter Site home page Giter Site logo

e7autoshop's Introduction

E7AutoShop

Application designed to refresh Epic Seven Secret Shop and buy Mystic bookmarks and Covenent bookmarks

Automatic epic seven refresh secret shop

image

Getting Started

  1. Download the installer (https://github.com/purpxd/E7AutoShop/releases/download/v2.1/autoshop_installer_v2.1.exe)
  2. Launch installer
  3. Inside your emulator set the resolution to 1920 x 1080. In advanced settings, enable ADB
  4. Start autoshop.exe

Video Demo

E7autoshop.Demo.mp4

Notes

  1. You will need to set the resolution in your emulator to 1920 x 1080 or it will not work properly

e7autoshop's People

Contributors

purpxd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

e7autoshop's Issues

Errors via Dispatch Missions

Dispatch missions cause the app to error out and skip whatever was on that page without purchasing anything.

While the app does re-start the dispatch mission properly, if there were covenant or mystic bookmarks on the page at the time a dispatch mission ended, they would not be purchased and skipped.

I had one where covenant were on slot 2 of 6. That refresh reads:

Level 55 equip grade good
Error <-the covenants
Fodder
Friendship Bookmarks
Error
Error

Here, I assume, the first screenshot was taken nearly simultaneously with the dispatch popup. The dispatch was then restarted, the second screenshot for the bottom two items on the page was skipped, and the app began another refresh skipping the covenants.

It seems default behaviour of the app on a new set of refreshes or after an error is to refresh the page first and then start taking screenshots. Maybe changing the app to scan the current page first before refreshing anything would alleviate this.

Cannot launch Autoshop.exe

I followed set up instructions and didn't encounter any errors. When I try to launch autoshop.exe, a terminal flashes on my screen and closes. I tried opening it from cmd prompt and it gave me this error: " File "AutoShop.py", line 9, in
FileNotFoundError"

Crashes within 1-2 minutes of being open

It was an error reported in the past: error folder shows this:
ERROR:root:cannot identify image file <_io.BytesIO object at 0x0000029D64B5A5C0>
Traceback (most recent call last):
File "scripts\shop.py", line 239, in main
screenshot = self.screen()
^^^^^^^^^^^^^
File "scripts\shop.py", line 115, in screen
screenshot = Image.open(BytesIO(img_bytes))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "PIL\Image.py", line 3339, in open
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x0000029D64B5A5C0>

I'm on the right reso, adb enabled, tried it in with admin enabled, and tried it in several locations on a few different drives.

UI bug: progress bar, timer, start button

Progress bar

  • delays when starting a new run and updates itself after the first refresh

Timer

  • after the first run, when starting a new run the timer doesn't count up

Start button

  • After the first run, when the app receives the finish signal it enables the start button again. This is a problem because when the user tries to start a run without inserting a skystone amount then the app will crash

autoshop.exe not working

Hi, autoshop.exe is not opening, i already download python, installed the app in c:/users/user/downloads and opening in admin and still not working.

this is the error:

Traceback (most recent call last):
File "autoshop.py", line 14, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "db\models.py", line 112, in <module>
File "db\models.py", line 80, in identify
File "db\models.py", line 28, in uniqueId
File "db\models.py", line 19, in get_mac_address
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa2 in position 9: invalid start byte
[8800] Failed to execute script 'autoshop' due to unhandled exception!

Autoshop not starting due to WinError 10051

Hello,

I've installed the 2.0 version after following the other issue. My autoshop fails to start up due to a network error. I'm using Python version 3.9.7. This is the command line output after looking up the python version.

python
Python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

I've tried disabling windows defender (both virus protection and firewall) and it doesn't seem to help.

Below is the error log:

ERROR:root:HTTPSConnectionPool(host='ident.me', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002484F87FBD0>: Failed to establish a new connection: [WinError 10051] A socket operation was attempted to an unreachable network'))
Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 85, in create_connection
File "urllib3\util\connection.py", line 73, in create_connection
OSError: [WinError 10051] A socket operation was attempted to an unreachable network

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 793, in urlopen
File "urllib3\connectionpool.py", line 491, in _make_request
File "urllib3\connectionpool.py", line 467, in _make_request
File "urllib3\connectionpool.py", line 1099, in _validate_conn
File "urllib3\connection.py", line 616, in connect
File "urllib3\connection.py", line 213, in _new_conn
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x000002484F87FBD0>: Failed to establish a new connection: [WinError 10051] A socket operation was attempted to an unreachable network

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "requests\adapters.py", line 486, in send
File "urllib3\connectionpool.py", line 847, in urlopen
File "urllib3\util\retry.py", line 515, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='ident.me', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002484F87FBD0>: Failed to establish a new connection: [WinError 10051] A socket operation was attempted to an unreachable network'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "autoshop.py", line 478, in
File "autoshop.py", line 97, in init
File "requests\api.py", line 73, in get
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 519, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='ident.me', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002484F87FBD0>: Failed to establish a new connection: [WinError 10051] A socket operation was attempted to an unreachable network'))

Input port number

Can you add a way to input adb port number manually?
I see that you have some commented code related to this in the installer version (v1.3)
Also I think the installer version is not the same as in the main branch.

Error for just the first item

Hello,

I've been using the program for a while and just noticed this error a few days ago. The script does not seem to recognize the first item in my shop list. I've tried going through the entire setup process again, and even reinstalled bluestacks.

If bookmarks show up in item 1, the script just scrolls right past it.

python_VxQSHxHznr

ERROR:root:cannot identify image file

ERROR:root:cannot identify image file <_io.BytesIO object at 0x0000015DB186A700>
Traceback (most recent call last):
File "C:\Users\reihi\Downloads\E7AutoShop\build\shop.py", line 263, in main
screenshot = self.screen()
File "C:\Users\reihi\Downloads\E7AutoShop\build\shop.py", line 134, in screen
screenshot = Image.open(BytesIO(img_bytes))
File "C:\Users\reihi\Downloads\E7AutoShop\virtual_env\lib\site-packages\PIL\Image.py", line 3298, in open
raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x0000015DB186A700>

Is this mean I need to take my own picture for this if I may ask?

Crash after first refresh

The app seems to crash after the first refresh happens. I tried reinstalling bluestacks, installing LDPlayer, replacing the adb.exe and 2dlls with platform-tools ones. Here is the error log:

ERROR:root:cannot identify image file <_io.BytesIO object at 0x0000024A8264EFC0>
Traceback (most recent call last):
File "scripts\shop.py", line 272, in main
screenshot = self.screen()
^^^^^^^^^^^^^
File "scripts\shop.py", line 115, in screen
screenshot = Image.open(BytesIO(img_bytes))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "PIL\Image.py", line 3298, in open
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x0000024A8264EFC0>
ERROR:root:cannot identify image file <_io.BytesIO object at 0x0000013B4E7E9D50>
Traceback (most recent call last):
File "scripts\shop.py", line 272, in main
screenshot = self.screen()
^^^^^^^^^^^^^
File "scripts\shop.py", line 115, in screen
screenshot = Image.open(BytesIO(img_bytes))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "PIL\Image.py", line 3298, in open
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x0000013B4E7E9D50>

Here's a video of what happens in game (not sure if this is the way it's supposed to work since it crashes), basically it refreshes and does a few hectic clicks and crashes (same thing happens on both emulators): https://imgur.com/a/rLADjVn

Issue with auto shop screen

error.log
AutoShopScreen

Hello Purpxd,

I was using V1.3 of the AutoShop until today when it stopped working. I installed V1.4, it loads but I get this screen for the Auto Shop. I currently have it installed in C:\E7AutoShop although originally I had it installed on my desktop. Any suggestions?

Force close with this error

Installed the requirements, using Python 3.11

Traceback (most recent call last):
  File "C:\Games\E7AutoShop\build\shop.py", line 263, in main
    screenshot = self.screen()
                 ^^^^^^^^^^^^^
  File "C:\Games\E7AutoShop\build\shop.py", line 134, in screen
    screenshot = Image.open(BytesIO(img_bytes))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Games\E7AutoShop\virtual_env\Lib\site-packages\PIL\Image.py", line 3298, in open
    raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x000001FEEDE3B8D0>
ERROR:root:cannot identify image file <_io.BytesIO object at 0x00000120D50E2F20>
Traceback (most recent call last):
  File "C:\Games\E7AutoShop\build\shop.py", line 263, in main
    screenshot = self.screen()
                 ^^^^^^^^^^^^^
  File "C:\Games\E7AutoShop\build\shop.py", line 134, in screen
    screenshot = Image.open(BytesIO(img_bytes))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Games\E7AutoShop\virtual_env\Lib\site-packages\PIL\Image.py", line 3298, in open
    raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x00000120D50E2F20>
ERROR:root:cannot identify image file <_io.BytesIO object at 0x000002A8AA922610>
Traceback (most recent call last):
  File "C:\Games\E7AutoShop\build\shop.py", line 263, in main
    screenshot = self.screen()
                 ^^^^^^^^^^^^^
  File "C:\Games\E7AutoShop\build\shop.py", line 134, in screen
    screenshot = Image.open(BytesIO(img_bytes))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Games\E7AutoShop\virtual_env\Lib\site-packages\PIL\Image.py", line 3298, in open
    raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x000002A8AA922610>

AutoShop crashing within 5 seconds after pressing START

Program just straight up crashes whenever I'm trying to start AutoShop. Not sure what's causing the problem. It was like this when I first installed AutoShop (couple of days ago) and then after a couple tries it suddenly worked well once and then never again.

I'm using BlueStacks (Pie 64), but it also crashes on LDPlayer (tried it today). Also tried both admin and no admin as well as different file locations for AutoShop.

Experienced 2 types of crashes so far:

Crash 1:
https://github.com/user-attachments/assets/a8194f27-ed55-4208-9b9c-b014d39f7ad7

Crash 1 (On LDPlayer):
https://github.com/user-attachments/assets/114b533c-d919-403e-9c15-ff841e52cfac
(Crashes both on local and remote connection)

Crash 2:
https://github.com/user-attachments/assets/2442b12d-32f1-42cf-b9e7-2fe60d1cef99

Here's what I get in error:

File "PIL\Image.py", line 3339, in open
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x0000019B5109A160>
ERROR:root:cannot identify image file <_io.BytesIO object at 0x000002981066A200>
Traceback (most recent call last):
File "scripts\shop.py", line 218, in main
screenshot = self.screen()
^^^^^^^^^^^^^
File "scripts\shop.py", line 108, in screen
screenshot = Image.open(BytesIO(img_bytes))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

not buying covenant on 1st slot

I saw it happen 2 times, one with 5x covenant bookmarks and another time with 50x mystic medals, if they are placed on the first slot of the shop it just skips it and refreshes to the next page. Any chance to check this?

Crashing shortly after pressing start

Error.log file is as follows:

ERROR:root:cannot identify image file <_io.BytesIO object at 0x000001E513B56660>
Traceback (most recent call last):
  File "scripts\shop.py", line 272, in main
    screenshot = self.screen()
                 ^^^^^^^^^^^^^
  File "scripts\shop.py", line 115, in screen
    screenshot = Image.open(BytesIO(img_bytes))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "PIL\Image.py", line 3298, in open
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x000001E513B56660>

Clicking wrong position

Im using BlueStacks newest version
Have settings for everything
ADB : On
resolution: 1920x1080
DPI: 240
But still clicking at the bottom

Question about auto hunt

I tried the auto-hunt mechanic, but it does nothing, so I'm pretty sure I'm doing it wrong. What i did was i went into repeat battle, exited to lobby with background battling, and then had the UI visible.

windows defender keeps blocking the latest version

Been using this for more than a year until it stopped working recently, downloaded the latest version and windows defender detects it as a threat. Never had this issue with older versions before , maybe something needs to looked at?
(Thanks for the tool btw, saved alot of time.)

2024-04-20 19_28_59

A way to randomize the clicks?

Hello! I was wondering if it's possible for you can make the script randomize the clicks in the area to reduce suspicion. Thanks!

Autorefresh is selecting fodder then getting stuck on fodder purchase screen.

I've noticed that when the bookmark is last on the list and there is a fodder above it sometimes the automatic clicking will select the fodder and then be stuck clicking randomly on the purchase screen while being perpetually stuck.

This has happened twice now, I'm unsure if this happens 100% a bookmark is last on list with a fodder directly above it or if there is some sort of % chance of it occurring with those 2 conditions being met.

The 2nd time this happened I clicked off the mob purchase screen so I wouldn't have to reset the autoshop but it immediately re-selected the fodder for purchase and got stuck again clicking everywhere.

Example 1

Stopped working

The last time I used it was about two weeks ago and it's been working fine without any issue. Today it started to close itself down when I start the refresh.

I've tried reinstalling it, BS 5, resolution 1920x1080, ADB enabled.

No idea where the issue is coming from so I'm just wondering if you can give me an idea from the error log below, thanks.

Error log showing:
ERROR:root:cannot identify image file <_io.BytesIO object at 0x0000020398C5DCB0>
Traceback (most recent call last):
File "C:\Users\X\Desktop\E7 Autoshop\E7AutoShop\build\shop.py", line 263, in main
screenshot = self.screen()
File "C:\Users\X\Desktop\E7 Autoshop\E7AutoShop\build\shop.py", line 134, in screen
screenshot = Image.open(BytesIO(img_bytes))
File "C:\Users\X\Desktop\E7 Autoshop\E7AutoShop\virtual_env\lib\site-packages\PIL\Image.py", line 3298, in open
raise UnidentifiedImageError(msg)

Autoshop misses some items

Very rarely AutoShop misses some items. Around 1 in 300 refreshes it will result an error and fail to capture.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.