Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies to latest as of 10/23/2022 #151

Merged
merged 4 commits into from
Nov 2, 2022
Merged
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
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,38 +90,38 @@ Visit the [Wiki here](https://github.com/steve1316/granblue-automation-pyautogui

# Requirements

1. [Python 3.8.3 (any version higher than this breaks PyTorch)](https://www.python.org/downloads/release/python-383/)
1. [Python 3.8.3 (any version higher than this breaks PyTorch) (In addition: make sure Install to PATH is selected)](https://www.python.org/downloads/release/python-383/)
2. [Granblue Fantasy account](http://game.granbluefantasy.jp/)
3. [Twitter Developer account (optional, needed to farm Raids)](https://developer.twitter.com/en)
4. [VMware Workstation Player (optional, if your computer is strong enough to support virtualization)](https://www.vmware.com/products/workstation-player.html)
5. `New frontend requirement` [Microsoft Edge WebView2](https://developer.microsoft.com/en-us/microsoft-edge/webview2/) (Windows 11 comes with this by default. Failure to install this leads to nothing showing up on the screen when the executable is launched.)
6. `New frontend requirement` [Microsoft Visual C++ 2015-2019 Redistibutable (x64)](https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170)
5. [Microsoft Edge WebView2](https://developer.microsoft.com/en-us/microsoft-edge/webview2/) (Windows 11 comes with this by default. Failure to install this leads to nothing showing up on the screen when the executable is launched.)
6. [Microsoft Visual C++ 2015-2019 Redistibutable (x64)](https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170)
7. 1080p or 1440p screen resolution at 100% window scaling.

## Python Dependencies (make sure to have these installed before moving on to the instructions)

```
# Execute this command in a terminal opened inside the /backend/ folder to install all of these requirements:
# Open a command terminal inside the /backend/ folder with the method of your choice or by holding SHIFT + RMB and selecting `Open Powershell window here` and then execute this command to install all of these requirements:

pip install -r requirements.txt
```

- [PyTorch 1.7.1](https://pytorch.org/) (Installing the CUDA version will improve the speed of template matching if you have a CUDA-compatible GPU)
- [PyAutoGUI 0.9.52](https://pypi.org/project/PyAutoGUI/)
- [Pillow 8.3.2](https://pypi.org/project/Pillow/)
- [opencv-python 4.5.1.48](https://pypi.org/project/opencv-python/)
- [EasyOCR 1.2.1](https://pypi.org/project/easyocr/)
- [numpy 1.20.2](https://pypi.org/project/numpy/)
- [playsound 1.2.2](https://pypi.org/project/playsound/)
- [pyclick 0.0.2](https://pypi.org/project/pyclick/)
- [pyperclip 1.8.1](https://pypi.org/project/pyperclip/)
- [tweepy 3.10.0](https://pypi.org/project/tweepy)
- [discord.py 1.7.3](https://pypi.org/project/discord.py/)
- [dictor 0.1.9](https://github.com/perfecto25/dictor)
- [PyTorch](https://pytorch.org/) (Installing the CUDA version will improve the speed of template matching if you have a CUDA-compatible GPU)
- [PyAutoGUI](https://pypi.org/project/PyAutoGUI/)
- [Pillow](https://pypi.org/project/Pillow/)
- [opencv-python](https://pypi.org/project/opencv-python/)
- [EasyOCR](https://pypi.org/project/easyocr/)
- [numpy](https://pypi.org/project/numpy/)
- [playsound](https://pypi.org/project/playsound/)
- [pyclick](https://pypi.org/project/pyclick/)
- [pyperclip](https://pypi.org/project/pyperclip/)
- [tweepy](https://pypi.org/project/tweepy)
- [discord.py](https://pypi.org/project/discord.py/)
- [dictor](https://github.com/perfecto25/dictor)

# Instructions

1. Download the entire project folder.
1. Download the latest release by heading to the [Releases page](https://github.com/steve1316/granblue-automation-pyautogui/releases) and downloading the latest .zip file. You will know its the correct one to download as it has a .exe executable file in it called `Granblue Automation.exe`. Alternatively if you want to build it by yourself, download the entire project itself and then head over to [Build Instructions](#build-instructions) and follow the steps. Executing `yarn build` will create the .exe and the necessary files in `/src-tauri/target/release/`.
2. Make sure you installed the project dependencies by having Python 3.8.3 installed and ran `pip install -r requirements.txt` as stated above.
3. Open up the game on a Chromium-based browser and log in if you haven't already done so. Click away any daily log in popups until you are at the Main/Home screen.

Expand Down
24 changes: 12 additions & 12 deletions src-tauri/backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
--find-links https://download.pytorch.org/whl/torch_stable.html

torch===1.7.1+cu110
torchvision===0.8.2+cu110
torchaudio===0.7.2
torch===1.12.0+cu116
torchvision===0.13.0+cu116
torchaudio===0.12.0+cu116

PyAutoGUI~=0.9.52
Pillow~=8.3.2
opencv-python~=4.5.1.48
easyocr~=1.2.1
numpy~=1.20.2
PyAutoGUI~=0.9.53
Pillow~=9.2.0
opencv-python~=4.6.0.66
easyocr~=1.6.2
numpy~=1.23.4
playsound~=1.2.2
pyclick~=0.0.2
pyperclip~=1.8.1
tweepy~=3.10.0
discord.py==1.7.3
dictor~=0.1.9
pyperclip~=1.8.2
tweepy~=4.10.1
discord.py==2.0.1
dictor~=0.1.10