Overview
Kyber allows you to host both dedicated and non-dedicated servers for Star Wars Battlefront II. Dedicated servers run without a graphical interface and are ideal for 24/7 hosting, while non-dedicated servers allow you to play on your own server.Prerequisites
Before hosting a server, ensure you have:- A valid EA account with Star Wars Battlefront II
- Kyber authentication token
- At least 40 GB of free disk space
- Stable internet connection
- Docker installed (for dedicated servers)
Using the Launcher
Quick Start
Configure Server Settings
Click “Host Server” and configure:
- Server Name: 3-40 characters (required)
- Description: Optional, max 256 characters
- Password: Optional, max 64 characters
- Max Players: 1-64 players (default: 40)
Select Mod Collection
Choose a mod collection from your library. Only gameplay and map mods will be loaded on the server.
Configure Map Rotation
Set up your map rotation using the map rotation builder. See Map Rotations for details.
Using the CLI
For advanced users and dedicated hosting, use the CLI:Basic Command
Environment Variables
The CLI supports these environment variables from source/CLI/lib/commands/start_server_command.dart:116-298:| Variable | Description | Required |
|---|---|---|
KYBER_SERVER_NAME | Server name (3-40 chars) | Yes |
KYBER_SERVER_PASSWORD | Server password | No |
KYBER_SERVER_DESCRIPTION | Server description | No |
KYBER_SERVER_MAX_PLAYERS | Max players (1-64) | No |
KYBER_MAP_ROTATION | Base64 encoded rotation file | No |
KYBER_MOD_FOLDER | Path to mod folder | No |
KYBER_API_TOKEN | Kyber auth token | Yes |
KYBER_INTERFACE_PORT | Interface port (default: 9000) | No |
KYBER_DEDICATED_SERVER | Set to “1” for dedicated mode | No |
KYBER_HIDE_CONSOLE | Hide console window | No |
Command Options
Server Options
Mod Options
Maxima Options
Examples
Dedicated Server with Map Rotation
Non-Dedicated Server
Server with Startup Commands
Create acommands.txt file:
Docker Deployment
Using Docker is the recommended method for hosting dedicated servers.
Docker Compose Example
Server Configuration
Map Rotation Format
Map rotation files use the formatMODE;MAP_PATH per line from source/CLI/lib/commands/start_server_command.dart:192-204:
Mod Loading
When using a mod collection, only mods in the gameplay and maps categories are loaded on the server. The server supports:.fbmodfiles (Frosty mods).fbcollectionfiles (Frosty collections).kbcollectionfiles (Kyber collections)
- Read all mods in the collection
- Filter for gameplay/map mods
- Expand nested collections
- Load custom modes and maps
- Register them with the server
Server Management
Port Configuration
The Kyber interface runs on a configurable port (default: 9000). The CLI automatically finds an available port if not specified:License Management
Kyber handles EA licensing automatically. The server will:- Check for existing Denuvo token
- Fetch license from endpoint if available
- Upload license after game starts
- Cache tokens for reuse
License endpoints are configured via
KYBER_LICENSE_ENDPOINT and KYBER_LICENSE_AUTH_TOKEN environment variables.Monitoring
The server provides logs during startup and operation:Starting login flow...- EA authenticationLogged in as {username}- Successful loginLoaded map rotation with {n} entries- Rotation loadedGame started with PID: {pid}- Game process startedKyber started- Module injection successful
Troubleshooting
Server Name Required Error
Ensure your server name is between 3-40 characters:Rotation File Not Found
Verify the rotation file path exists:Mod Collection Issues
If using--mod-folder, ensure:
- Directory contains exactly one
.kbcollectionfile - All referenced mods exist in the directory
Authentication Failures
For credential issues:- Verify username:password format
- Check for
NO_SUCH_USERerrors - Ensure EA account owns the game
Next Steps
Map Rotations
Build custom map rotations
Server Moderation
Manage players and enforce rules