Repository navigation
Conversation
The setWeather action and PUT /v1/world/lighting were wired up, and the README lists weather under Match control, but nothing in the panel called it. A picker beside the match controls now does, from the catalog's lightings, gated on match.control like the buttons above it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014Sk6xT19yJxWU5eEsSUG6V
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The problem
setWeatheris a Match control action (PUT /v1/world/lighting), and the README lists "weather" under Match control, but no page in the panel calls it. The only way to change the time of day or weather is the API.It matters more on Season 2 (CL-516586). On our server the game does not honour a rotation entry's lighting except rain: an entry queued as
DayEndClearcame up foggy in game, and/v1/statusreportedDayLateGrayFog.PUT /v1/world/lightingdoes work. It changes the match in progress at once, with no reload: fog to clear to rain, each confirmed by a player in game on 2026-10-16. So setting it live is currently the only reliable way to choose the time of day.The change
On the server Overview, under the match buttons, there is a "Time of day & weather" picker with a Set now button. It lists the catalog's lightings by their display labels and calls the existing
setWeatheraction throughact(), the same path as Restart and Force end. It is gated onmatch.controland disabled until a lighting is picked. The "Time of day & weather" row in the status card updates from the live status as before.No server, action or API change: 21 lines in
src/routes/(app)/server/[id]/+page.svelte.Checks
bun run check: 0 errors, 0 warnings.prettier --checkis clean on the file.bun test: the same result with and without this change (21 failures on Windows onmainitself, unrelated).action-matrix.test.tsandactions.test.ts.🤖 Generated with Claude Code
https://claude.ai/code/session_014Sk6xT19yJxWU5eEsSUG6V