▚s&box/field-guide
lanesguidestagsagent kit
tag

#lobby

3 items (1 guide · 2 fixes)

guides
guide
P2P peer-hosted servers — from working co-op code to a friend actually joining

The operational recipe for shipping player-hosted (P2P) multiplayer in s&box — lobby mechanics, invite codes, the join handshake liveness contract, replication traps, and the three-rung testing ladder — covering the layer the official docs don't document and where live multi-peer sessions actually break.

networkingmultiplayer
fixes
✓ 26.07
"CreateLobby is async — IsActive is still false on the same frame"

Networking.CreateLobby is async — Networking.IsActive is still false on the same frame, so any branch on IsActive takes the wrong path. Gate on your own synchronous mode enum instead.

networkinglobby
✓ 26.07
"Published-build client join reloads the assembly, wiping all statics"

A published-build client join reloads the game assembly, wiping all statics — the reconstruct-not-reset fix from the scene-handoff case has nothing to reconstruct from unless join intent is persisted to disk.

networkingsteam
related tags
networkingwriting-gameplayjoinassembly-reloadasyncmultiplayerp2ppossessionpublished-buildpublishing
aboutagent kitengine 26.07