pywin32 dependency fix (#394)

* My pick up and sorc parameters

* Moved the game logic away from the main within the new GameController class.
Refactored the main to use built-in keyboard add_hotkey and wait functions instead of self-written main loop.

* Revert "My pick up and sorc parameters"

This reverts commit 0920a406

* Changed number of loot columns

* Changes as per the comments:
Handle non-existing backup file.
Removed newline at the beginning of GameController class.
Changed line splitted into multiple lines back to a single line.

* Refactored graphic debugger with similar logic to botty to now have a controller.

* Added a small comment on the graphic debugger class and fixed a now-typo on the presented menu

* Bug Fix: if pressing F11 repeatedly the main loop may crash due to self.bot not yet initialized in the game_controller.

A safe solution would be to try and catch all but that would also be an overkill as it would most likely mask exceptions that we might want to make the program crash.

Checking that self.bot is initialized should work for the time being.

* No need to re-assign the resume key within the game controlelr anymore

* Urgent 1 liner bug fix for always_on_top: name 'config' is not defined

* Bug fix, keyboard dependency on game_recovery.py
For some reason PyCharm seems to flag this import as unused while it is actually used.

* Moved pywin32 dependency outside of pip (tested a clean install on two machines with this change and worked fine)

Also removed the win32api import that was causing the issue.

Both changes fix the issue that several people are expereincing on discord separately (either would fix it but both are better).
This commit is contained in:
Francesco
2022-01-05 10:49:44 +01:00
committed by GitHub
parent e099848ed4
commit d35fda18c0
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,7 @@
name: botty
dependencies:
- python=3.9
- pywin32
- pip
- pip:
- pyinstaller
@@ -19,4 +20,3 @@ dependencies:
- pytest-pythonpath
- graphviz
- psutil
- pywin32==225
-1
View File
@@ -2,7 +2,6 @@ import time
import random
import ctypes
import numpy as np
from win32api import GetLastError
from config import Config
from logger import Logger