VocationLife/Docs/DedicatedServer.md
pixachux eae24f1c34 Initial VocationLife commit: C++ gameplay module and project foundation.
Source, config, and docs only — UE template assets stay local to save storage.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 23:52:53 +02:00

43 lines
953 B
Markdown

# Dedicated Server Hosting
VocationLife includes a `VocationLifeServer` build target for headless dedicated hosting.
## Build
```bash
Engine/Build/BatchFiles/RunUBT.sh VocationLifeServer Linux Development \
-project="/path/to/VocationLife/VocationLife.uproject"
```
> **Note:** Some UE Linux preview distributions do not ship server targets. Use a full engine build or Windows `VocationLifeServer` target if Linux server compilation is unavailable.
## Configuration
Edit [`Config/ServerConfig.ini`](../Config/ServerConfig.ini):
```ini
[/Script/VocationLife.VocationServerSettings]
ServerName=VocationLife Dedicated Server
MaxPlayers=4
Port=7777
bLANOnly=true
```
## Run
```bash
./VocationLife/Binaries/Linux/VocationLifeServer \
/Game/Engine/Maps/Entry \
-log -port=7777 -MaxPlayers=4
```
## Connect
From a client console (`~`):
```
open 127.0.0.1:7777
```
Or use **H** to host and **J** to join from the in-game pause overlay (LAN).