Skip to content

Env: sync time/season/weather to late joiners on connect#61

Merged
Kheartz merged 1 commit into
mainfrom
weather_onjoin
Jun 27, 2026
Merged

Env: sync time/season/weather to late joiners on connect#61
Kheartz merged 1 commit into
mainfrom
weather_onjoin

Conversation

@Kheartz

@Kheartz Kheartz commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Server: on player connect, push the current environment to ONLY the joiner (targeted SendRPC, not a broadcast — existing clients already match and a broadcast would re-stream the world for everyone on every join).

Client: cache the latest env from any SetWeather RPC and apply it once the pawn + live Scheduler exist (driven from PostUpdate), so the on-join push lands reliably even when it arrives before the world is fully loaded — the apply needs live game objects. Live changes still apply (next frame).

Tested via: 1) join server and /season winter (observed snow); 2) closed game; 3) relaunch HL and rejoin server; 4) ensured sync'd back to winter.

Server: on player connect, push the current environment to ONLY the joiner
(targeted SendRPC, not a broadcast — existing clients already match and a
broadcast would re-stream the world for everyone on every join).

Client: cache the latest env from any SetWeather RPC and apply it once the
pawn + live Scheduler exist (driven from PostUpdate), so the on-join push
lands reliably even when it arrives before the world is fully loaded — the
apply needs live game objects. Live changes still apply (next frame).
@Kheartz Kheartz merged commit 2a35b8f into main Jun 27, 2026
2 checks passed
@Kheartz Kheartz deleted the weather_onjoin branch June 27, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant