Weather: order one of the game's weathers from F1, held until GAME DECIDES (MANUAL WEATHER) #4953
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4953
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4952"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@NICKNAMErutschovkonikovan on GitHub · 2026-12-01 15:23 UTC · original
NICKNAMErutschovkonikovan:pr/manual-weather→main· +2149 −21 · 8 files · 2 commits · draftDepends on #4954
Draft until that one is merged. This branch contains its commit
4943a113first, then3de95583. MANUAL WEATHER works through the hook WEATHER FIX puts into the weather's update(one entry hook per function: a second one on the same entry would be refused), and WEATHER FIX
has to keep out while a weather of the player's is held. Only the second commit is this pull
request's own; review it with
git diff 4943a113 3de95583.What it changes
Two live rows in the F1 menu, after WEATHER FIX, in the style of the other
ITEMS:of the game's weather data (cloudless, clear, sunny, scattered clouds, mixed clouds, cloudy,
overcast, hazy and hot, misty, fog, dense fog, sea fog, drizzle, showers, rain, heavy rain,
dry thunder, thunderstorm, tropical storm, hurricane). Enter orders it. The tag at the right
says what became of it:
*picked and not ordered yet, then WAITING, CHANGING, HELD,MISSION (a mission holds the weather, nothing done), MISSING (type not loaded), ENDED (a
mission set its own later), LIVE (the game decides), or NOT ACTIVE (another build). Never
saved (its name starts with
VICTORY_MENU_, and the settings text skips it; a test checksthe text a save writes): the game's own save does not keep a weather ordered either; after a
restart the game decides.
VICTORY_WEATHER_CHANGE, saved): AT ONCE, or over 10, 30, 60 seconds.How (
victory-hle/src/weatherpick.rs), the way a mission's script does it and not through thegame's cheat (its "cycle weather" comes only after the story and stops saving and
achievements): in the weather update's hook, on the update's thread, under the script lock,
through the set-weather native's own function
0x143e950f0with "held" (0x142371e60at once,0x142370eb0over time); GAME DECIDES through the let-go native's0x143eb8510, or0x142370e70for a change of ours still under way with nothing asked. The look at what isasked and every call are under the lock (a look without it that would want to call is done
again under it), and the menu stores WAITING before the order, so the hook's answer is the
last word.
What is "ours" is kept as the game shows it: the type held; the change to it over what was
asked when it began (a second weather over time while one is held: the game keeps the first
asked until the change ends); or the game's 45 s of letting go where the season's list has no
state of the type (if that change ends with ours still asked, it is let go again, so nothing
stays asked that the menu cannot let go).
ours no longer stands, and the game would finish our change into a hold of ours the menu had
forgotten (GAME DECIDES doing nothing, every order saying MISSION). Our change is ended there
(
0x142370eb0(-1, 0.0, 1), the call the game's own end of every asking makes, alreadybyte-checked), theirs is left; the tag says ENDED.
could not take (MISSING) does not stand over it.
of ours held cannot be told from ours and counts as ours (GAME DECIDES would let it go). A
mission's weather of a type when nothing of ours is held is the mission's (MISSION).
switches are passed as 0, as read (the sky's per-frame flag; zeroing the ground's wetness and
puddles). Every place is checked byte by byte at the start; another build, or no hook in the
update, gives NOT ACTIVE and nothing is ordered.
victory-gpu/src/weather.rsgains the order, the answer and the change;weatherfix.rsshares its place checks (
pub(crate)) and callsweatherpick::before_updatefirst; the menuredraws when the hook's answer changes. README: both rows in the F1 guide's WEATHER table and
VICTORY_WEATHER_CHANGE.How it was tested
Commit
3de95583(on4943a113, onorigin/main5fabb46e), Windows, rustc 1.98.1:cargo clippy --workspace --all-targets --locked -- -D warnings: fails with the same fiveerrors as on
main(host/font.rs:213,:260,host/menu.rs:667(now:772, the linesabove it moved),
host/panel.rs:602,:668), nothing else. Becausevictory-gpustopsthere, the crates after it are not linted by that command; the same command with
-A clippy::too_many_arguments -A clippy::manual_is_multiple_of -A clippy::collapsible_if(just those three) passes over the whole workspace.
cargo test --workspace --locked --no-fail-fast: the new tests pass: 12 inweatherpick(thestep logic against a stand-in weather after the title's functions as read: at once, over
time, a second weather over one held, the 45 s of letting go and a letting go that did not
end, a mission holding or taking the weather, a type not loaded, a script setting only the
mix or only the asked state over our change, HELD after MISSING, an image too small left
alone),
weather::a_weather_ordered_is_taken_once, and inhost::menuthe_weather_rows_offer_what_the_hook_takesanda_save_never_writes_the_weather_picked;the 9
weatherfixtests too. Not green overall: the same 9 GPU/WARP tests invictory-shaderas on the WEATHER FIX branch fail (victory-shaderunchanged; they failalone too);
host::card_steps::tests::shared_scratch_eliminates_flight_settle_end_to_endfails, as it does on unchanged
mainalone on this machine; andwatch::many_askers_tests::no_mapping_is_lost_between_askersfailed in the full run andpassed three times out of three when run alone (
watch.rsis unchanged here).cargo build --release --locked -p victory: succeeds.cargo xtask policy: 467 files ok.Ryzen 7 5800X3D, in a combined build with other changes; there its places were found and it
was put in (no NOT ACTIVE). An order carried out by the hook has not been seen in a run:
there is no "manual weather: asked, changing to, mix before and after" line in the logs. The
fixes above (a script over our change, HELD after MISSING) are not in that version's run.
This branch itself was not run in the game.
Checked for overlap
🤖 Generated with Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.