TUI/GUI - Relay between OpenOL clients — a modded client for the game Outlast.
Relay is the UDP server of an OpenOL game. It decides what happens to the shared world (doors, triggers, checkpoints), checks what players report, and sends the result to everyone in the room. It doesn't run the game engine: enemy AI runs on one of the players or in a separate headless simulator, chosen by the relay.
To build it, see docs/BUILD.md. To run it in a container, see docs/HOSTING.md.
- UDP server for 128 clients and up to 64 rooms
- Encrypted traffic, and a server key that clients remember so nobody can impersonate the server
- Rooms with or without a password. Passwords aren't sent over the network, and only their hashes are stored
- Bans — global and per-room, with a reason
- World sync for players who join later: player, door, enemy and pickup states
- Door priority per player — while one player is interacting with a door, the others get a denial (
DOOR_DENY) - Settings storage in
relay.db(JSON) next to the executable - Two interface types: TUI (console with a scrolling log and an input line) and a GUI built on ImGui
- Packet rate limiting and automatic timeout of inactive clients
All settings are stored in the relay.db file (JSON format), which is created next to the executable. Rooms, password hashes and bans are kept there as well:
{
"config": {
"name": "OLServer",
"ip": "0.0.0.0",
"port": "7777"
},
"rooms": [
{
"code": "PUBLIC",
"password": "",
"trusted": [],
"bans": []
}
],
"bans": []
}The file is rewritten when settings are changed through commands/GUI and on server shutdown. The trusted list is no longer used.
The server key is stored separately in relay.db.key. Keep this file: see docs/HOSTING.md.
Available both in the TUI and in the input field on the Log tab in the GUI.
| Command | Description |
|---|---|
list |
List players per room |
rooms |
List active rooms |
kick <id> |
Kick a player |
ban <id> [reason] |
Global ban by the player's IP |
ban room <code> <id> [reason] |
Ban a player in a specific room |
unban <ip> |
Remove a global ban |
unban room <code> <ip> |
Remove a ban in a room |
bans |
List all bans |
room create <code> [password] |
Create a room |
setpw <code> <password> |
Change a room's password |
stats |
Server key, traffic, refused joins, and each player's connection |
log on|off |
Toggle packet logging |
quit |
Shut down the server |
| Project | Purpose |
|---|---|
| OpenOL | The modded Outlast client this Relay is made for |
| Dear ImGui | Graphical interface (GUI build) |
| SDL2 | Window and input for the GUI build on Linux/macOS |
| Monocypher | Encryption and password hashing |
