Realm Director
Milestone announcements and small rewards for multiplayer servers.
When a player builds their first train, nuclear reactor or rocket silo, destroys their first enemy nest, or sets foot on a new planet, Realm Director tells the whole server and may hand them a small reward. When the team researches a new science pack or planet, or launches its first rocket or space platform, everyone online shares it. Each milestone counts once, ever.
Rewards only contain items the team can already craft. Their value is limited by a budget worked out from the game's own recipes, and by a per-player cooldown and an hourly limit. Everything is a runtime Mod setting, so an admin can change it mid-game without restarting the server.
Milestones
Personal, once per player:
- First of each: locomotive, oil refinery, roboport, nuclear reactor, rocket silo, spidertron, and with Space Age, foundry, electromagnetic plant, biochamber and cryogenic plant. Robots building a player's ghosts count for that player.
- First enemy nest destroyed, by the player's character or something they placed.
- First landing on each planet other than Nauvis.
- Achievements, if the game passes them to mods. On a dedicated server it may not.
Team, once for everyone:
- Each science pack researched, and each planet discovered.
- The first rocket launched, and the first space platform.
When you add the mod to a running save, or update it, progress the save already has is recorded quietly, so old milestones are never announced.
Rewards
A reward is either one of a short list of ready-made gifts, chosen to suit the milestone where it can (rails for a first train, uranium fuel cells for a first reactor, robots, modules, repair packs and more), or a gift an outside agent composed itself (see below).
Each reward has a value budget: small (300) or medium (1000), counted in raw resources. That's 1 per unit of ore, stone, coal or wood and 0.1 per unit of mined fluid, through the cheapest recipe. A player who is offline gets their reward when they're back in the game with a character.
For a team milestone, everyone online gets the reward, each counting against the hourly limit. If the limit can't cover them all, it's announced without one.
Settings
Under Settings → Mod settings → Map (admins, in game or on the server):
| Setting | Default |
|---|---|
| Announce milestones | On |
| Each group: first machines, first nest, first landings, team research and launches, achievements | On |
| Give rewards | On |
| Reward everyone online for team milestones | On |
| Value of a small / medium reward | 300 / 1000 |
| Minutes between a player's rewards | 30 |
| Rewards per hour, server-wide | 4 |
| Wait for the agent | Off |
| Seconds to wait for the agent | 45 |
Milestones that come during a cooldown, or after the hourly limit is reached, are still announced, without a reward. Each announcement is written to the server log.
An optional agent
With Wait for the agent on, an outside program connected over RCON gets a short time to write the announcement and choose the reward, through /director-bridge. The mod offers it the ready-made options and a menu of items the team can craft, each with its value. The agent may pick an option or compose up to five kinds of item from the menu within the budget. The mod checks everything again: the text is cleaned of rich text and length-limited, and anything off the menu or over budget is refused. If the agent doesn't answer in time, the mod announces the milestone itself.
Without an agent, the mod works on its own.
Commands
/director shows the director's status and limits. Admins only; from the server console and RCON it answers in JSON.
Credits
Part of a larger, experimental "Realm" project for the hacktorio server. Works alongside Realm Kits and Realm Research.
MIT licence.