Resource icon

RAT 5 - Server Agent (Windows) 5.8.1

Player Groups & Teleports
Player Groups: Full server-side player group system: create, edit, and delete groups with configurable teleport destination limits and cooldown overrides. Assigning a player to a group is persistent across sessions.

- Teleport destinations are now saved and persisted per player. Groups define the maximum number of destinations and cooldown settings, with blank values inheriting from the default group.

Player Credits
- Players now have a credits field tracked by the server.
- New script functions for reading and awarding credits to players are available in RAT Script.
- Credits are reflected on the Players page as a sortable column after Score.

Bug Fixes
- Fixed an issue where timezone validation rejected all IANA timezones on Linux servers that did not have the system timezone package installed. All IANA timezones now validate correctly regardless of the host OS.
Fixes for some RAT script issues, and a couple for the new scheduler.
Task Scheduler: A built-in cron-based scheduler lets you write RAT Script that runs automatically on a recurring schedule — hourly, daily, on specific days of the week, or any custom cron expression. Tasks can be enabled/disabled, triggered manually with Run Now, and each run is tracked and audited.

Game Server Script Functions: Seven new built-in script functions give event scripts direct control over the game server: `gs_start`, `gs_stop`, `gs_restart`, `gs_status`, `gs_broadcast`, `gs_countdown`, and `gs_countdown_cancel`. Countdowns support milestone announcements (T-60m through T-1s), configurable interval broadcasts, and cancellation. Broadcasts can be routed to in-game say, Discord, or both.

Text Match Event Type: A new `text.match` event type fires for every raw telnet console line, providing the full line as a `$raw_line` token. Use script conditions like `contains($raw_line, "...")` to react to any output the game server produces.

Administration

Owner Recovery Token
: Running `rat5-agent --issue-owner-token` starts the server normally and prints a one-time recovery token to the console log. Use the token from any connected RAT 5 Client to create a new Owner account, even when owner accounts already exist. This eliminates permanent lockout scenarios without touching the database.
Additions

• Pre-start config writing control — Added a managed server setting to choose whether RAT writes a fresh server config file before starting the game server.

Changes

• Managed restarts and world generation now use the latest RAT-managed config values at startup when that setting is enabled.

Fixes

• Fixed cases where managed startup paths could launch the game server without first applying the latest config values.
• Improved reliability around managed shutdown/startup handling tied to these server-setting flows.
Config and install menu items were not displaying in some conditions.