Skip to content

Roadmap

Lakeland97 edited this page Nov 2, 2026 · 11 revisions

Roadmap

Two projects are queued. Both build on the working backend and patcher described in the README.

An orchestrated stream layer

Streamline was built as two halves: the arena client, and a live layer that watched a Twitch channel and turned audience actions into gameplay. The layer's architecture, endpoints and data paths are on StreamLayer. The client still carries that half — sl.game.pgs.PGSManager, ModVotingManager, BettingManager, FlashSaleManager, BingoManager, WagerGame, the mod components (ModComponent, ModGroupComponent, PropertyModManager), StreamoteUtils, and the endpoint paths /poll, /vote/, /chat/say, /broadcast alongside Twitch IRC and the Twitch API. None of it is connected today, which is why the "Stream" in Streamline is missing.

The goal is not to bring Twitch back. It is to drive the same machinery locally and deliberately:

  • In-game voting. Players vote on the next rule, physics change or mini-game between rounds, using the client's own voting and mod pipeline.
  • A simulated audience. An algorithm stands in for the stream: it proposes mods, votes with a believable spread, and keeps the cadence of a live channel so a solo player or a small group still gets the original rhythm.
  • Real consequences. Whatever wins is applied through the existing mod system, so physics, rules and mini-games actually change.

How it fits together: ModVotingManager.startVoting creates a poll through the service, /poll carries the tally, finishVoting records the winner, and IModManager.applyMod changes the world through PropertyModManager (DurationMod, ModStack) against ModdableComponent properties. The mock already serves the service's session and channel legs; what it cannot do is reach the layer at all. The entry operation sits on a private service base the client only configures behind a flag it does not set on a client boot, and no logged session has sent a private operation, so the channel watcher never starts and a vote is never offered. That limit is documented with its evidence in StreamLayer; a local driver has to start the change itself (startVoting, or activateRandomMod for a poll-free change) rather than wait for the client.

The vote's service shape is channel-scoped: creation posts polls/create and the reply carries poll_id, while the tally is read from channels/<channel>/poll with options and votes. Those two endpoints plus the simulated audience are the server half; the replicated mod state is the client half.

What the research has settled: the service transport is served locally (session heartbeat, user watcher, channels, polls, the rotation and the profile endpoint), hosted matches already apply the game's own catalogue mods without the service, and the catalogue is 29 game_mod_* templates in three per-mode allow-lists. A vote is broadcaster-initiated — startVoting has no caller without one — so the local stream must start the change itself.

The client half is measured. The replicated AppliedMod arrays — ActiveModsRep, ActiveMods and QueuedModsRep — read empty while a mod is visibly running, and a direct write raises no replication delta, so they are not the lever. The live mod state is scripted Haxe state (m_activeMods, modAppliedEvent), surfaced through the sl.ui.hud.AppliedModIndicator card, and the selector is the game-mode ModGroupComponent with its countdown and queueActivateNextMod. What remains is to steer that component, so the game's own apply-and-replicate path stays intact.

Status: research. See OpenProblems item 4.

This is also the front door to hosting: on a stock client, HOME -> PLAY -> NEW MATCH opens a "READY TO HOST STREAMLINE?" panel whose only action is LOG INTO STREAMOTE, so a party on the service is the prerequisite for creating a match. The direct ?listen boot used by the patches is a workaround for that gate; the host still has to pass the launcher check and reach the mock login (host-play), and then a joiner is accepted and the match replicates to both peers.

A host that is not a player

Today the host is always a player: the match lives inside somebody's client. That ties the world to one person's session and closes when they quit.

The client is not stripped of the idea. It contains a dedicated-server path of its own: sl.appserver.game.DedicatedServerManager with getOurURL, getIP, getEc2Metadata, sendHostedGameHeartbeat and startCheckingOpenParty, the NM_DedicatedServer net mode, and a requires DedicatedServer NetMode guard on the host admission path. What it does not have is a proven way in from a normal launch.

The plan has two rungs, in order:

  1. Make the shipped build run as a server. Find whether the engine can be put into dedicated mode from this executable (a launch switch, a config value, or a small patch at the net-mode decision), and what the appserver must answer for that role: a hosted-game heartbeat, an open-party check, the server URL. The local mock can supply those.
  2. If that road is genuinely closed, build a skeleton host. Reduce the executable to the parts a server needs — world, game mode, replication, no rendering or local player — and run that. The match rules live in the game mode, so a skeleton still needs the game's own code, but not its front end.

Either rung needs the same thing from the backend, which is why the mock comes first.

Status: research. See OpenProblems item 3.

Clone this wiki locally