#Real-time Chat Translation (RTT)

1 messages · Page 1 of 1 (latest)

spare wasp
#

Arma Reforger server addon: translates in-game chat in real time per player’s client language and delivers the result to each recipient. Works with any OpenAI-compatible API (local LLM, Ollama, DeepSeek, etc.).

Features

  • One translation per language: Recipients’ languages are collected first; one API request per distinct language, then the same translation is delivered to all players with that language—fewer calls and lower latency.
  • All game languages: Uses engine language codes from WidgetManager.GetLanguage (e.g. en_us, zh_cn, ru_ru, uk_ua).
  • Channel toggles: Enable/disable translation per channel (global, group, faction, vehicle, local, direct) via RTCT.JSON; same as game channel types.
  • Circuit breaker & rate limit: Stops requesting after consecutive failures; per-sender rate limit to prevent abuse.
  • Fallback on failure: On timeout, parse error, or API down, players receive the original message; configurable retries for transient errors.
  • Cache: Same source + language pair is cached; optional persistence across restarts.
  • Config hot reload: Changes to RTCT.JSON are picked up automatically when EnableAutoReload is on.
  • Heartbeat: Optional periodic ping to the API; on success, the circuit breaker is reset so translation resumes.
  • Admin multi-language line: If the sender is an admin, they get one extra line with original + Chinese + English + Russian (visible only to them).

Installation

Dedicated Server

  1. Copy the addon into the server’s addons folder and enable it in the server config or launch options.
  2. Place or generate RTCT.JSON in the server’s profile directory (typically $profile:RTCT.JSON).
  3. Ensure the server can reach your translation API (OpenAI, self-hosted LLM, or proxy).

Config location

Config file is RTCT.JSON on the server (in the engine profile). Clients do not read or write it; they report their UI language to the server via RPC on join or when sending messages.

half socket
#

crazy mod