Multiplayer
Dedicated server reference
The start options and console commands of the Linux dedicated server, and how players reach it. The download's README.txt has the same reference, plus tmux and systemd setup.
Start a server
The server runs on Linux x64 and ARM64 without a display or graphics card. Start a world and open a room:
./RocketFoundry.Server --save "My World" --create --roomIt prints Room code: XXXXXX. Players open MULTIPLAYER, JOIN and enter that code. The first player to join becomes the world's owner, a co-host who can set the rules, kick players and clear debris from the pause menu.
Run ./RocketFoundry.Server --connection-test on a new machine first. It checks the network, the relay, direct connections and the hosting speed.
Options
| Option | What it does |
|---|---|
--save NAME | The world to host. Required. |
--create | Host the saved world, and create it the first time. |
--new | Start a new world. An existing world of that name is kept in saves-backup/. |
--room | Open a room players join with a six-character code. |
--port N | Also accept direct connections on this port (default 8801). |
--name NAME | The host name players see (default Server). |
--data-root PATH | Where saves, mods, co-hosts, bans and the room code live (default ~/rocketfoundry-server). |
--autosave-seconds N | Save every N seconds of world time (default 30, at least 5). |
--world-systems LIST | A world the server creates plays with research, contracts, funding and resources (comma separated, or all). See Research, contracts and funding below. |
--assets PATH | The game's assets folder. Found on its own next to the server. |
--relay URL | Open the room on another relay (a local one for testing). |
--connection-test | Test this machine's network for hosting, print a report and exit. Add --json for a machine-readable report and --show-addresses to keep IP addresses in it. |
| Option | What it does |
|---|---|
--allow-teleport, --no-teleport | Players may teleport. |
--launch-from anywhere|ground|home | Where players may launch: anywhere (the default), ground (never straight into orbit) or home (only the home world's sites and colony pads, so other worlds are reached by flying). Co-hosts launch anywhere. --no-orbit-launch is the same as ground. |
--allow-drills, --no-drills | Players may drill into terrain. |
--allow-bombs, --no-bombs | Players may detonate bombs. |
--allow-chat, --no-chat | Players may chat. |
--allow-takeover, --no-takeover | Players may take over craft others left behind. |
--allow-custom-images, --no-custom-images | Players may put their own pictures and text on craft and flags. Turning it off removes the ones already there. |
--comm-network, --no-comm-network | Uncrewed craft take commands only with a dish and a link to crew or a ground station. |
--allow-cheat NAME (or --cheat NAME), --no-cheat NAME | Let every player turn a cheat on for their own craft: fuel, electricity, oxygen, indestructible, nogravity, noheat, noscorch, evaparts, deposits, resources or probes. |
--debris-lifetime SECONDS | Remove debris this long after it appears (0 keeps it). |
--pad-cleanup SECONDS|off | Remove a craft left on a launch site nobody has flown, ridden or stood beside for this long (default 300). |
--abandoned-days N|off | Craft nobody has used for N days leave the world: removed when every owner has been away as long (with their stored craft), otherwise moved to the owner's stored craft where it could be recovered. Saved with the world; co-hosts can change it on the WORLD page. |
--everyone-cohost, --no-everyone-cohost | Every player who joins becomes a co-host. |
--no-auto-owner | The first player to join does not become the owner. For public servers: name co-hosts with the cohost command. |
--legacy-input-timing | Time players' inputs as before schedule stamping, a fallback if players with a high ping see more rubberbanding. |
| Option | What it does |
|---|---|
--mod SPEC | Use a mod (repeatable): hangar:ID for a Community Hangar mod, a .spacemod file, a mod folder or a mod in the data root's library. Players receive the world's mods when they join. |
--remove-mod ID | Drop a mod the world no longer uses. |
--update-mods | Move the world's Hangar mods to their newest versions. |
--hangar-search TEXT | List Community Hangar mods that match and exit. |
| Option | What it does |
|---|---|
--log quiet|normal|verbose | How much the console prints. Normal prints events and a health line every minute. |
--log-dir PATH | Also write rotating log files, metrics and a profile every minute. |
--log-budget-gb N | Disk the log files may use in total (default 6). |
--lag-snapshots PATH | Write a report and a copy of the world when the server stalls or lags. |
--lag-spike-ms N | A loop pass this slow counts as a stall (default 250). |
--profile-detail | Also time the inner loops in the minute profile. Costs CPU. |
--stuck-seconds N, --stuck-exit-seconds N | Report a stopped loop, then end the process so its service manager restarts it from the last save. |
--command-pipe PATH | Also read console commands from a named pipe, for servers run by systemd. |
--dump-dir PATH | Write a memory dump of a stuck server there (the newest 3 are kept). |
--authority-stall-seconds N|off | A world that can not be saved or joined for this long warns its players and restarts from the last save (default 600). |
--bench SECONDS | Step the world that long offline, with no network and no saves, and print where the time went. |
Console commands
Type these while the server runs, or send them through --command-pipe. Server versions after 0.8.10 add sync-all and delete-all, and their clear and delete commands reach every star system.
| Command | What it does |
|---|---|
help | The short list of commands. |
players | Who is connected, their ping and connection route. |
status | World time, players, craft, the room code, how long ago the world was saved, the size of its restart checkpoint and the last health line. |
vessels | The largest craft in the home star system with their ids, kind, body, lock and who holds them. |
absent [TEXT] | Players who played here and left, newest first. |
say TEXT | Send a chat line to everyone as the server. |
kick NAME | Remove a player. They may rejoin. |
ban NAME|KEY, unban NAME|KEY, bans | Refuse a player, connected or not, by name or the start of their key. |
cohost NAME, uncohost NAME, cohosts | Manage co-hosts. The owner always stays a co-host. |
everyone-cohost on|off | Make every joining player a co-host. |
chat, images, takeover, teleport, drills, bombs on|off | Change a world rule for everyone. |
launch-from anywhere|ground|home | Change where players may launch from. |
comm-network on|off | Switch the communication network for everyone. |
cheats, cheat NAME on|off | Show or change the cheats players may use on their own craft. |
debris SECONDS|off | Remove debris this long after it appears. |
cleardebris | Clear everyone's wreckage and spent stages now, in every star system. Craft someone flies or rides in stay. |
abandoned | The abandoned craft rule, since when it counts, and what it would take now. abandoned days N|off changes it. |
abandoned list|clean [days=N] [body=BODY] [ground] [confirm=CODE] | List what a cleanup of craft unused for N days would take now, with a code; clean with that confirm= code does it, only while the same craft still match. ground keeps it to craft resting on the ground. |
abandoned seen FILE | Tell the server when players were last here before it started counting: one line each with the start of the player key and an ISO 8601 time. |
sync-all | Bring every player who is out of sync back to the server's time, as a co-host's SYNC EVERYONE does. |
delete CRAFT_ID ... | Delete craft by id, in whichever star system they are. |
delete-all FILTER... [confirm=COUNT] | List every craft that matches all the filters, in every star system: body=BODY, kind=player|debris|asteroid|astronaut, owner=NAME|KEY. Run it again with confirm= and the count it listed to delete them. Craft a connected player flies, rides, watches or has crew aboard stay, and asteroids go only with kind=asteroid. |
locks, lock CRAFT_ID on|off | Show or change which craft other players may fly. |
journeys, journey-discard OWNER_KEY | Players traveling between stars, and discarding a journey its owner left. |
mods, hangar search TEXT, hangar info ID | The world's mods and Community Hangar lookups. |
snapshot [NOTE] | Write a lag snapshot now (needs --lag-snapshots). |
systems | Every star system the server has loaded, how many craft are in it, and why it stays loaded. A loaded system is saved whole every time, so one that never unloads keeps saves large. |
save | Save the world now. |
stop | Save and stop the server. |
delete-all body=mercury kind=debris
delete-all body=mercury kind=debris confirm=12Room codes and addresses
The server keeps each world's room code in relay_room.json in the data root and takes the same code back when it starts again. Keep the data root between restarts and updates. If the relay cannot be reached after a few tries, the server opens a new room and prints the new code.
Players can also join by address: the server's IP address and --port (default 8801), for example 203.0.113.7:8801, or an IPv6 address in brackets such as [2001:db8::7]:8801. An address never changes and does not go through the relay, so it is the fastest route when players are far from the relay or the relay is slow to reach from their network. Open the port in the server's firewall, for IPv6 too.
Running two servers on one machine? Give each its own --data-root and --port.
Research, contracts and funding
Career, with its story and lessons, is single player. A Sandbox world can still play with research, contracts and launch funding, and so can a multiplayer one. The world has one shared program: every player's launch is paid from its funds, every player's flights complete its contracts and milestones, and its research unlocks parts for everyone. The owner and co-hosts buy research and accept contracts. Progress is saved with the world on the server.
Let the server create the world with the systems you want (server versions after 0.8.10):
./RocketFoundry.Server --save "Space Program" --create --room --world-systems research,contracts,funding--world-systems takes research, contracts, funding and resources (colony resources are used up), comma separated, or all. It applies when the server creates the world: with --new, or with --create the first time. A world keeps the systems it was created with.
You can also make the world in the game: NEW SAVE, Sandbox, then turn the systems on under WORLD SYSTEMS. Copy its file from the game's saves folder into the server's saves folder in its data root, and start the server with --save and the world's name, without --new. Any server version can host it this way.
- The game's saves folder:
~/Library/Application Support/Godot/app_userdata/Rocket Foundry/saveson macOS,~/.local/share/godot/app_userdata/Rocket Foundry/saveson Linux,%APPDATA%\Godot\app_userdata\Rocket Foundry\saveson Windows. - Any player's launch spends the shared funds. Name co-hosts with care: they manage research and contracts.
Limits
- Players need the same game version as the server. Download a new server with every game update.
- Multiplayer worlds use patched-conics gravity. A world whose mods ask for N-body gravity runs with patched conics, and the server says so when it starts.
- Server versions after 0.8.10 accept direct connections over IPv4 and IPv6 on the same port; 0.8.10 and earlier over IPv4 only.
- Join by room code or address. There is no public server browser.
- A very full world stops new launches before it would stop saving: players read that the world is full, and every save line in the console says how close it is. Delete old craft (
delete,delete-all) to make room, or let abandoned craft go on their own (--abandoned-days).
Try the beta
Free on Windows, macOS, Linux, Android and iOS.