Skip to content

✨ Add rcon exec and rcon eval commands#88

Merged
sakuro merged 2 commits into
mainfrom
feature/add-rcon-exec-and-rcon-eval-commands
Apr 23, 2026
Merged

✨ Add rcon exec and rcon eval commands#88
sakuro merged 2 commits into
mainfrom
feature/add-rcon-exec-and-rcon-eval-commands

Conversation

@sakuro
Copy link
Copy Markdown
Owner

@sakuro sakuro commented Apr 23, 2026

Summary

Add factorix rcon exec and factorix rcon eval commands to control a running Factorio server via the Source RCON protocol, using the rcon-client gem.

Changes

  • Add rcon exec <command> — sends a Factorio console command (e.g. /server-save)
  • Add rcon eval [script] — evaluates a Lua script wrapped in /c; reads from stdin when script is omitted
  • Add setting :rcon config block (host, port, password) with per-command CLI overrides
  • Add RConError, RConConnectionError, RConAuthenticationError under InfrastructureError

Closes #87

sakuro added 2 commits April 23, 2026 20:11
- Add `factorix rcon exec` to send a Factorio console command via RCon
- Add `factorix rcon eval` to evaluate a Lua script; reads from stdin when script argument is omitted
- sentinel_command: "/c" required for Factorio compatibility
@sakuro sakuro merged commit d87fb1b into main Apr 23, 2026
4 checks passed
@sakuro sakuro deleted the feature/add-rcon-exec-and-rcon-eval-commands branch April 23, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add rcon exec and rcon eval commands

1 participant