-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor setup process and update README for installation clarity
- Loading branch information
Showing
5 changed files
with
59 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
screenshot.png | ||
last_game_xp.png | ||
./dbd/ | ||
dbdAfk/ | ||
config.ini | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,28 @@ | ||
pip install -r requirements.txt | ||
@echo off | ||
if not exist dbdAfk ( | ||
echo "Creating dbdAfk virtual environment for python..." | ||
python -m venv dbdAfk | ||
) | ||
|
||
echo "Checking for NVIDIA CUDA installation..." | ||
where nvcc > nul 2>&1 | ||
if %errorlevel% neq 0 ( | ||
echo "WARNING: NVIDIA CUDA not found! Please install CUDA Toolkit (this is for detecting text from game (like buttons))." | ||
echo "You can download it from: https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64" | ||
echo "" | ||
echo "If you did install CUDA, restart your computer and run this script again." | ||
echo "If it still doesn't work after restart, try google lol and do not open an issue please." | ||
pause | ||
exit | ||
) | ||
|
||
echo "Activating dbdAfk virtual environment..." | ||
call dbdAfk\Scripts\activate | ||
|
||
echo "Installing requirements... This will take a moment depending on your internet speed." | ||
|
||
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 | ||
pip install -r requirements.txt | ||
|
||
echo "Setup complete. Run 'start.bat' to start the bot." | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
python src/main.py | ||
@echo off | ||
if not exist dbdAfk ( | ||
echo "Calling setup.bat to create dbdAfk virtual environment and install dependencies..." | ||
call setup.bat | ||
) | ||
|
||
echo "Activating dbdAfk virtual environment..." | ||
call dbdAfk\Scripts\activate | ||
|
||
echo "Running the application..." | ||
python src/main.py | ||
pause |