Resource icon

RAT 5 - Server Agent (Windows) 5.7.13

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.