VocationLife/Docs/Multiplayer.md
pixachux 932157eda5 Add Steam/LAN multiplayer menu with map and IP:Port connect, plus headless web admin.
Players can host or join via Steam or LAN, pick maps, and connect by address; dedicated servers expose an HTTP panel for port and game rules.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-22 19:06:28 +02:00

64 lines
1.4 KiB
Markdown

# Multiplayer, Steam & Server Admin
## In-Game Menu (`M`)
Opens automatically on start and again with **M**:
- **Map** selection
- **Backend**: Auto / Steam / LAN
- **Host Port** + Max Players
- **Find Steam** / **Find LAN**
- **Join selected session**
- **Connect by IP:Port**
- **Play Solo**
## Steam
1. Steam Client must be running.
2. Dev AppId is `480` (Spacewar) in `Config/DefaultEngine.ini` — replace with your own AppId for release.
3. In the menu choose Backend **Steam** or **Auto**.
4. Host on one PC, Find Steam on the other.
LAN/IP works without Steam (Backend **LAN** or Direct Connect).
## Direct Connect
```
IP: 192.168.x.x
Port: 7777
```
Or console: `open 192.168.x.x:7777`
## Dedicated Server Web Admin
On headless / dedicated start, admin UI binds to **AdminHttpPort** (default `8080`):
```
http://192.168.178.129:8080
```
Default password: `vocation` (change in `Config/ServerConfig.ini`).
You can change:
- Server name, game port, max players, map
- LAN / Steam preference
- Game rules (friendly fire, day length, mining respawn, …)
**Game port changes require a server restart.**
JSON status: `GET /api/status`
Force web admin on a non-dedicated run: `-WebAdmin`
## ServerConfig.ini
```ini
[/Script/VocationLife.VocationServerSettings]
ServerName=VocationLife Dedicated Server
GamePort=7777
AdminHttpPort=8080
AdminPassword=vocation
MaxPlayers=4
```