Skip to content

docs: choose rain that changes grip on a lap the seed picks - #343

Merged
khiet merged 2 commits into
mainfrom
docs/332-rain-on-a-seeded-lap
Nov 8, 2026
Merged

khiet merged 2 commits into
mainfrom
docs/332-rain-on-a-seeded-lap

Conversation

@khiet

@khiet khiet commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

Design only: a mockup comparing three rain versions and ADR 0103 recording grip only. Nothing in the sim or client changes.

Weather pick: Rain (starts on Dry)
  seed picks the lap, from lap 2
    first kart onto that lap -> wetness 0 to 1 over 20 s, held to the flag
      steering x 0.92, acceleration x 0.92, braking x 0.80
      wash-out + 0.05 rad, to at most 0.18
      top speed cap and wear unchanged
      bots keep today's rules

Build issues to file after this merges: the sim and the pick; the look; the playtest and retune. The build waits for the playtest ADR 0085 and ADR 0095 are pending.

Evidence

  • Before: no record of whether rain should exist or what it does.
    After: docs/mockups/rain-on-a-seeded-lap.html and docs/adr/0103-rain-changes-grip-on-a-lap-the-seed-picks.md.

A throwaway trial of about 400 eight-bot races, not committed, scaled the grip factors mid-race:

Rain level Karts past the end cap, 5 laps (of 512) Ace stops a kart after the rain, 5 laps
Dry control 39 1.26
Mild (chosen) 59 1.56
Heavy 104 not averaged; per cell in the mockup

It is enough to compare levels, not to tune. It did not race the ramp, other seeded laps, Tyres Off packs or wets, and did not count missed pit lane forks; the ADR leaves those to the build's sweep. The pack picture is a hand-drawn sketch, so spray still needs a staged eight-kart race.

pnpm test: 1146 passed, including the repo-checks ADR list. pnpm lint: clean.

Screenshots:

Pack sketch, fully wet with the spray budget

Merge Danger

Door: two-way

Docs only; a later ADR can supersede this one before anything is built.

Blast Radius: none

Adds one slug to the repo-checks ADR list. No sim, client or replay change.

khiet added 2 commits November 8, 2026 16:49
Compare visual rain, grip only and a wet tyre in a mockup with a bot
trial, and record grip only in ADR 0103. The build waits for the tyre
tune's playtest.

Closes #332
Wet wash-out peaks near 5% life and falls at 0%, so cap it where a hop's
airtime still lets it go. An extra stop for wets is closer than recorded.
Use the laps pick's own names, and list what the trial did not race.

Refs #332
@khiet khiet linked an issue Nov 8, 2026 that may be closed by this pull request
@khiet
khiet marked this pull request as ready for review November 8, 2026 16:55
@khiet
khiet merged commit 1f9cf87 into main Nov 8, 2026
4 checks passed
@khiet
khiet deleted the docs/332-rain-on-a-seeded-lap branch November 8, 2026 16:55
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.

Design rain that arrives on a lap the seed picks

1 participant