Entry 395
Mutation's Flag Race runs: the breeder takes 100 GP, the chosen Grunty walks off, Kite rides it through Dun Loireag for three flags against the clock, and the time is ranked and its prize given
Documented in The Flag Race - menu 88, the race's task and its flags, The riding Grunty - ccPucciguso, the Grunty Flute and pgRideFlag, Dun Loireag - ROOTTOWN02, its clouds, lens flare and water.
This entry answers what was left open by Mutation's breeders offer the Flag Race: three grown Grunties in the town's pens and the race's mail read, then Talk, Flag Race and Rankings.
Linked from Mutation's walking PCs: the later class, its SEARCH PCs and the Flag Race's hiding, and the Event NPC, A new save's Rankings shows the town's racers: the port's empty ranks already take race_ranks in turn, as the game's page and ranking do; the old shot showed the test's own seeded records, The Flag Race test rides as a player would: the test-only ride_put is gone, and Kite walks to the breeder and rides round Dun Loireag's walls to each flag by a planned way, The Grunty's search in a field: Mutation's ride carries it but never starts it, Outbreak and Quarantine start it with Triangle, and the Grunty sniffs out foods, the dungeon or portals, says so and leads Kite there, The Flag Race's result music lasts the results: from Mutation on ccEvVoiceStop does nothing while the race holds the music, so a box's OK no longer cuts it.
Files50 in 19 directories
race.rstown_ride.rslib.rsgrunty.rsmerchant.rsdraw.rsee.rscrates/piney-world/src/map/mod.rscrates/piney-world/src/combat/ride.rscrates/piney-world/examples/race_probe.rsgrunty_probe.rscrates/piney-battle/src/ride.rscrates/piney-battle/examples/ride_probe.rscrates/piney-fieldui/src/menus/flag_race.rsbreeder.rsmod.rscrates/piney-fieldui/src/ctrl.rsdisp.rsrender.rsspr.rslib.rsworld.rscrates/piney-fieldui/examples/fieldui_probe.rscrates/piney-game/src/world.rstown_fx.rscrates/piney-game/src/session/tests/flag_race.rscrates/piney-audio/src/driver.rslib.rsscene.rscrates/piney-desktop/src/view.rscrates/piney-gen/src/race.rstalk.rsdata.rslib.rsmanifest.rscrates/piney-data/src/tables/race.rsfieldui.rsmod.rscrates/piney-data/src/pack.rstools/test_race_rs.pytest_fieldui_talk_rs.pytest_grunty_rs.pytest_ride_rs.pydocs/engine/flag-race.mdgrunty-ride.mdfield-ui.mdtown02.mdUNKNOWNS.mdBUGS.mdGAPS.mdMentioned inBUGS.md:162GAPS.md:89
Issue #56, second part. Entry 394 made Mutation's breeders offer Flag Race and Rankings. Flag Race still closed at once: the race itself was not ported. The page is flag-race.md.
What the game does
- Menu 88 (MUT gcmn 0x0058a4f0) is a script of about 40 steps:
- The greeting, then "100 GP?". The player picks one of three Grunties (page 0x0058c310: names and stars in kt 3), then "Start?".
- It starts the race's task (0x005ff820) and waits. Cancel pauses (Continue or Quit).
- At the end: the time, the rank blinking on the Rankings page, the result's record, the prize (Get Item, menu 29). A town's first win adds its wallpaper, and the grand slam after a first in every town.
- The race (task 0x005ff680
PG_RACE, object 0x005fd120 at main 0x0038bd44):- Set-up: the ride's town path (
ccPuccigusoStartin a town). - The intro: the camera on the chosen Grunty, which
adultMainwalks off by the race's step. - The countdown (se 236-239), the timer and three flags (gimmick 45,
made by
ccSetChibiGusoat level 4 with three pens). - The finish or quit, with the cup's or "out" clips.
main 0x0017a860ranks the time. - The end puts Kite back by the merchant.
- Set-up: the ride's town path (
ccThEvent(main 0x001cb154) waits while the race runs. The map draws the racers.ccPgBgmInitin a town sets the race's music flag, andbgmBreedthen leaves the music alone.
Cause
The port had no menu 88, no race and no town ride.
Fix
piney_world::race(new):Race: the task's loop as a resumable state machine (Pc, one breath a frame): set-up, intro, countdown, clips, HUD, finish, quit, end.Flag,enter_time,split,before_camera_at.- Outward it speaks
RaceEvents, and it fades through aRaceHost.
piney_world::town_ride(new):ccPuccigusoStart, the task andExitin a town, over a townRideWorld. Mutation's ride is inpiney_battle::ride: height 125, the race's handling (RaceRide),main_later,control_move_later.grunty.rs:RaceLinkandrace_step:adultMain's steps 1-7.- Mutation's turns to Kite and back, its ground set in
main, no push out of others. - Each note's position as the note fired (
NoteAt). - A port bug on every volume: a Grunty's body had
mask20x40000001 and kind 2. The game leavesmask2atccCharHit's -1, which no wall matches. Its kind is 16 from Mutation on. The grunty harness's new race scenarios showed it: walking off, the port's Grunty touched a wall the game's does not.
piney_fieldui::menus::flag_race(new): menu 88 and its page. The Rankings blink is/ 12folded at 13 (the page said/ 6). Settings carry their kanji type (kt 3, large fixed).- piney-game:
MenuFader(the race's fades onccMenu.menuFade).- The race's events to sound, effects (
effOpenBox), panel, map and forbid. - The event task's wait while racing, the map's racers, and
RaceStart,RaceQuitandRaceDonefrom the menu.
- piney-audio:
PgBgm::InitTownandPgBgm::RaceEnd, andrace_musicinbgm_breed. - piney-gen: every table found from the code (
race.rs). The talk roots take the race's records. Data version 27.
Checked
- Against the game's code (eemu):
tools/test_race_rs.pyon Mutation, Outbreak and Quarantine: split, enter, hud, count, camera, flag.tools/test_fieldui_talk_rs.py:test_flag_race_declined,test_flag_race_paused,test_flag_race_results. 41 tests pass on Mutation and Infection.tools/test_grunty_rs.py, now volume-aware: passes on Mutation and Infection. Its new scenarios are "raced 145/146/147" and "not raced".tools/test_ride_rs.py: Start and Exit with the town path, all four volumes.
- Played (piney-game
flag_race):mutations_flag_race_runs_and_quits: pay, pick, start, pause, quit.mutations_flag_race_won: ride to the three flags, a rank 1, the wallpaper, the prize. The test steers straight at each flag. After 150 frames stuck on a wall it puts the ride at the flag (ride_put, a test hook, not the game's).
- Shots (
flag_race_shots, ignored), in/mnt/data/claude/scratch/i56/:mut-race-grunties.png,mut-race-countdown.png,mut-race-riding.png,mut-race-cup.png,mut-race-rankings.png. - piney-game's suite (four threads), the touched crates' tests,
piney-gen gen --check, clippy, fmt,cairns checkandtools/docs.py checkpass.
none of #56 is left open. These remain:
- Menus 90 and 91 (MUT gcmn 0x0058d470, 0x0058d9f0) are not ported, and who opens them is not traced.
- The race's task runs its first breath in the frame the menu asks. The game's priority 63 is not modelled.
+0xa6(the restart, 0x005ff520) is set by no code found.- A field ride's charge, Grunty chat and
+0x1e0range from Mutation on (MUT gcmn 0x0052f790, 0x0052f250, 0x00530e50) are not ported. Porting them needs a later volume's field ride in the ride harness. - The grunty harness fails on Outbreak and Quarantine before reaching a
Grunty:
test_world_rs's__vt__10ROOTTOWN01is missing there.