Skip to content

RLTM Bridge v1.1: rename, protocol v2, server control, settings window and match results - #10

Draft
Minarox wants to merge 168 commits into
mainfrom
dev
Draft

Minarox wants to merge 168 commits into
mainfrom
dev

Conversation

@Minarox

@Minarox Minarox commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Brings main up to date with the work on dev. Draft: to merge only after the in-game tests (docs/TEST-CHECKLIST.md) and the migration of RLTM to the protocol v2 (docs/RLTM-MIGRATION.md).

Summary

Renamed to RLTM Bridge (formerly WSC, WebSocket Controller): folder, solution, project, RLTMBridge.dll, C++ class, name in BakkesMod, rltm_* cvars and commands (saved in rltm_bridge.cfg), X-RLTM-Client header. The repository itself still has to be renamed to RLTM-Bridge in its settings (the links of the documentation already use the new name).

Restored and fixed

  • The game data features (commented out since the move to controllers) are back, in one class split by category: Settings/, WebSocket/, Game/, Protocol/.
  • No more detached thread for the entities (data race with the game thread, could outlive the plugin): throttled in the tick hook.
  • Thread-safe cache of the sent messages, no fmt format string from the network, socket settings applied on load, auto connect, consecutive identical stat events kept, UTF-8 safe serialization, entities skipped when the server doesn't read fast enough, NOMINMAX for MSVC.

Protocol v2 (breaking for RLTM)

  • scoreboard topic (out of match), sparse events counters, asFlip → hasFlip, plugin message with the protocol version and the client name.
  • New topics: spectator (player followed by the camera), stats (advanced statistics), event (kickoff, goal with scorer/assist/speed, overtime, replays, match end, podium), result (complete result of the match, deduplicated with its guid), response.
  • match.guid and match.teams (custom names and colors), entities.time for interpolation.

Server control

  • Whitelisted commands (ping, resync, spectate, ready, hide_hud, focus_player, set_setting, set_replay_name, clear_replay_name), validated and executed on the game thread, size/depth/flood limits, permissions by group.
  • Replay naming from the teams of RLTM: {blue} vs {orange} - Match {game}.
  • Client identification: X-RLTM-Client and optional Authorization: Bearer <token> headers.

Settings window organized by feature, with the status, every setting, previews, and a reset.

Tooling

  • GitHub Actions: unit tests of the messages format (Linux) and MSVC build (artifact RLTMBridge with the DLL), release with the DLL on v* tags.
  • tools/test_server.py to test the plugin without RLTM, rltm_debug mode.

Testing

  • CI green: unit tests (sh tests/run.sh) and MSVC build.
  • Not yet run in game: see the checklist, the points marked ⚠️ are assumptions on the game or the SDK to confirm.

🤖 Generated with Claude Code

https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt

claude added 14 commits October 13, 2026 08:39
GitHub Actions builds the Release configuration with MSVC, vcpkg (cached)
and the BakkesMod SDK, uploads the DLL and attaches it to a release for
each v* tag.

The build number of version.h now comes from the CI (WSC_BUILD_NUMBER):
local builds don't modify version.h anymore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
New "spectator" state topic with the player followed by the camera
("target", null with the free camera) and the camera state, only sent
when it changes. The view target of the camera is compared to the
players of the match, it is never used as a player directly.

The RLTM migration instructions describe the new topic and the dynamic
"watched player" overlay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
New set_replay_name server command: the server sends the teams and the
game number of the series ({ blue, orange, game }), formatted with the
new wsc_replay_name_format cvar ("{blue} vs {orange} - Match {game}"),
or a whole name. The name is given to the replay recorded by the replay
director on each kickoff and at the end of the match, before the replay
is saved, then forgotten: it is only for one match.

The name is sanitized (control characters, surrounding spaces) and
limited to 128 bytes without cutting a UTF-8 character. The commands
can now return a result in their response.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
The settings window is now organized by feature: connection, status,
data sent to the server, spectator, end of the match, server control,
advanced WebSocket settings and reset.

New settings:
- wsc_send_entities and wsc_send_spectator to disable the entities and
  spectator topics (cleared on the server when disabled),
- wsc_hud_names and wsc_hud_match_info, the HUD elements kept when the
  HUD is hidden (the HUD is restored when the setting is disabled),
- wsc_server_allow_camera, _actions, _replay_name and _settings to allow
  the server commands by group.

The status shows the messages and bytes sent, the commands received and
the last one, and the next replay name (with a button to clear it). The
entities interval is a slider applied on release, the replay name format
has a preview, and every setting can be reset to its default value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
The parsing and validation of the server commands, the parameters, the
replay names and the messages serialization move to WSC/Protocol, which
doesn't depend on the BakkesMod SDK. They are unit tested on Linux by
tests/run.sh, in a new CI job required for the releases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
wsc_debug logs the messages sent to the server (except the entities, sent
several times per second) and received from it in the BakkesMod console,
to debug the integration with the server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
The ssl feature (mbedTLS on Windows, with the root certificates of the
system) is the default one, it is now explicit so wss:// keeps working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
wsc_client_name (the name of the computer by default) and the optional
wsc_token are sent in the headers of the connection (X-WSC-Client and
Authorization: Bearer), so the server can tell the computers apart when
several matches are played at the same time and reject an unknown
client. The client name is also sent in the plugin message. The headers
are sanitized (no header injection) and the connection is restarted when
they change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
- result: complete result of the match (guid, client, winner, MVP, score,
  teams, scoreboard, advanced statistics, replay name), sent once at the
  end of the match after its last goal. Kept and sent again on each
  connection until the next match ends, deduplicated with the guid.
- event: kickoff, goal (team, scorer, assister, own goal, ball speed,
  sent once the stat ticker messages are received), overtime,
  replayStart, replayEnd, matchEnded and podium.
- match: unique guid of the match and custom names and colors of the
  teams.
- stats: advanced statistics accumulated on each frame while the ball
  is in play (boost used and collected, time supersonic, on the ground,
  on the wall and in the air, average speed), sent every second, can be
  disabled with wsc_send_stats.

The helpers shared by the game sources move to Game/GameUtils.h.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
docs/TEST-CHECKLIST.md lists everything to check in game, with the
assumptions on the game and the SDK that couldn't be verified yet.
tools/test_server.py is a WebSocket server showing the messages of the
plugin and sending the commands typed in the terminal (including
invalid ones and a flood), to test without RLTM.

Also fix the advanced statistics: the boost used by the cars of a goal
replay was counted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
The "build*" pattern of the .gitignore also ignored
.github/workflows/build.yml, so the CI added before was never pushed.
The pattern now only ignores the build folders at the root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
windows.h, included by the ixwebsocket headers, defines min and max
macros that broke std::min in the settings window and the advanced
statistics (error C2589 on the first MSVC build of the CI).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
The plugin is the bridge between Rocket League and RLTM (Rocket League
Tournament Manager), the WSC (WebSocket Controller) name only described
the technique:
- folder, solution, project, DLL (RLTMBridge.dll), resources and C++
  class renamed to RLTMBridge,
- name shown in BakkesMod and in the settings window: RLTM Bridge,
- cvars and console commands prefixed with rltm_ instead of wsc_, saved
  in bakkesmod/cfg/rltm_bridge.cfg,
- X-RLTM-Client header instead of X-WSC-Client,
- documentation, CI, tests and test server updated.

The settings saved in wsc.cfg aren't loaded anymore (no release used
them yet).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
@Minarox Minarox changed the title WSC v1.1: protocol v2, server control, settings window and match results RLTM Bridge v1.1: rename, protocol v2, server control, settings window and match results Oct 13, 2026
@Minarox Minarox self-assigned this Oct 13, 2026
@Minarox Minarox added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Oct 13, 2026
claude and others added 6 commits October 13, 2026 12:23
The documentation link of the README led to a GitHub Pages 404. The
docs folder is now a MkDocs Material site, in English and in French
(mkdocs-static-i18n, page.md and page.fr.md, with a language selector):
home, getting started, configuration, protocol overview, messages and
commands reference, server integration (Bun/Elysia example, checklist),
development and changelog.

The Docs workflow builds it with --strict (broken links and anchors) on
each push and pull request, and publishes it on GitHub Pages from main
or manually from any branch.

The version is bumped to 1.1.0 to match the changelog, and the RLTM
migration instructions describe the state of the develop branch of RLTM
(token in the URL, one plugin per tournament, {valid} messages, v1 types).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
The plugin can open a WebSocket server only reachable from the computer
(127.0.0.1, disabled by default, rltm_monitor and rltm_monitor_port). It
receives the same messages as the server, even without a server, and its
commands go through the same validation, queue and permissions. Only the
documentation site and the local pages can connect to it: any other
website open in the browser is rejected with its Origin header (unit
tested).

The new Monitor page of the documentation (English and French) connects
to it: plugin, match, camera and traffic summary, live state of each
topic, message log with filters, command buttons and raw commands. The
data of the game is only inserted as text. The settings window has a
Monitor section with a button opening the page.

Also enable the keyboard keys extension of the documentation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
At the end of an online match, the game thread only reads the guid of
the match and the id of its replay. A worker thread waits for the file
saved by the game (up to 3 minutes, until its size stops changing) and
sends it over HTTP to the server: PUT /api/replays/<guid> on the host of
the WebSocket URL, with the token of the URL and the Authorization and
X-RLTM-Client headers. No response, 408, 429 and 5xx are retried 3
times. The thread is stopped and the request cancelled when the plugin
is unloaded.

- Settings: rltm_upload_replays (on by default, needs the replays to be
  saved) and rltm_replays_folder (Documents\My Games\Rocket League\
  TAGame\Demos when empty), with the status of the last replay in the
  settings window.
- Protocol: guid validation and upload URL, unit tested.
- Documentation (EN/FR): replays in the protocol, settings, integration
  checklist, changelog, and the in-game test checklist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013YjAWVKHHJ9BTUqmg1A8xt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Null pointer error Current spectator target Plugin settings Custom replay name Split code

3 participants