ROCKET FOUNDRYDownload

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 --room

It 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

Hosting a world
OptionWhat it does
--save NAMEThe world to host. Required.
--createHost the saved world, and create it the first time.
--newStart a new world. An existing world of that name is kept in saves-backup/.
--roomOpen a room players join with a six-character code.
--port NAlso accept direct connections on this port (default 8801).
--name NAMEThe host name players see (default Server).
--data-root PATHWhere saves, mods, co-hosts, bans and the room code live (default ~/rocketfoundry-server).
--autosave-seconds NSave every N seconds of world time (default 30, at least 5).
--world-systems LISTA world the server creates plays with research, contracts, funding and resources (comma separated, or all). See Research, contracts and funding below.
--assets PATHThe game's assets folder. Found on its own next to the server.
--relay URLOpen the room on another relay (a local one for testing).
--connection-testTest 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.
World rules (left out, a rule keeps what the world was saved with)
OptionWhat it does
--allow-teleport, --no-teleportPlayers may teleport.
--launch-from anywhere|ground|homeWhere 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-drillsPlayers may drill into terrain.
--allow-bombs, --no-bombsPlayers may detonate bombs.
--allow-chat, --no-chatPlayers may chat.
--allow-takeover, --no-takeoverPlayers may take over craft others left behind.
--allow-custom-images, --no-custom-imagesPlayers may put their own pictures and text on craft and flags. Turning it off removes the ones already there.
--comm-network, --no-comm-networkUncrewed craft take commands only with a dish and a link to crew or a ground station.
--allow-cheat NAME (or --cheat NAME), --no-cheat NAMELet every player turn a cheat on for their own craft: fuel, electricity, oxygen, indestructible, nogravity, noheat, noscorch, evaparts, deposits, resources or probes.
--debris-lifetime SECONDSRemove debris this long after it appears (0 keeps it).
--pad-cleanup SECONDS|offRemove a craft left on a launch site nobody has flown, ridden or stood beside for this long (default 300).
--abandoned-days N|offCraft 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-cohostEvery player who joins becomes a co-host.
--no-auto-ownerThe first player to join does not become the owner. For public servers: name co-hosts with the cohost command.
--legacy-input-timingTime players' inputs as before schedule stamping, a fallback if players with a high ping see more rubberbanding.
Mods
OptionWhat it does
--mod SPECUse 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 IDDrop a mod the world no longer uses.
--update-modsMove the world's Hangar mods to their newest versions.
--hangar-search TEXTList Community Hangar mods that match and exit.
Long-running servers
OptionWhat it does
--log quiet|normal|verboseHow much the console prints. Normal prints events and a health line every minute.
--log-dir PATHAlso write rotating log files, metrics and a profile every minute.
--log-budget-gb NDisk the log files may use in total (default 6).
--lag-snapshots PATHWrite a report and a copy of the world when the server stalls or lags.
--lag-spike-ms NA loop pass this slow counts as a stall (default 250).
--profile-detailAlso time the inner loops in the minute profile. Costs CPU.
--stuck-seconds N, --stuck-exit-seconds NReport a stopped loop, then end the process so its service manager restarts it from the last save.
--command-pipe PATHAlso read console commands from a named pipe, for servers run by systemd.
--dump-dir PATHWrite a memory dump of a stuck server there (the newest 3 are kept).
--authority-stall-seconds N|offA world that can not be saved or joined for this long warns its players and restarts from the last save (default 600).
--bench SECONDSStep 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.

Console commands
CommandWhat it does
helpThe short list of commands.
playersWho is connected, their ping and connection route.
statusWorld time, players, craft, the room code, how long ago the world was saved, the size of its restart checkpoint and the last health line.
vesselsThe 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 TEXTSend a chat line to everyone as the server.
kick NAMERemove a player. They may rejoin.
ban NAME|KEY, unban NAME|KEY, bansRefuse a player, connected or not, by name or the start of their key.
cohost NAME, uncohost NAME, cohostsManage co-hosts. The owner always stays a co-host.
everyone-cohost on|offMake every joining player a co-host.
chat, images, takeover, teleport, drills, bombs on|offChange a world rule for everyone.
launch-from anywhere|ground|homeChange where players may launch from.
comm-network on|offSwitch the communication network for everyone.
cheats, cheat NAME on|offShow or change the cheats players may use on their own craft.
debris SECONDS|offRemove debris this long after it appears.
cleardebrisClear everyone's wreckage and spent stages now, in every star system. Craft someone flies or rides in stay.
abandonedThe 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 FILETell 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-allBring 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|offShow or change which craft other players may fly.
journeys, journey-discard OWNER_KEYPlayers traveling between stars, and discarding a journey its owner left.
mods, hangar search TEXT, hangar info IDThe world's mods and Community Hangar lookups.
snapshot [NOTE]Write a lag snapshot now (needs --lag-snapshots).
systemsEvery 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.
saveSave the world now.
stopSave and stop the server.
delete-all body=mercury kind=debris
delete-all body=mercury kind=debris confirm=12

Room 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/saves on macOS, ~/.local/share/godot/app_userdata/Rocket Foundry/saves on Linux, %APPDATA%\Godot\app_userdata\Rocket Foundry\saves on 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).
Multiplayer overview →

Try the beta

Free on Windows, macOS, Linux, Android and iOS.

Confirm action

Continue?