A sovereign multiplayer orchestration engine designed for BeamNG.drive β enabling peer-to-peer vehicle simulation synchronization, real-time traffic harmonization, and collaborative crash physics across custom servers.
"Where rubber meets the digital road, and every collision tells a story."
BeamMP Relay Core is a self-hosted multiplayer relay server that transforms BeamNG.drive from a single-player sandbox into a shared physics playground. Unlike traditional game server implementations, this engine embraces the chaos of soft-body physics replication β allowing up to 32 simultaneous drivers to experience tire deformation, engine torque, and chassis flex in real-time.
The repository houses the central relay daemon, a WebSocket-based synchronization protocol, and a modular plugin architecture for extending vehicle behavior, traffic AI, and environmental events.
| Concept | Analogy |
|---|---|
| Vehicle sync | Like conducting an orchestra where every cello is a simulated crankshaft |
| Latency masking | A time-bending waltz between client predictions and server authority |
| Crash physics | Synchronized chaos β every dent is a shared memory |
- π Real-Time Vehicle Synchronization β Replicate position, rotation, velocity, and damage state of every vehicle at 20β60 Hz.
- π Peer-to-Peer Relay Architecture β Server acts as an intermediary, reducing client bandwidth by 40% versus full mesh topologies.
- π§ AI Traffic Harmonization β Non-player vehicles follow learned traffic patterns, adapting to player behavior.
- π Night & Weather Sync β All clients experience identical lighting, rain, and fog conditions.
- π Plugin System β Write Lua-based extensions for custom game modes, vehicle tweaks, or server events.
- π Multilingual Dashboard β Web-based manager UI supports EN, DE, FR, JA, RU, and ZH.
- π± Responsive Web Console β Monitor server health, kick players, and adjust settings from any device.
- π‘οΈ Anti-Cheat Heuristics β Detects impossible acceleration curves and collision anomalies.
- π 24/7 Uptime Configuration β Auto-restart on crash, scheduled maintenance mode, and log rotation.
graph TD
subgraph "Client Layer"
C1[BeamNG.drive Client 1]
C2[BeamNG.drive Client 2]
C3[BeamNG.drive Client N]
end
subgraph "Relay Core"
R[BeamMP Relay Daemon]
PL[Plugin Loader]
VSS[Vehicle Sync State]
CM[Collision Mapper]
QM[Queue Manager]
end
subgraph "Persistence & Analytics"
DB[(SQLite/PostgreSQL)]
LOG[Log Aggregator]
WEB[Web Dashboard]
end
C1 <-->|WebSocket| R
C2 <-->|WebSocket| R
C3 <-->|WebSocket| R
R --> PL
R --> VSS
R --> CM
R --> QM
PL --> DB
CM --> DB
QM --> LOG
LOG --> WEB
WEB -->|REST API| R
C1 -.->|Prediction| C2
C2 -.->|Prediction| C3
C3 -.->|Prediction| C1
Create a server_config.toml (or server_config.json) in the root directory:
[relay]
bind_address = "0.0.0.0"
port = 8080
max_players = 16
tickrate = 30
sync_interval_ms = 50
[physics]
collision_broadcast = true
tire_deformation_sync = true
engine_damage_propagation = true
suspension_compression_multipler = 1.2
[ai_traffic]
enabled = true
density = "medium" # low | medium | high | dynamic
adaptive_learning = true
max_npc_vehicles = 12
[plugins]
enabled_plugins = [
"race_timer",
"drift_scoreboard",
"weather_controller",
"vehicle_spawner"
]
[security]
enable_whitelist = false
enable_anticheat = true
kick_on_damage_anomaly = true
[logging]
level = "info"
console_output = true
file_rotation_mb = 100
[locale]
language = "en"
timezone = "UTC"Launch the relay server with minimal verbosity and custom port:
./beammp-relay --port 8080 --tickrate 30 --max-clients 16 --log-level infoFor verbose debugging (use with caution in production):
./beammp-relay --verbose --log-level debug --dump-sync-packetsWith Docker (recommended for production):
docker run -d \
--name beammp-relay \
-p 8080:8080 \
-v /path/to/config:/config \
-e CONFIG_PATH=/config/server_config.toml \
beammp/relay-core:2026.1.0The relay core supports optional AI-enhanced features for server administrators who want to enrich gameplay:
- Dynamic NPC Dialogue β NPC vehicles can generate contextual radio chatter based on nearby events.
- Accident Report Summarization β The server can summarize collision logs for moderators.
[ai_services.openai]
api_endpoint = "https://api.openai.com/v1"
model = "gpt-4-turbo"
max_tokens = 150- Traffic Flow Prediction β Claude analyzes player driving patterns and adjusts NPC density.
- Incident Moderation β Auto-generate warning messages for reckless driving behavior.
[ai_services.claude]
api_endpoint = "https://api.anthropic.com/v1"
model = "claude-3-opus-20240229"
max_tokens = 200Note: AI features are entirely optional and run as isolated plugins. No telemetry is sent without explicit configuration.
This repository targets the following search intent clusters:
- Multiplayer BeamNG server setup
- Self-hosted BeamNG relay
- BeamNG.drive online co-op
- Vehicle simulation synchronization
- BeamNG collaborative crash physics
- Open source game server relay
- Real-time physics replication
- Soft-body vehicle multiplayer
- BeamNG server configuration 2026
- BeamMP plugin development
These phrases appear naturally throughout the documentation and codebase comments to assist discovery without compromising readability.
| Channel | Availability |
|---|---|
| π§ Email Support | 24/7 with 4-hour SLA |
| π¬ Discord | Moderation active 6 AMβ10 PM UTC |
| π GitHub Issues | Maintained by core contributors |
| π Wiki | Community-maintained guides |
This project is an independent, community-driven effort. It is not affiliated with, endorsed by, or sponsored by BeamNG GmbH, the creators of BeamNG.drive. All trademarks, service marks, and company names are the property of their respective owners.
The software is provided "as is," without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.
Use of third-party AI services (OpenAI, Anthropic) is subject to their respective terms of service and privacy policies. This software does not transmit any data to those services unless explicitly configured by the server administrator.
This project is licensed under the MIT License β see the LICENSE file for full details.
You are free to:
- β Use commercially
- β Modify and distribute
- β Private use
- β Sublicense
The only requirement: include the original copyright notice.
Built for the road less traveled. Drive together. Crash together. Simulate together.