WSL Debian Docker Azerothcore-Playerbots Installation
Table of Contents
- Requirements
- Git Cloning
- WSL Installation
- Docker Installation
- Azerothcore-Playerbots Introduction
- AzerothCore Bot Installation
Requirements
- wsl2
Git Cloning
- Clone Repository:
git clone https://github.com/notepadguyOfficial/Debian-Docker-Azerothcore-Playerbot.git
WSL Installation
-
Open cmd/Powershell and run this command:
wsl --insall -d Debian -
Once Installed, Export the a backup to the desired location:
wsl --export Debian C:\Exampleor
wsl --export Debian D:\Example -
Unregister the Original Debian Image from WSL:
wsl --unregister Debian -
Import it back into your chosen location:
wsl --import Debian C:\Debian C:\Example\Debian.tar --version 2or
wsl --import Debian D:\Debian D:\Example\Debian.tar --version 2
- (Optional) Delete the .tar file to free space:
Remove-Item D:\Example\Debian.tar
- Launch Debian:
wsl -d Debian
Docker Installation
-
see Git Cloning
-
Run WSL via cmd/Powershell:
wsl -d Debian -
Navigate to repository:
cd /mnt/c/to-your-clones-repository-directoryor if you cloned the repository in another drive:
cd /mnt/d/to-your-clones-repository-directory -
run the sh file:
./setup-docker-wsl.sh
- (!Note) If you run the script but with error, This usually means Windows-style line endings instead of the Unix-style.
To fix this run this command
sudo apt install dos2unix #then dos2unix *.sh #final command chmod +x *.sh
- wait until done then restart wsl:
then start the wsl service again
wsl --shutdownwsl -d Debian
Azerothcore-Playerbot
Includes:
- MariaDB-Client (This is only client and will install only if you dont have the mysql command...)
- Docker (Will install if Docker is not installed.)
- Azeroth Core - Playerbots branch
- mod-playerbots
- mod-aoe-loot (optional)
- mod-learn-spells (optional)
- mod-fireworks-on-level (optional)
- mod-individual-progression (optional)
Update
-
To update and get the latest versions, you can run
./uninstall.shwithout deleting the volumes and run./setup.shagain. It will prompt you if you want to delete the volumes. -
You can add modules to the
setup.shfile by scrolling to the "install_mod" section and add the entries you'd like. Or you could do it manually by putting the modules folders into theazerothcore-wotlk/modulesfolder.setup.shwill automatically add the sql. See -
Running
setup.shwill not install anything over again unless you delete a modules folder or theazerothcore-wotlkfolder before. You can run it if you only want to install new modules youve added, it will skip if you already downloaded the repos. -
If you delete modules, remember to run
clear_custom_sql.shfirst and remove the respective tables in the db.
AzerothCore Bot Installation
-
Run Setup sh Script:
./setup.sh -
choose if you want to install modules besides the given one.
- (Optional) You can edit
setup.shto add another modules
-
Wait for docker to install the images.
-
If no error then attach to ac-worldserver by running this command:
docker attach ac-worldserver(!Note) You can dettach from attached service by pressing
ctrl+pandctrl+q. -
Create Azerothcore Account
account create <username> <password> -
Find WSL IP Address
ip addr show eth0(!Important) when connecting to database or game use the wsl ip address.
-
Edit your
<your wow directory root>\Data\enUS\realmlist.wtfand type in the ip address you get in the end of installing..." set realmlist dockerhost_ip 192.168.48.2 " -
Run the Game and your done.