Repository navigation
Architecture
Layer map, thread model, remoting mounts and local process arrangement of the shipped client.
Streamline.exe (UE 4.11.2, x64, monolithic, image base 0x140000000)
├── hxcpp runtime Immix GC, hx::String, Dynamic, class tables, trace()
├── Haxe game logic hns.* / sl.* / model.* compiled to native C++
│ ├── login state machine LoginGameMode [Login](Login)
│ ├── datastore + entities SessionDataStore, ModelEntity [Entities](Entities)
│ ├── phases GamePhaseManager, SeekGameMode [ListenHost](ListenHost)
│ └── netcode glue SLGameMode, DedicatedServerManager [Joining](Joining)
├── UE 4.11 engine UNetDriver, ClientTravel, GameMode::Login, AGameState
└── HTTP remoting haxe.remoting over libcurl to {AppServerURL}/remoting* [Protocol](Protocol)
| Property | Value |
|---|---|
| Image | PE32+ x64, base 0x140000000, 66 MB |
| SHA-256 | 5b548cd1b6b0c803b043db467df8c8a4c03b3022a2edece97c07f782396c9a422 |
| Engine | UE 4.11.2 (Engine/Build/Build.version) |
| Content |
hns-WindowsNoEditor.pak, 5.2 GiB, UE4 v3, uncompressed, unencrypted |
| Build tag |
HNS-release.2.7.31 (Generated/hns-ver-cooked.txt, log HNS Version ) |
.text |
VMA 0x140001000, raw 0x400 → file = VA − 0x140000C00
|
.rdata |
VMA 0x142CC3000, raw 0x2CC2200 → file = VA − 0x140000E00
|
The two deltas differ by 0x200; mapping is section-aware. The depot holds one binary: no
StreamlineServer.exe, no -server switch, no GIsServer boot path reaching gameplay
(RuledOut). The client's DRM path requires an executable identity; the patch injects a FakeID cave and recomputes the PE checksum (Login).
Game logic: Haxe compiled ahead of time to C++.
- Class names are
.rdataliterals:model.entity.ModelEntity,model.component.player.AccountComponent,sl.config.SLLocalPlayer,appserver.remoting.DataStoreUpdateResponse. A class descriptor carries its name; the adjacent hxcpp name table lists the class's field and method names in declaration order. - Trace lines carry compiled-in
fileName/methodName/lineNumberrecords (GamePhaseManager.hx:181,LoginGameMode.hx:403,MatchOverPhase.hx:69). A failed parse names the Haxe file and line that threw. -
Dynamicis 16 bytes (value + type); a class instance stores fields positionally after the vtable.ModelEntity's name is an inlinehx::Stringat+0x10/+0x18({int length; char* ptr}in two 8-byte words). Anonymous objects (o…g) are hash-laid-out, so positional reads cannot see their fields (Protocol). -
model.Resultis a class, not an enum tag alone; offsets and consumer side in Protocol.
AppServerManager.initialize (FUN_14056e100) builds up to three HTTP clients from the
doHandshake reply:
| Mount | Connection name | Auth | Used for |
|---|---|---|---|
/remoting |
appserver |
none |
doHandshake, postTrackingInfo, startSession, getOpenServer, processUrl, … |
/remoting-pvt |
appserver-pvt |
X-HNS-Auth HMAC |
getCurrentIP, getServerOptions, loadPlayerFromSession, … |
/remoting-config |
appserver-config |
none | getConfig |
The private client exists only with HNS_SHARED_KEY in the environment (one getenv in
FUN_14056e100); initialize creates the private proxy manager+0x28 only inside if (param_3),
where param_3 is netmode == dedicated. A listen host has no private proxy, so a private-plane RPC
from the host dereferences null (ListenHost).
An unimplemented op answered with Result.Success(empty DataStoreUpdateResponse) leaves the client
running on defaults; wire shapes are in Protocol.
model.db.SessionDataStore is a named blob store over m_cache (a StringMap), not an ORM.
- API:
getBlob,hasBlob,createBlob,setBlob,listenForChanges; names from the hxcpp name table beside theSessionDataStoreliteral. - A lookup miss produces
<key> not in the datastore(FUN_140c10400; the literal carries a leading space). - Blobs are created by the branch-B entity push (
updatedEntities+entityTypeInfo), not by a local factory.createBlob/setBlobonly store caller objects and reject duplicates and nulls. -
LocalSessionServiceholds the session context atservice+0x10(createContextFUN_140d36830); its fields are the eight named in Login:m_accounts,sessionID,m_providerString,timeOffset,playerIID,accountID,displayName,trackingID.getPlayerresolvesgetLoadedPlayerByIID(playerIID).
One process. Hxcpp bridge threads register with the Immix allocator on first entry and remain
registered until exit; a collection waits for each to reach an hxcpp checkpoint, which is the stall
in GC. The remoting layer runs its HTTP clients inside the same process, one per mount. Netplay
uses stock UE 4.11 UNetDriver; IpNetDriver replaces the Steam driver under -NOSTEAM and binds
UDP 7777.
Two processes on one machine: the listen host (Streamline.exe, listen 7777) and the joining client
(ClientTravel 127.0.0.1:7777), with mock_appserver.py serving the HTTP side.