Skip to content

Running

Lakeland97 edited this page Nov 1, 2026 · 6 revisions

Running it

The operational sequence for a local two-client match, with the points that are easy to get wrong. Every step assumes your own copy of the game.

1. Patch the pak (both copies)

The client's backend address lives in the pak. The replacement must be the same byte length as the original; the trailing slashes are padding, so a longer host leaves less room.

python3 tools/pak_patch_url.py "<copy>/hns/Content/Paks/hns-WindowsNoEditor.pak" \
    'https://api.playstreamline.com' 'http://127.0.0.1:8096/////////'

The address written here is the one the client dials, so it must match the mock's GUL_BASE.

2. Patch the executables

python3 tools/patch_client.py --profile host-play --in "<A>/hns/Binaries/Win64/Streamline.exe" --out Streamline.host.exe
python3 tools/patch_client.py --profile play --in "<B>/hns/Binaries/Win64/Streamline.exe" --out Streamline.play.exe
python3 tools/patch_client.py --profile host-play --verify Streamline.host.exe

Use separate installs rather than two executables in one folder: the client keeps its settings and saved state beside the executable, and a shared folder lets GameUserSettings and the listen map options bleed between the two roles.

Launching through Steam supplies the launcher identity, so client is not needed. A copy started directly needs the identity cave — that is play, or host-play when the same copy also hosts.

host on its own does not include the identity cave, and started directly it stops at "Streamline must be run online through Steam or Twitch Launcher". host-play is host plus that cave and the cosmetic/loading fixes: it passes the check, reaches the mock login, and — given the map file below — still browses straight into the listen map.

3. Host map

In copy A's hns/Saved/Config/WindowsNoEditor/Engine.ini:

[/Script/EngineSettings.GameMapsSettings]
GameDefaultMap=/Game/Maps/GameCon/GameCon_PersistentLevel
LocalMapOptions=?game=Tag?listen?IsHost=true?PlayerSessionID=host-1

The client rewrites this file on exit, so write it while the game is stopped. ?game= takes a GameModeClassAliases short name: Tag, FreeForAll, Elimination, Bitball (ListenHost).

A fresh install may have no Saved/Config/WindowsNoEditor directory at all, in which case there is no file to edit. The engine accepts the same content from anywhere:

Streamline.host.exe -EngineIni=C:\path\to\engine_listen.ini

A host started that way browses straight to the configured map and opens the listen socket (IpNetDriver listening on port 7777), with no interaction after launch. Use the host-play profile for it: plain host stops at the launcher check.

4. Start the mock

python3 mock_appserver.py 8096

The working configuration is built in. Set GUL_BASE to the address the clients use; binding 0.0.0.0 exposes an unauthenticated server, so keep it on loopback unless the network is trusted. The mock's request log is the first place to look when a join fails.

5. Launch order

  1. Copy A: it reaches HOME, then loads the listen map and waits for a second player.
  2. Copy B: it logs in through the mock and joins (the mock's processUrl reply carries the join link, or the client travels natively to 127.0.0.1:7777).

Expect in A: Join succeeded. Expect in B: Welcomed by server (Level: /Game/Maps/GameCon…), then the round intro, HUD and timer. Expected failure modes:

symptom first check
B stays on the loading widget play profile present (no_loading_screen)
B connects then reports The host has left A has no session context — check that A is the host-play build and logged in, and that H7/H8 are applied
launch does nothing a stale process still holds UDP 7777
B cannot reach the mock pak address and GUL_BASE differ, or a firewall blocks the port
No game session ID was provided / No host is currently on the server A is missing H7/H8 from the host profile

6. Client display

Two clients on one machine each need a window; on a small screen the lower half of the game window can fall outside the desktop, and menu clicks then land nowhere. Move the window before automating clicks, and use the HOME breadcrumb to return instead of repeated BACK clicks.

What the profiles contain

--profile list prints every site with its address and purpose; PatchIndex documents the patches and the cave ranges, and ListenHost records which of them the host actually needs. The profile in patch_client.py is authoritative if a page disagrees.

Clone this wiki locally