DarkflameServer/Docker_Windows.md
2021-12-10 22:00:00 +01:00

3.8 KiB

Installation under Windows

First Run

  1. Navigate to the Docker download page and download docker.

Docker Download Page

  1. Once the file has finished downloading, run it and proceed through the installation. Make sure, "Install required Windows components for WSL 2" is checked.

Docker Desktop Installer Configuration

  1. If necessary, restart your computer.
  2. After the restart, Docker Desktop will automatically open. If it does not, simply start it like any other program.
  3. If a window "WSL 2 Installation is incomplete." pops up, follow the link and click "WSL2 Linux kernel update package for x64 machines". Run the downloaded file and once that finishes, click "Restart" in the Docker Desktop window.

WSL 2 download

  1. Wait until Docker Desktop has started. You may skip the tutorial.
  2. You may want to disable "OpenDocker Dashboard at startup" in Settings -> General

Disable Autostart

  1. Download the DarkflameServer repository and extract it to a location of your choice.
  2. Inside the extracted folder, copy .env.example and name the copy .env
  3. Open .env with notepad by right-clicking it and selecting Open With -> More apps -> Notepad.
  4. Change the text after CLIENT_PATH= to the location of your client. The folder you are pointing to must contain a folder called client which should contain the client files. Use / instead of \. For example, if you have legouniverse.exe at C:\Users\someone\Downloads\LU\client\legouniverse.exe, enter C:/Users/someone/Downloads/LU
  5. Optionally, you can change the number after BUILD_THREADS= to the number of cores / threads your processor has. If your computer crashes while building, you can try to reduce this value.
  6. After ACCOUNT_MANAGER_SECRET= paste a "SHA 256-bit Key" from https://keygen.io/
  7. If you are not only hosting a local server, change the value after EXTERNAL_IP= to the external IP address of your computer.
  8. Change the two values SECRET_VALUE_CHANGE_ME to passwords only you know. Save and close the file.
  9. In the extracted folder hit Shift+Right Click and select "Open PowerShell window here".

Open PowerShell

  1. In the new window, paste (with right click) or type docker-compose up -d --build and confirm with enter.
  2. Once you see the blinking cursor and the path again, setup has finished and the server is already running.

setup done

  1. Create an admin account by pasting docker-compose exec darkflame /app/MasterServer -a and following the prompts.

admin account creation

  1. You can now login with these credentials at http://your_ip:5000 (replace your_ip with your external IP). There you can create your account for playing as well as generate keys for other people to join; use these at http://your_ip:5000/activate

Normal Use

  1. In Docker Desktop you should now see an entry darkflameserver-main and when you click on it all containers but DarkflameSetup should eventually be green. That means the server is running.

server running

  1. For troubleshooting, you can check the logs of the various parts by clicking their entry.
  2. You can start and stop the server with the corresponding buttons. Once all containers are grey, the server has shut down, and when all containers but DarkflameSetup are green, the server is running. Note that starting and stopping takes some time, please be patient.

start stop buttons