Skip to content

RunicGateway.json

The bridge plugin’s config, written by the framework as oxide/config/RunicGateway.json, or carbon/configs/RunicGateway.json on Carbon. The plugin fills in every key it is missing on load, so a config written by an older version shows the newer keys after the first load with the new one — which is what lets Mod config show a switch before anybody needs it.

Where the first one comes from. The installer writes one holding just ServerId and Port, and only when there is none. On a Pterodactyl egg, the plugin’s first load takes the server id from the RUSTLINK_SERVER_ID variable. After that the file is canonical, and changing either source changes nothing.

KeyWhat it is for
Connection
Host
read-only from the site
Where the sidecar listens. Loopback is the trust boundary
Port
read-only from the site
The sidecar's game port. Must equal its game.bind port
QueueCapLines that may wait for a wedged sidecar before the oldest is dropped
ServerId
read-only from the site
This server's permanent identity on the website. Not the hostname, on purpose
Events
EventsEnabledWhether the website may borrow values or change this world for events at all. Off by default
EventsMaxCratesCrates one event step may place. Lowerable, never raisable past the ceiling
EventsMaxNpcsNPCs one event step may place
EventsMaxRecipientsPeople one reward step may name
EventsMaxTalliesParticipation tallies counting at once
EventsMaxChatLongest line an event or a news post may say in chat
EventsMaxWorldCallsWorld events one run may call: helicopters, cargo ships, airdrops
Map
MapMaxSleepersOffline sleepers one live-map answer carries
MapMaxBasesTool cupboards and vending machines one live-map answer carries

This list is checked against the plugin’s own source on every build.

EventsEnabled ships off. While it is off the site may still list and give back what events hold, so switching it off never strands anything; it may not borrow, place, count, pay or say anything new. See Events, zones and rewards.

Saved from Mod config, EventsEnabled takes effect at once. The bridge never reloads itself, so its other settings apply at its next reload — a server restart, or a reload at the console.

Each EventsMax… key is how much one step may do on this server — or, for EventsMaxWorldCalls, one run, and for EventsMaxTallies, the whole server at once. Two rules hold for all of them:

  • An operator may lower a bound, never raise it past the plugin’s own ceiling. A value above it is brought down to it when the plugin loads.
  • A step over a bound is refused, never trimmed to fit. An event that does less than its author wrote, quietly, is worse than one that says it cannot.

The two Map… keys are different: a map answer over its bound is cut short and says so, because a read has nobody to refuse.

The PluginConfig class in RunicGateway.cs is the authority; rust-link/PROTOCOL.md §6.1 describes the file and §14 to §17 each key as it arrived.