Skip to content

Overlay

Lakeland97 edited this page Oct 30, 2026 · 6 revisions

Overlay

Native module (tools/overlay/ in the repository) that replaces two menu handlers with ImGui panels. It also carries the runtime fallback for a native-travel join that stays on the loading screen. It is optional: a client built with the play profile (or --add no_loading_screen) leaves the screen on its own.

What it hooks

At load, two 12-byte patches (mov rax, imm64; jmp rax) replace the handlers and return null:

menu entry handler result
PLAY → FIND MATCH HomePlayMenu.onQuickmatch 0x14062EF80 opens the community-server panel
PLAY → NEW MATCH HomePlayMenu.onHost 0x140630E50 opens the host panel

The game's own chains never run: no region lookup, no Streamote onboarding, no party call. The rest of the menu is untouched.

Servers

The panel fetches a plain-text registry over HTTP (overlay.ini: host, port, path). The repository ships a minimal registry in tools/registry_server.py: it serves the list, accepts POST /heartbeat from a running server, drops entries older than --ttl, and with --probe also TCP-connects to each entry so dead hosts disappear. List format:

Lab Server Alpha|127.0.0.1:7777|3|16
Remote Example|203.0.113.9:7777

The third and fourth fields are optional player counts; when present the row reads name 3/16 host:port.

Selecting a row calls the same native travel the joiner uses (FUN_14148FA60 with an FString, num = len + 1, zeroed FGuid), so the client connects to the chosen host.

Loading screen

A native-travel join never sets the client's map-loaded flag (s_mapLoaded), so the game's per-frame tick never calls closeLoadingScreen and the LOADING... widget stays forever. The client build (no_loading_screen, file 0x7D9B80) returns from the opener instead, so a play client needs nothing here. For an unpatched client the overlay arms the game's own latch (setMapLoaded, FUN_1407DA770) eight seconds after the widget appears; the tick then closes the screen normally and the client renders the live match with no fatal.

Calling closeLoadingScreen directly instead crashes the render thread (RenderingThread.cpp:682), and the map-loaded handler's dedicated-server branch is not reached for a Browse join.

Rendering and input

A Present hook on the DXGI swap-chain vtable draws ImGui over the game; the hook creates and binds its own back-buffer render target because the game unbinds it before Present. A WndProc subclass forwards to the game and only gives ImGui input while the panel is visible.

Build

zig 0.13 (or newer) with ImGui 1.90.9 sources; cross-compiles a Windows x64 DLL from macOS or Linux. The build needs an import library for d3dcompiler_47.dll; the UCRT API-set DLLs (api-ms-win-crt-*.dll) must be resolvable from the directory containing Streamline.exe.

Limits

  • The host panel is a placeholder. Hosting cannot use ClientTravel (a map name returns to the menu). The engine path is UWorld::ServerTravel at vtable slot 63 (+0x1F8, 0x1417D6A70); the Haxe wrapper FUN_1403a3050(UWorld*, uintptr_t hxString, bool, bool) decodes the string handle (even -> *(handle+0x18) is an FString; odd -> handle-1 inline) and calls it. The world handle and the correct argument form are still being wired.
  • Rows are fetched every 10 seconds while the panel is open; there is no latency measurement yet.

Clone this wiki locally