Skip to content

Client: apply server-synced time / season / weather#60

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

Client: apply server-synced time / season / weather#60
Kheartz merged 1 commit into
mainfrom
weather_sync

Conversation

@Kheartz

@Kheartz Kheartz commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Fill in the stubbed SetWeather RPC handler so the broadcast environment state actually drives the game via reflection: Scheduler.SetCurrentTime on the live Scheduler instance (date preserved from GetSimulatedTime), SeasonChanger.SetCurrentSeason on its class object (it has no live instance), and WeatherMasterComponent.SetOverrideWeather (forced layer, instant) with the local pawn as world context. Season is remapped from the wire SeasonKind to the game's ESeasonEnum. Adds FindInstancesOfClass (call instance methods on the live object, not the crash-prone CDO) plus reflection-dump debug helpers used to recover the function signatures.

Fill in the stubbed SetWeather RPC handler so the broadcast environment
state actually drives the game via reflection: Scheduler.SetCurrentTime on
the live Scheduler instance (date preserved from GetSimulatedTime),
SeasonChanger.SetCurrentSeason on its class object (it has no live
instance), and WeatherMasterComponent.SetOverrideWeather (forced layer,
instant) with the local pawn as world context. Season is remapped from the
wire SeasonKind to the game's ESeasonEnum. Adds FindInstancesOfClass (call
instance methods on the live object, not the crash-prone CDO) plus
reflection-dump debug helpers used to recover the function signatures.
@Kheartz Kheartz merged commit c1aac94 into main Jun 27, 2026
2 checks passed
@Kheartz Kheartz deleted the weather_sync branch June 27, 2026 21:13
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