GetWeatherRevision

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 13:27, 20 October 2026 by QCherry (talk | contribs) (Release 0.1.9 / BUILD264 / Protocol42: availability and download setup; preserve experimental limits)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getWeatherRevision

Returns the revision number of the authoritative world environment state.

Syntax

int revision = getWeatherRevision()

Parameters

This function does not accept parameters.

Returns

Returns the current non-negative environment revision as an integer.

Examples

Log the revision used for weather synchronization:

outputDebugString("Weather revision: " .. getWeatherRevision())

Notes

  • Available only in server-side resource scripts.
  • Use this with getPlayerWeatherSync when diagnosing whether a client has acknowledged the latest state.

Extended weather from 0.1.9

Available from 0.1.9. Use matching updated clients and server.

This existing API retains its call shape; the catalog is extended, not restricted to five names. See Weather and Weather catalog. Server target/revision and client acknowledgement are not proof of the final rendered image. The new presets still require in-game visual qualification; use compatible clients and test late join, indoor areas and returning to ordinary weather.