Skip to content
Open
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
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Full path to the LEGO Universe client
CLIENT_PATH=./client
# Updates NET_VERSION in CMakeVariables.txt
NET_VERSION=171022
CLIENT_NET_VERSION=171022
# make sure this is a long random string
# generate a "SHA 256-bit Key" from here: https://gchq.github.io/CyberChef/#recipe=Pseudo-Random_Number_Generator(256,'Hex')
ACCOUNT_MANAGER_SECRET=
Expand Down
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ at once. For that:

- [Install Docker Desktop](https://docs.docker.com/get-docker/)
- Open the directory that contains your LU Client
- If the `legouniverse.exe` is in a subfolder called `client`, you're good to go. There may also be a folder `versions`.
- Otherwise, create a new `client` folder and move the exe and everything else (e.g. `res` and `locale`) in there. This is necessary to work around a bug in the client that will prevent that you to log back in after getting disconnected.
- If the `legouniverse.exe` is in a subfolder called `client`, copy & paste it to the current directory.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy and paste is to specific terminology here since docker can, and is lots of times, setup via cli on headless servers. may want ti use more generic language

- Create the `client` folder if it does not exist. If you created the `client` folder, move everything (e.g. `res` and `locale`) in there. This is necessary to work around a bug in the client that will prevent that you to log back in after getting disconnected.
- Download the [docker-compose.yml](docker-compose.yml) file and place it next to `client`.
- Download the [.env.example](.env.example) file and place it next to `client` with the file name `.env`
- You may get warnings that this name starts with a dot, acknowledge those, this is intentional. Depending on your operating system, you may need to activate showing hidden files (e.g. Ctrl-H in Gnome on Linux) and/or file extensions ("File name extensions" in the "View" tab on Windows).
Expand All @@ -429,10 +429,23 @@ at once. For that:
- Avoid `:` and `@` characters
- Once the database user is created, changing the password will not update it, so the server will just fail to connect.
- Set `EXTERNAL_IP` to your LAN IP or public IP if you want to host the game for friends & family
- The directory structure should now be:
```
your-client-directory/
├── docker-compose.yml
├── .env
└── client/
├── legouniverse.exe
├── client/
│ ├── res/
│ └── locale/
├── versions/
└── patcher/
```
- Open a terminal in the folder with the `docker-compose.yml` and `client`
- Run `docker compose up -d`
- This might require `sudo` on Linux, and a recent version of [docker compose](https://docs.docker.com/compose/install/)
- Run `docker exec -it dlu-darkflameserver-1 /app/MasterServer -a` and follow the instructions to create the initial admin account
- Run `docker exec -it darkflameserver /app/MasterServer -a` and follow the instructions to create the initial admin account
- Open <http://localhost:8000> to access Nexus Dashboard with the admin account to create normal users
- Set `AUTHSERVERIP=0:localhost` in `client/boot.cfg`
- Replace `localhost` with the value of `EXTERNAL_IP` if you changed that earlier.
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: dlu

services:
darkflamedb:
container_name: darkflamedb
networks:
- darkflame
image: mariadb:latest
Expand All @@ -21,6 +22,7 @@ services:
retries: 3

darkflameserver:
container_name: darkflameserver
networks:
- darkflame
image: ghcr.io/darkflameuniverse/darkflameserver:latest
Expand Down Expand Up @@ -53,6 +55,7 @@ services:
test: ["CMD", "ls", "/app/resServer/CDServer.sqlite"]

darkflameweb:
container_name: darkflameweb
networks:
- darkflame
image: ghcr.io/darkflameuniverse/nexusdashboard:latest
Expand Down
Loading