Skip to content

PatchIndex

Lakeland97 edited this page Nov 6, 2026 · 36 revisions

PatchIndex

Byte edits used or proposed, with originals read from the shipped Streamline.exe.

Applying the patches

A patched executable is never distributed. tools/patch_client.py applies a named profile to your own copy, verifies the original bytes at every site first, and recomputes the PE checksum:

python3 tools/patch_client.py --profile host --in Streamline.exe --out Streamline.host.exe
python3 tools/patch_client.py --profile client --in Streamline.exe --out Streamline.client.exe
python3 tools/patch_client.py --profile list

client is the DRM identity cave, needed by a copy that logs in; home-model adds the cosmetics fix so the HOME player is dressed; play adds the loading-screen fix so a joined client renders; all-cosmetics adds the full cosmetic id set and the null-id guard, so every slot page opens and lists its items; all-cosmetics-equip adds the two selection caves (an out-of-range pick returns the game's error instead of faulting, and a selected item with no owned variations applies the entity the UI already holds) and the item-id fix (W6). An item the player owns then applies with no dialog; an item outside the starting set applies and reports the missing container entry in a handled dialog. host is the listen-host set and its caves; host-min is the same byte patches without any cave, which isolates the caves from the byte edits. --add/--drop compose variants, and --verify checks an existing output.

Both outputs were run: the host build boots into WaitingForPlayers, and the client build passes the launcher check (Using DRM: FakeID(restrea1)) and reaches LoggedIn. home-model was run too: zero No SkeletalMesh warnings (was 32) and the HOME character is fully dressed.

Offset rules

Every delta below is the full value to subtract from a VA, image base included — the three low-part forms (0xC00, 0xE00, 0x194000) that used to appear here were the subtraction without the base and produced a nonsense file offset if followed literally.

section VMA raw delta rule
.text 0x140001000 0x400 0x140000C00 file = VA − 0x140000C00
.rdata 0x142CC3000 0x2CC2200 0x140000E00 file = VA − 0x140000E00
.data — — 0x140001200 file = VA − 0x140001200
.pdata 0x143D3D000 0x3BA9000 0x140194000 file = VA − 0x140194000

Section table at file 0x298; .rdata header at 0x2C0. .text virtual size 0x2CC1D95, ending at VA 0x142CC2D95; .rdata virtual size 0xDF5AFC, raw 0xDF5C00, ending at VA 0x143AB8AFC with a 0x104-byte raw tail that the GC patches map into.

Row identifiers are page-local

The L/H/W/S/C prefixes number rows per page, not globally: L1 is the FakeID cave on this page and the post-match loop hook in ListenHost; W1 is the wait-for-player rewrite in ListenHost and the SetSkeletalMesh(null) NOP in Archives; S1/S2 are the MatchOver skips here and source ids in Archives. Cite the page with the id (PatchIndex L1, ListenHost W1) whenever the row could be ambiguous, and give new rows a page-unique prefix rather than reusing a number.

Executable cave occupancy

Every cave injected by the profiles, by VA range. Ranges are exclusive at the end.

owner range notes
post-match loop cave 0x143AB8AFC-0x143AB8B1B 31 bytes
equip fatal cave 0x143AB8B1B-0x143AB8B34 25 bytes; wardrobe profiles
equip own cave 0x143AB8B34-0x143AB8B5E 42 bytes; wardrobe profiles
identity cave 0x143AB8B60-0x143AB8BDD 125 bytes; host profile
mod apply cave 0x143FB4700-0x143FB477C 124 bytes; host-mod (experimental) — reads the shared cell and calls the game's apply hop
round-timer cave 0x143AB8BDD-0x143AB8BF4 23 bytes; host profile
null-id cave 0x143FB4788-0x143FB479F 23 bytes; .pdata tail, own header edits
DRM cave 0x142CC2D95-0x142CC2DFD 104 bytes; client profile, .text raw tail — this one overwrites real bytes (the 104-byte tail past .text's virtual size but inside its raw extent), so unlike the others it is not free space

.rdata's raw extent ends at 0x143AB8C00 (its VirtualSize ends at 0x143AB8AFC, where the first cave begins), so 12 bytes remain after the round-timer cave. All six .rdata/.pdata caves are checked to be zero-filled in the shipped image; the DRM cave is the exception and is checked for span and mapping only. Retired diagnostic stubs shared these addresses: the liveness stub occupied 0x143AB8AFC-0x143AB8BD3 and the bounded-wait stub 0x143AB8BE7-0x143AB8C00; both overlap live caves and must never be combined with them. The null-id cave lives in the .pdata tail and raises its own section header, which is why the .pdata row above exists.

After any edit, recompute the PE optional-header checksum (tools/fix_pe_checksum.py); it is not a DRM gate (Login).

Status: applied = installed and observed in a run; verified = byte-verified on a copy, not run; proposed = designed only; refuted = tried and disproved.

Login / DRM / presentation

id purpose VA file original patch status
L1 FakeID DRM cave: constructs DRMType.FakeID(restrea1) 0x142CC2D95 0x2CC2195 n/a (injected) cave + token restrea1, builder 0x140d170c0 (ctor 3) applied
L2 hide Game Session ID is null (diagnostic only) 0x1407BF4FF 0x7BE8FF 0F 84 DD 03 00 00 E9 DE 03 00 00 90 proposed
L3 rejected: force the has-id branch 0x1407BF50A 0x7BE90A 0F 85 60 03 00 00 E9 61 03 00 00 90 refuted (fabricates a rich-presence URL)

L2 is not needed; the line gates nothing. L1 is a code cave, listed because every launch depends on it.

Host bootstrap

H rows are the listen-host set; interactions are in ListenHost.

id purpose VA file original patch status
H1 StartPlay accepts Hosted off-dedicated 0x1407B2A2E 0x7B1E2E 84 C0 31 C0 applied
H2 Login retention (return the spawned controller) 0x141700822 0x16FFC22 7F 95 90 90 applied
H3 skip LoggedInPlayer.startLogin 0x140D48650 0xD47A50 40 C3 applied
H4 NOP the inner loadPlayerFromAppServer call (if H3 reverted) 0x140D487A4 0xD47BA4 E8 C7 E8 FF FF 90×5 applied (earlier builds)
H5 skip the empty-IID kick in SetPlayerDefaults 0x1407B0EE3 0x7B02E3 84 C0 31 C0 applied
H6 ret activateServer — cut registration completion 0x140B7E4F0 0xB7D8F0 48 89 5C 24 10 C3 applied
H7 PreLogin skips "No game session ID was provided" 0x1407BB52D 0x7BA92D 84 C0 0F 84 28 03 00 00 31 C0 applied
H8 PreLogin skips NoHost 0x1407BBDC9 0x7BB1C9 84 C0 0F 84 28 03 00 00 31 C0 applied
H9 force m_registered (kills "Server is initializing") 0x1407BA713 0x7B9B13 0F 94 C3 30 DB 90 applied
H10 skip registerServer entirely — do not use with a joiner 0x1407B2DAF 0x7B21AF 84 C0 0C 01 refuted for two clients (leaves m_registered=0)
H11 never travel from the host login (Level present) 0x140B834FA 0xB828FA E8 31 B7 C2 FF 90×5 proposed
H12 semantic isHost for every login (host-only, broad) 0x140D431A0 0xD425A0 E8 CB 8E B5 FF B0 01 90 90 90 applied in host-only tests; do not use with a joiner
H13 disable the 900 s inactivity kick 0x140CC61C0 0xCC55C0 40 55 41 56 C3 applied / verified
H14 extend the phase timer 900 → 86400 s 0x140739AA7 0x738EA7 84 03 00 00 80 51 01 00 proposed

Match start

id purpose VA file original patch status
P3 checkAllPlayersLoaded ≡ true 0x1407B7320 0x7B6720 40 53 55 56 B0 01 C3 90 applied
P5 gate 5b (IsPlayInEditor) can never reject 0x140719440 0x718840 74 1B 90 90 applied
P5b the +0x230 vtable method ≡ true (alternative to P5) 0x14071FA90 0x71EE90 48 83 EC 38 B0 01 C3 90 proposed (wider: four vtables)

P3 + P5 produce the full lifecycle; either alone does nothing while the other gate is false.

MatchOver

id purpose VA file original patch status
M1 rewards report on the public proxy 0x14071F5B9 0x71E9B9 48 8B 49 28 48 8B 49 20 (operand at 0x71E9BC) applied — does not fix the fatal
M2 drop the rewardsComplete early-exit 0x140CC01BE 0xCBF5BE 0F 84 D9 05 00 00 90×6 applied — works with S2
S1 skip getAppServerManager + the proxy call 0x14071F5A5 0x71E9A5 E8 D6 AB 08 00 E9 18 00 00 00 verified; insufficient alone
S2 skip the giveEndOfMatchRewards call 0x140CC0172 0xCBF572 FF 90 80 02 00 00 90×6 applied

m_rewardsComplete (+0x31) is written only at 0x140CC0190 (C6 41 31 01), reachable only from the report's completion callback. S1/S2 without M2 gives "alive but stuck in MatchOver". A bare ret at 0x14071F010 is worse than a call-site NOP: three other tables/sites dispatch the +0x280 vtable method.

Contestants / scoring

DedicatedServerManager.updateMatchData (0x140B97C20) looks each player up in the StringMap at this+0xC8, keyed by SLPlayerState.playerIID. A listen host leaves that property empty, so the map is empty and both players log hx:938 … was not on the contestants list!.

id purpose VA file original patch status
C1 rebuild the map at StartingRound instead of WaitingForPlayers 0x140B80E9B (displacement 0x140B80E9E) 0xB8029E 26 51 04 03 56 51 04 03 applied — required for a late joiner; no effect alone
C2 membership test always passes 0x140B97EC8 0xB972C8 0F 85 53 04 00 00 E9 54 04 00 00 90 refuted — the found path dereferences the null record (crash)
C3 key by display name: consumer calls 0x140B97E6F, 0x140B97F68 0xB9726F, 0xB97368 E8 CC 01 C5 FF, E8 D3 00 C5 FF E8 2C 27 D0 FF, E8 33 26 D0 FF refuted — keys become non-empty, map stays empty
C3′ key by display name: producer reads +0x10/+0x18 0x140B8111A, 0x140B81124 0xB8051A, 0xB80524 8B 83 88 00 00 00, 48 8B 83 90 00 00 00 8B 83 10 00 00 00, 48 8B 83 18 00 00 00 refuted
C4 populate playerIID in initializePlayerState (cave) 0x140D46E30 0xD46230 48 89 5C 24 10 E9 2B 1D D7 02 + 125-byte stub at 0x143AB8B60 applied, see C5
C5 joiner: length test instead of pointer test in the stub 0x143AB8B79, 0x143AB8B85 0x3AB7D79, 0x3AB7D85 4D 85 C9 85 C0 90 applied — makes the name fallback fire for a zero-length session id

C4 + C5 fix identity; C3/C3′ change only the message (Player DevUser (DevUser)), and the record builder FUN_140B7F560 still receives the null playerIID. C1 affects timing only.

Pawn / restart

id purpose VA file original patch status
R1 canRestartPlayer ignores the empty appserver container 0x1407D5833 0x7D4C33 75 14 90 90 applied — removes all :115 warnings, exposes the entity fetch
R2 blunt: canRestartPlayer always true 0x1407D5770 0x7D4B70 40 55 53 B0 01 C3 verified; bypasses the native pre-guard, diagnostic only

R1 keeps the player-state existence and pre-guard checks ([PS+0x31c]&2, [ctrl+0x4c8], existing pawn) and removes only the *(int32*)(PS+0x468) > 1 appserver-data requirement. After R1 the host reaches SLGameMode.hx:558: Failed to get entity for player …: not in the datastore for both players, before any pawn spawn.

Round timer

id purpose VA file original patch status
P1 wire m_timeLimitReached to gotoPhase(RoundEnding) 0x140CBE1B0 0xCBD5B0 C6 41 30 01 C3 E9 28 AA DF 02 + 23-byte cave at 0x143AB8BDD applied — a two-player round ends at 180 s

Test aids

id purpose VA file original patch status
T1 end a two-contestant Tag round (<= 1 -> <= 2) 0x140CCF3F2 0xCCE7F2 01 02 test only; used to observe a two-player MatchOver

The Tag round ends only when the game state's contestant count is <= 1 (ListenHost); this makes an idle two-player round end on the first tick so the payload and the post-match loop can be observed.

Post-match loop

id purpose VA file original patch status
L1 hook the rewardsComplete gate to re-enter WaitingForPlayers 0x140CC01C8 0xCBF5C8 0F 84 CF 05 00 00 E9 2F 89 DF 02 90 + 31-byte cave at 0x143AB8AFC, exit jmp 0x140CC079D applied — rounds loop, no fatal; M2 not applied
L2 .rdata header for the same cave header 0x2C0 0x2C8 / 0x2E4 VS 0x00DF5AFC, chars 0x40000040 VS 0x00DF5C00, chars 0x60000040 applied

The exit must be 0x140CC079D, the original je target. Jumping to 0x140CC078D reloads rbx and rdi from slots written after the hook and corrupts the phase manager's this. With the correct exit the host logs MatchOver → Showing Awards UI → WaitingForPlayers → Starting match → StartingRound and starts another round; the transition is about 40 s after MatchOver. M2 must not be applied: +0x31 is the clock-expiry gate that makes the hook reachable.

GC

id purpose VA file original patch status
G1 bounded collector wait + abort before the mark 0x140534110 0x533510 83 CA FF FF 15 6F F5 78 02 E9 D2 4A 58 03 90 90 90 90 applied
G2 bounded-wait stub, 25 bytes, 3000 ms 0x143AB8BE7 0x3AB7DE7 00×25 BAB80B0000FF1596AA20FF85C07505E91EB5A7FCE9F0B6A7FC applied
G3 .rdata VirtualSize → 0xDF5C00 header 0x2C8 FC 5A DF 00 00 5C DF 00 applied
G4 .rdata Characteristics OR IMAGE_SCN_MEM_EXECUTE header 0x2E4 40 00 00 40 40 00 00 60 applied
G5 skip entries with tid == 0 0x140534100 0x533500 40 38 B9 84 01 00 00 83 B9 8C 01 00 00 00 verified; safe, insufficient
G5b flag edit (same row) 0x140534107 0x533507 75 74 verified
G6 liveness gate (OpenThread/GetExitCodeThread), 215-byte stub 0x1405340FB 0x5334FB — hook + stub at 0x143AB8AFC (file 0x3AB7CFC) applied — does not fix the freeze
G7 bounded 100 ms wait, proceed anyway 0x140534110 0x533510 83 CA FF 6A 64 5A refuted (66 s fatal)
G8 heap threshold 1 GiB in place (17 bytes) 0x1405352D4 0x5346D4 48 63 43 7C 48 C1 E0 0F 48 3B 05 4D C8 58 03 73 23 48 63 43 7C 48 C1 E0 0F 48 3D 00 00 00 40 73 24 90 verified, not run
G9 never collect from the target test 0x1405352E3 0x5346E3 73 23 90 90 run — no change to the stall
G10 drop the second collection (halves the stall) 0x140535358 0x534758 E8 83 EC FF FF E9 12 00 00 00 run — no change to the stall
G11 abort target (correction) 0x1405342F0 0x5336F0 — abort to 0x2F0, not 0x2F7 verified

G5 applies at file 0x533500/0x533507; 0x533510/0x533517 are the hook bytes and the WaitForSingleObject call.

The bounded wait's timeout is the 4-byte LE immediate at file 0x3AB7DE8: E8 03 00 00 = 1000 ms, B8 0B 00 00 = 3000 ms, 88 13 00 00 = 5000 ms. It is not part of a displacement.

Revert: restore G1, zero 0x3AB7DE7..0x3AB7DFF, restore the two header dwords (unless the liveness patch shares them), recompute the checksum.

Join-link crash

id purpose VA file original patch status
J1 redirect UrlAction case 0 (UJoinGame) to the UNoGame body table 0x140672E14 0x672214 EC 24 67 00 (RVA 0x6724EC) 3E 2A 67 00 (RVA 0x672A3E) not needed (the reply envelope was the fix)
J2 skip connectToServer call site 0x671DE4 E8 57 71 13 00 90×5 refuted (still fatal)
J3 skip gotoState(JoiningGame) call site 0x67192D E8 9E AD 00 00 90×5 refuted (still fatal)

Only case 0 clobbers R14, so redirecting the whole case is safe. J1 is not run and is no longer needed: the fatal is the public-plane payload dyncast at 0x1411F77C9 failing on a bare Result.Success(UrlAction) and dereferencing null at 0x1411F781E, before the handler. The mock now returns the branch-A DataStoreUpdateResponse envelope and the client reaches Response: Success(...) and travels. No client patch is required (Matchmaking).

Loading screen

id purpose VA file original patch status
LS1 return from openLocalLoadingScreen (never create the widget) 0x1407DA780 0x7D9B80 40 C3 applied in play

openLocalLoadingScreen is the only creator (one CreateWidget, one AddToViewport(…,1000), handle at 0x143BC5058); every handle reader null-checks, and s_mapLoaded has one native consumer, the per-frame tick gate. A native-travel join never arms that flag, so the widget would never be dismissed. Returning from the opener removes it entirely; a joined client renders the live match with no fatal. The overlay's ArmMapLoaded (arm setMapLoaded, FUN_1407DA770, 8 s after the widget appears) is the runtime fallback for an unpatched client. Direct closeLoadingScreen (FUN_1407D9E60) crashes the render thread; calling it at 15 s or 60 s does not help.

Wardrobe

id purpose VA file original patch status
W1 skip the per-slot SetSkeletalMesh(null) that clears a fresh cosmetic mesh 0x1405E7BBF 0x5E6FBF E8 BC D5 4A 00 90 90 90 90 90 applied (home-model)
W2 list every cosmetic id instead of the owned subset 0x140A84A47 0xA83E47 E8 E4 6F 03 00 E8 D4 FE FF FF applied (all-cosmetics)
W3 out-of-range clothing pick returns the game's "nothing changed" Result 0x1405F7C1A 0x5F701A 48 8B C3 EB 0B E9 FC 0E 4C 03 applied (all-cosmetics-equip)
W4 a selected item with no owned variations applies the entity the UI holds 0x1405F7CE9 0x5F70E9 41 83 7C 24 08 00 E9 46 0E 4C 03 90 applied (all-cosmetics-equip)
W5 an empty cosmetic id takes the no-template path instead of getSingleton 0x1405FD47E 0x5FC87E 4C 8D 4D 58 4C 8D 44 24 40 E9 05 73 9B 03 90 90 90 90 applied (all-cosmetics, all-cosmetics-equip)
W6 a template singleton's instance id is its templateID, so the post-apply refresh asks for the item instead of __singleton__ 0x140894CD5 0x8940D5 4C 8D 4D 07 4C 8D 4D F7 applied (all-cosmetics-equip)

W3/W4 share the 69-byte .rdata hole 0x143AB8B1B..0x143AB8B60 (67 bytes used), which the profile maps executable. The click handler bounds-checks the clothing index and then fetches the item without re-checking, so a stale index null-dereferences at +0x58; W3 returns the game's own no-change Result and W4 applies m_items[index]+8 through 0x1405F833E.

W5 opens the slot pages. The preview apply walks every equipped slot, including one whose id is empty; FUN_1405E9A50 has no non-empty guard, so the empty id reaches getSingleton and it errors. W5's cave takes the game's own no-template path for that case (cave at 0x143FB4788, in the .pdata tail, which the profile also maps executable).

Selecting an item applies the new model. W6 then decides what follows: the item the player owns applies with no dialog, one outside the starting set reports Entity <item> does not exist in collection because the inventory holds the 48 starting items. See OpenProblems.

Summary

class rows
applied and observed to change behaviour H1–H9, H13, P3, P5, S2, G1–G4, R1, C1, C4, C5
applied loop L1/L2, loading LS1
applied, no effect on the target problem M1, G6, H10
verified on a copy, never run G8, H14, P5b, S1, J1, R2
run, no effect on the target problem G9, G10
refuted M2, G7, J2, J3, H10-with-joiner, H12-with-joiner, L3, C2, C3, C3′
proposed only login L2, H11

Clone this wiki locally