feat(progress): a Progress window, a corner panel and marks in the world, and the save's progress for the launcher #2957
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2957
Loading…
Reference in a new issue
No description provided.
Delete branch "neotoxic/Longshot:feat/progress-window"
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?
Summary
Players asked to follow their progress without leaving the game: what is done, what is left, where, and what it takes. This adds a Progress window (
system/progress) and two companions while you play, read live from the game, and gives the launcher's Progress page (LongshotLauncher#366) what it needs to stop keeping its own copy of the catalogue and of the save reader. It replaces #2943 (a tab in main's C++ menu); as HumanBean asked: in mod-api, a window of its own, the catalogue shipped here with its flag names, the launcher using Longshot as its API.content.read.placements) by the ids the catalogue already has.Read first:
game/crates/progress: the catalogue (game/mods/progress/data/catalogue.tsv, one copy, flags and enum values by name) read once, aprogress.savread, a line marked done as the game would have it.game/modapi/schema/game.flags.toml,game/crates/api/src/services/game.rs:flags.getManyandflags.placements(many flags, many placements' done flags, one call each; the placements in one pass over the Bool64bitKey list), andgame.state().savedPlace(the place the save's caption last named: Lake Hylia and Lon Lon Ranch are inside the map HyruleField).game/modapi/schema/game.toml,game/crates/script/src/host.rs,game/crates/game-core/src/watch.rs:flagsChanged, one listener for a list of flags (HumanBean: "We could add a flagsChanged, feel free to add"). One call a frame at most with the flags of its own list that changed (ScriptHost::fire_eachmakes each listener's payload from its filter); the watch goes from 256 to 1,024 flags, all mods andflagChangedtogether; records take lists in the schema.game/crates/ui: a Window'spadding: 0is now its style's (it got the 24 px WINDOW_PAD), so the Progress header sits right under the title bar ("should be properly stuck on").game/mods/progress/src:view.ts(the rules, pure),shared.ts(the catalogue read within 1 ms a frame, the game's values read whole at a load and the frame a place is checked throughitems.checked, kept up to date byflagsChangedbetween, Link's area inside Hyrule Field by the nearest line, and the areas' names as the game gives them in the menu's language throughcontent.read'smapName, the catalogue's own as the fallback),main.tsx(the window),companions.tsx(the corner panel and the marks).game/crates/modtool/src/progress_ops.rs:save_progressandsave_progress_markfor the launcher (mod serve, ormod save-progress <slot>/mod save-progress-mark <slot> <line>). A mark takes the profile's playing lock (a game running refuses it, none can start in the middle), is refused while the game has a save journal to replay, backs the save up and writes it flushed, then renames.Cost: closed, the window runs nothing. The game's values (365 flags, 228 placement keys) are read whole, two calls, at a save's or a map's load and when the game reports a place checked (
items.checked, permissionitems.read); between,flagsChangedkeeps the flags (each watched flag is one hash-table read a frame on the engine's side). Open, the window looks at them every 0.25 s; the companions once a second while one of them is on. A map's placements are read once per map, for the marks and for Link's area.Look (NULL: "follow the menu's colors a bit more"): the window is the Insert menu's card, Show is drawn as the menu's tabs, the chosen rows as the menu lights its rows, section titles as the kit's; one 22 px left edge, softer row stripes, the totals in words, "Rewards filter". The value chip is a step lighter and its needs are said short (
4b5c3242): nothing in brackets, nothing an adult has already ("Ocarina · as an adult" reads "As an adult"), the first items and "+N" past one line.Docs: the modding reference and schema pages from the schema, the game's moments, scripting, permissions and ui pages (docs/modding), docs/dev/reference/game-events.md and mod-ops.md, the guide's settings table, the READMEs.
Testing
Tested: in the game on Windows 11 (RTX 5080, driver 617.42), on mod-api with #2961 merged locally (mod-api's game builds natively on Windows with it), from a save in the Great Deku Tree: the window opens and lists the atlas (screenshots below, English menu), the corner panel shows on entering an area once play starts, a mark is placed from the map's placements (the nearest feasible one there was 80 m away, out of range, so none showed on screen);
system/progressran with no fault. A later play in Hyrule Field found two faults, fixed ine1d7eeab: F3 and F4 (Show, the rewards row) did nothing, since a focused window gets no action but its closeOn and the keys did nothing with it closed, so they are gone; and a Gold Skulltula's mark stayed unseen next to it, its place behind the scene's depth, so the marks are dimmed there now (occlude="fade"). Next to Lake Hylia's pipe Skulltula, still no mark: a Gold Skulltula's placement is its id + 2 and the marks looked up the first id only, fixed in751ede44(checked against the game's map files: every catalogue line with a place finds it, 192 chests, 28 Pieces of Heart, 100 Gold Skulltulas). Then, at 2560x1600: the marks show over the pipe's Skulltula through the wall; the settings now have plain names in the menu's 13 languages and a label distance (a8a85aff); a chosen row or button no longer moves its contents by its border, "Rewards" stays on one line, and needs drop an age their item says (c6393dc8). Then the bars show no gap between done and feasible (and no mustard on an area all done), the counts read done / feasible / all in the bars' colours, a line's tick, diamond and padlock are centred, and the needs and key hints start with a capital (3c7b963e). The header's icons now sit in the middle of their circles and every other area row is shaded too (0e40af34, not yet seen in the game). Seen there and not this pull request's: with any mod window focused, mod-api drew the Insert menu's page behind it; mod-api's new menu (59908c08) replaced that code, to be checked again in the game. Earlier, on Linux (CachyOS, Ryzen 7 5800H, a tester's run of 79e9fea5): F2 and Esc, the counts matchingmod save-progress, the list updating within a second after a teleport,save-progress-markwriting a line and refusing a line done, not feasible, or a profile whose game holds its lock.On Linux on 03/12 (a laptop: CachyOS, COSMIC on native Wayland, RTX 3060, the desktop at 125 %), this pull request's mod as of
84df0bbb(on mod-api's base, with the pop-out work of #3175 on top;dev.py baseandrtbuilt it there): F2 opens the window, the pointer and the keys work in it, with no offset at 125 %. There the corner panel showed through the window when both were on screen: HUD roots are drawn under the windows and the window's page is the Insert menu's card, 90% opaque, so the panel's text showed at 10%. Since72065017the panel goes while the window is open and comes back once it closes (not yet seen in the game).Checks:
cargo test -p progress(the catalogue, each kind of test, names read as hashes, reading and marking synthetic saves), the mod's tests on the fake game (cargo test -p modtool progress_passes_its_tests: the hash, the atlas's areas and groups, the cells, the marks' placements, F2, the corner panel and its setting, the corner panel gone under the window and back after it (it fails without72065017), a flag set in play changing the window, a place checked leaving what is feasible within 3 frames, an area named by the game's text when it has one), tsgo on the mod (mod check --types's),progress_ops(the newest save of a slot, a mark with its backup, refused with the game's lock or a save journal), the menu's layout and the guide's settings table, each system mod's and example's own tests (cargo test -p modtool passes_its_tests, one test a mod since main: 10 passed at02eb8445).cargo test -p api -p modtool -p progress -p longshot-game, clippy andschema-gen --checkpass at84df0bbb; at02eb8445cargo test -p api -p progressandschema-gen --checkpass but forwatch::tests::a_walked_reshade_folder_counts_a_change_once_two_walks_agree, which fails on main @f577a1aetoo. The catalogue in names gives the launcher's hashed copy's decisions on 24 real saves (10 536 lines, 564 identical marks; an off-tree check). An independent review of the diff found nothing blocking; its findings are fixed in0e8a9612.The full game-free suite (
mise run test) on this PC (Windows 11, no clang, no Linux tools), on 04/12, after main was merged in (70b23c94) and the keybind given its row (02eb8445): on main @f577a1ae, in a checkout of its own, 769 passed, 76 failed, 51 skipped; on this branch @02eb8445, 770 passed, 75 failed, 51 skipped. Every failure here also fails on main (checks that need a Linux system or clang: audio, pads, the display, the lifter, the builder..., listed in the comments); main's one more,test_recording_admission.py, passed here. Before, two checks failed on this branch only:test_no_game_title.py, fixed inb5769ae7(the catalogue names the story's characters, items and songs as the game shows them: an allowed file, as the cheats' names are), andtest_menu_i18n.py, which found the keybind's label and help stale in the menu's strings (no row drew them) whiletest_i18n_complete.pyasks for them: the keybind is now a row, so both hold.ffi-gen --checkfinds game/game.h and host-sys's ffi.rs stale, on main @f577a1aeas here.In play on Windows 11 (RTX 5080) on 04/12, at this head: the Gameplay tab's Progress heading starts with Open the Progress window, its key opens and closes the window; F2 opens the window over the corner panel, the panel goes under it and comes back once it closes; the marks show next to their chest or Gold Skulltula and dim behind a wall; a chest opened or a step of the story done shows at once, "here" follows Link from the field to the lake and into the ranch, and the areas are named; Plus+B on a controller opens the window and the D-pad moves in it. All as expected.
The frame time in play against
main@f577a1ae(moved from Still to test), on 04/12 at this head:dev.py ab --scene hyrule-field --runs 2 --set LONGSHOT_SET=system/progress:progress_corner=0,system/progress:progress_marks=falseon Windows 11 (RTX 5080, driver 617.42), the window closed (never opened), the corner panel and the marks off (each run's menu read backprogress_cornerOff andprogress_marksOff), interleaved A1 B1 A2 B2: within the spread (Measurements). No hang, no black frame.Still to test:
Measurements
Verdict: a cost only while something of it shows, well under 1 ms a frame: a tick with the corner panel always shown and the marks on takes 0.52 ms of script time (1.78 ms before
65035c4e, which ended the panel and the marks for the session in the game); with the window closed and both companions off, the frame time is the same asmain's, within the runs' spread (172.4 / 172.7 against 171.9 / 172.5 fps, median frame time 5.79 / 5.78 against 5.81 / 5.79 ms).The frame time against
main, the window closed and the companions offSetup: Windows 11 Pro 26300, RTX 5080, driver 617.42, Ryzen 9 7950X;
dev.py ab --scene hyrule-field --runs 2 --set LONGSHOT_SET=system/progress:progress_corner=0,system/progress:progress_marks=false(the Progress window never opened; cap off, HOS_FPS_MAX=1000; Render resolution 67 %; V-Sync and frame generation off), 60 s a run after the warm-up, interleaved A1 B1 A2 B2.dev.py abprinted each run's line but wrote no Measurements block: the runs differ in the Progress rowsmaindoesn't have (the compared thing) and in switches that are Windows handles (LONGSHOT_BUILDER_PIPES,LONGSHOT_CRASH_BLOCK); the numbers are its per-run lines.f577a1ae02eb8445The mod's script time
Baseline: this branch before
65035c4e(its parent,a6ccbfba): main has no Progress mod, so the mod is measured against its own earlier code, the code that ran 2.2 ms a second in the game and once 5.8 ms.Setup: Windows 11, the dev PC (RTX 5080);
mod test's fake game, cpuScale 1.5; the mod's script time per frame (game.scriptTime), each case on both commits.a6ccbfba65035c4eA test holds the tick under 1 ms times cpuScale in an optimised build (the code before: 1.92 ms against 1.59). In the game: on the Linux run (79e9fea5), the mod's time stayed under 2 ms a frame with the window open; 2.1 ms once at the start and 2.7-3.8 ms when the window opened; the catalogue read takes at most 1 ms a frame since. On Windows before
65035c4e, the companions' tick ran 2.2 ms each second in play, warned about every time, and once 5.8 ms: a callback past 5 ms ends itsevery()for good, so the panel and the marks stopped for the session.Closed, with both companions off, the mod runs no script; what stays is the engine's watch of the catalogue's 365 flags through
flagsChanged(one hash-table read each a frame, up to four for a number), outside the script time above: the frame-time table above is that case.Risks
Inside Hyrule Field, Link's area is the one of the catalogue's line placed nearest him: the game keeps no live place of his there (its
LocationAreavolumes only open the place banner as he enters, the lake's a cylinder over it, the ranch's a small box at its gate, and nothing a mod reads says where he is), so near the field's edge with the lake or the ranch the area can switch a little early or late. A flag the game does not have is left out of theflagsChangedlist (one would have the whole list refused); with the watch full or the event missing, the mod reads the game whole as before. A mark sits where the map places the thing, which for a few placements is under the floor or inside a wall (the label is dimmed there, not hidden). A mark in the save is the launcher's or the command line's only, with the game closed. A new row on the Gameplay tab: the window's key, under the Progress heading, in the menu's language; on the mod's page of the Mods tab its label and help stay in English, as every mod's do there. Its cost with the window closed and the companions off is the flag watch, not measured in frames yet (Measurements).Checklist
Ready for review
main; the title is a Conventional Commit. (main @f577a1aemerged in,70b23c94)mise run testpasses (any failure that also fails onmainis named). (every failure here also fails on main @f577a1ae: Testing and the comments name them)main, or Measurements says why there is nothing to measure. (the frame time against main @f577a1ae, the window closed and the companions off: within the spread; the mod's own times against its earlier code)third_party/untouched; nothing GPL-incompatible.When it applies
tests/that reads changed source is updated, not weakened. (the menu's layout;test_no_game_title.pyallows the catalogue, with its reason)kFadeFlooringpu/vk/world_depth.h, built in the game on Windows with llvm-mingw and on Linux, CachyOS, withdev.py baseandrt, on 03/12; no path code)Co-Authored-By:trailers.🤖 Generated with Claude Code
Possibly related, for context:
@HumanBean could someone try this in the game? I only have Windows, and mod-api's game does not build natively there yet (your CI builds it on Linux), so it has run on the fake game only. What to look at: F2 (or Plus+B) opens the Progress window in play; its counts match the launcher's Progress page on the same save; opening a chest changes the list within a second; after a save at Lake Hylia, Lake Hylia comes first, marked here.
What I ran into building mod-api on Windows, in case it helps:
dev.py rtcompiles longshot-builder for the host (MSVC):game/crates/cloth's kernels do not compile withcl. Built forx86_64-pc-windows-gnullvmwith llvm-mingw instead (on Linux, asscripts/longshot_builder.pydoes), it runs, with llvm-mingw'slibunwind.dllbeside it.scripts/longshot_builder.py buildrefuses theoxccrates, whichCargo.locktakes from git (its offline cargo home has crates.io's only).shaderc-sys's CMake takes the firstgccon the PATH, not the toolchain's clang (CC/CXXfix it), and then its object paths under the dev folder'sstore/compile/v1/rust/work/<hash>/target/...reach 296 characters, past what MinGW'sarcan open.40717d78474207d32f9cWIP: feat(progress): a Progress window, and the save's progress for the launcherto WIP: feat(progress): a Progress window, a corner panel and marks in the world, and the save's progress for the launcherThe window and the corner panel in the game, after the rework to the game's scale (Windows 11, RTX 5080, English menu, a save in the Great Deku Tree):
Seen in the game on Windows (2560x1600): - choosing an area, a line or a Show item gave it a 2 px border it did not have, so its contents moved 2 px; the header's items had a 1 px focus border and a 2 px chosen one. Every item and row now keeps a 2 px border, clear until it is chosen (its padding 2 px less, so nothing moves), and the focus only colours it ($focus); - "Rewards 8/8" wrapped once focused and its "8/8" fell out of its button: one line, never shrunk; - the left column's separator (border: { right: 1 }) outlined the whole column: a 1 px divider of its own instead; - the line shown in full sat on the list's last row: 6 px between them, and a kind's heading 2 px higher off its first line. A line's needs leave out "adult" or "child" when an item it needs is that age's alone ("Fairy Bow · as an adult": "Fairy Bow"); an item that is one way of several (in "or" or in brackets) does not count. The rule is ageless() in view.ts, with its test. `Longshot.exe mod test game/mods/progress`: 13 passed. Co-Authored-By: Claude Opus 5.5 <[email protected]>Seen in the game on Windows (2560x1600): - a bar's done part had rounded ends and its feasible part square ones, so a gap showed between them where the feasible part did not fill the done part's curve, and an area all done kept a mustard speck at its right end (the thin bar's fill had a 5 px radius on a 4 px track). The fills now lie on each other from the left with the track's own corners, feasible under done, and one with nothing in it is left out; - an area's count read "11/11", and the header's "91 done · 27 feasible · 321 later": both now read done (green) / feasible (mustard) / all, as their bars show them; - a line's tick and padlock sat at the left of their column and its diamond in the middle: all three are centred; - the needs shown in full ("arc des fées") and in the corner panel started lower case, and so did the keys' hints at the bottom ("ligne", "fermer"): every part of a line's note now starts with a capital, and so do the hints. `Longshot.exe mod test game/mods/progress`: 13 passed. Co-Authored-By: Claude Opus 5.5 <[email protected]>0e40af346a4fdfe56cb587950a67c736dc966180Rebased on mod-api (
36dc9661), thena6a990b9:items.checked, permissionitems.read): a chest opened or a token taken no longer waits for the next poll. A test checks it (it fails with the listener taken out).content.read'smapName, else the area's label inLocationMsg/Location.msbtfor Lake Hylia and Lon Lon Ranch); the catalogue's names stay as the fallback.KIND_ICONSand the header's icons are typedIconName:mod check --typesfailed on them sinceIcontook the stricter type.game.optimized), as fps-counter and menu do; the number is logged either way.Not yet seen in the game since the rebase; to do next.
fb73a55a35006a28313eA mod that follows hundreds of flags (the Progress tracker, some 600) had two choices: one flagChanged subscription per flag, which the 256-flag watch could not hold, or flags.getMany every quarter second, which sees a change late and reads every flag again and again. flagsChanged takes a list instead: flagsChanged.on((e) => ..., { flags: ["PlayerStatus.Life", ":Seen"] }) and calls the listener at most once a frame, with { frame, changes: FlagChange[] }: each flag of its own list that changed, in the list's order, as flagChanged would carry it. - Schema: the event (state.read, acquire, order 31), its payload FlagsChange and its filter FlagsFilter. Records take lists now: a result record's list<T> of scalars, enums or records, an options record's list<string>; a filter's list field is the service's to match, so the event must be filter_required. The emitters read list<string> fields, and the reference says such a listener gets a payload of its own. - Engine: ScriptHost::fire_each fires an event with a payload made for each subscription from its filter; the adapter hands an array inside a record over as a list (at most 4,096 items). on() of a watched event now sees every watched event's subscriptions, so flagChanged and flagsChanged count their flags together. - Service: a list is checked as flagChanged's flag is (1 to 256 bytes a name, unknown names refused, content ids kept as game names), 1 to 1,024 names, deduplicated, kept as one JSON value so reading the subscriptions each frame copies a reference, not the names. The watched list is made again only when the subscriptions change; a flag named only by a list is not fired one by one through flagChanged. - Limits: game_core:⌚:FLAGS_MAX 256 -> 1,024, all mods and both events together, and a list holds at most as many. A poll reads each watched flag once a frame (one hash-table lookup for a switch, up to four for a number), so 1,024 is about a thousand short probes a frame; it holds Progress's list with room for other mods. FlagWatch::set looks the kept reads up by hash instead of searching them (it was quadratic). - The fake game fires it from game.setFlag through the same service (the Beside host forwards fire_each), so a mod's tests can use it. Tests: schema (a list field refused where not allowed), game-core (a thousand flags keep their reads), script (a list checked, kept by game names, counted with single flags), modtool (a list's changes in one call, beside flagChanged, and the refusals). Co-Authored-By: Claude Opus 5.5 <[email protected]>NULL found the dark chip behind each line's value a little too dark, and long needs were cut at its edge: "Ocarina · as an adult (to learn the Song of Storms)" spent half the row saying what any adult already has. The chip is now $surfaceRaised (two steps up from $surfaceSunken) and up to 560 px wide. A line's needs in the value cell drop what is in brackets (before choosing the first way, so "bombs (or Bombchus...)" stays bombs), and, when they ask for an adult, what an adult has already on the story's way to the Master Sword (the ocarinas, the Song of Time, Zelda's Lullaby, Saria's Song, the Kokiri Sword, the Deku Shield, the Goron Bracelet, the three stones): "Ocarina · as an adult" reads "As an adult". Past 60 characters the cell keeps the first items and says how many more ("... Sun's Song +2"); the detail below keeps it all. Co-Authored-By: Claude Opus 5.5 <[email protected]>4b5c32422e9d38a064da9d38a064daae996fdae6Seen in game: a line's needs mixed cases, "Nocturne de l'ombre, lunettes de vérité, Feu de Din, grappin" or "Hookshot · adult": only the first condition had a capital, and some items had one of their own. conditions() gives each condition a capital as the window shows it (the value cell, the line's help, the companions' labels): the first and each after ", " or " · ", the word after an "ou" / "or" that starts one, and nothing inside brackets ("Bombes (ou masse des Titans) · ou Adulte"). The catalogue keeps its lower case, which the age and adult rules read. The French catalogue now writes the peoples and the Titans with a capital, as the game's item names do: Goron, Zora, Kokiri, Mojo, Gerudo, Titans (names, notes, chapters and places; 150 words). Co-Authored-By: Claude Opus 5.5 <[email protected]>d839c4f15484df0bbb25Pushed
72065017,b3834086,b5769ae7,bc20bf72(new commits, nothing rewritten):72065017(fix): the corner panel showed through the Progress window when both were on screen (the laptop's run on 03/12). HUD roots are drawn under the windows (theuicrate'sshown_order) and the window's page is the menu's card,$card, 90% opaque, so the panel's light text showed at 10%. The panel says what the window says: it now goes when the window opens and comes back once it closes (always shown: at its next tick; on entering an area: at the next area). A test on the fake game opens the window over the panel always shown; it fails without the change ("no corner panel under the window"). Not yet seen in the game: in Still to test.b3834086(docs):mod-ops.mdnamessave_progress_mark's refusal while the game has a save journal to replay, asprogress_ops.rshas it.b5769ae7:test_no_game_title.pyfailed on this branch only: the catalogue names the story's characters, items and songs as the game shows them, now an allowed file with its reason (as the cheats' names are); the lullaby is allowed in English and French in any case, and the second ocarina only as one ofADULT_HAS's alternatives.bc20bf72:test_menu_i18n.pyalso failed on this branch only: it finds the keybind's label and help stale in the menu's 13 strings files, since the menu draws no row of a script mod's setting without a place.b5769ae7took them out, and thentest_i18n_complete.pyfailed, since it asks every setting of a system mod for a translation, place or not; so they are back. The two checks disagree on such a setting and this keybind is the first: it gets a place (a row under the Gameplay tab's Progress heading), or one of the checks is taught. Left to decide;test_menu_i18n.pyfails meanwhile.mise run teston Windows 11 (this PC, no clang, no Linux tools), 04/12: main @9a1f19b4(this branch's base) 761 passed, 76 failed, 51 skipped; this branch atb5769ae7760 passed, 77 failed. Failing on both, 75:test_audio_output_devices.py,test_audio_output_errors.py,test_audio_source.py,test_audio_source_load.py,test_audio_wave_buffer_release.py,test_builder_pads_route.py,test_check_third_party.py,test_ci_source_times.py,test_cloth_kernels.py,test_cloth_loops.py,test_cloth_step8.py,test_coverage_run.py,test_cursor_hidden_in_play.py,test_cursor_hidden_linux.py,test_dead_targets_sweep.py,test_dev_cargoenv.py,test_dev_vcs.py,test_display_pointer.py,test_dlss_why.py,test_exclusive_marks.py,test_framegen_hdr.py,test_fsr3fi_hud_layer.py,test_fsr3fi_hudless_colour.py,test_fsr4_tune.py,test_fullscreen_monitor_platform.py,test_game_font.py,test_game_menu_mouse_buttons.py,test_gfx_effects.py,test_hd_rumble.py,test_helpers_extract.py,test_hos_ab.py,test_image_view_retry.py,test_lifter.py,test_linux_audio_output.py,test_longshot_builder.py,test_lower_depbar.py,test_lower_lds_after_sts.py,test_lower_register_markers.py,test_menu_hooks.py,test_menu_size.py,test_mesh_first_types.py,test_microphone_test_gain.py,test_monitor_friendly_names.py,test_mouse_native.py,test_native_suatom.py,test_native_zstd.py,test_nvn_null_pool.py,test_nvn_tex_builder_guard.py,test_pad_appcontainer.py,test_pad_headphones_reader.py,test_pad_motion_policy.py,test_pad_speaker.py,test_pipeline_cache_file.py,test_pipeline_play_cache.py,test_precompile_compute_guard.py,test_prepare_stall.py,test_program_answer_domains.py,test_recorder_sync.py,test_renhdrum.py,test_rumble_mapping.py,test_rumble_refresh.py,test_run_all_output.py,test_sampler_stack_walk.py,test_sandbox_test_mode_start.py,test_screensaver.py,test_sdl_monitor_names.py,test_shader_module_guard.py,test_shadow_slot.py,test_svc_core_mask.py,test_switch_table.py,test_target_pool_cap.py,test_temporal_present_bandwidth.py,test_tex_desc_memo.py,test_thinlto_tls.py,test_vibration_permission.py.test_sampler_admission.py(run alone) crashed on main and in one of two runs here.main has moved 37 commits past
9a1f19b4and now conflicts with this branch (the menu's layout, strings and test, the settings table, the generated modding docs): main is to be merged in.f577a1ae) into feat/progress-window 70b23c9473Pushed
70b23c94and02eb8445:70b23c94, main @f577a1aemerged in (a merge, so the pushed history stays as it is): the conflicts were the menu's layout (main's Interface heading on the Gameplay tab, then the Progress heading, still last), the menu's test (main's Gameplay order, then the Progress rows), the 13 strings files (merged three ways: main's file and order, then the ten texts this branch adds), the guide's settings table (main's rows, then Progress's), and the generated modding docs, made again byschema-gen(--checkpasses).02eb8445, the window's key is now a row: the first under Gameplay > Progress (place, order 5), a key box as the menu's other keybind rows, its label and help in the menu's languages. Its key in settings.toml staysprogress_open. The controller's chord (Plus+B) is still rebound on the mod's page of the Mods tab.test_menu_i18n.pyandtest_i18n_complete.pyboth pass, so the question in the previous comment is settled. The menu's expected order, the guide's settings table and the mod's README say it. Seeing the row in the game is in Still to test (by hand).Checks at
02eb8445, on Windows 11 (this PC):test_menu_i18n.py,test_i18n_complete.py,test_menu_ini_keys.py,test_no_game_title.py,test_doc_anchors.pyandschema-gen --checkpass; each system mod's and example's own tests (cargo test -p modtool passes_its_tests, one test a mod since main) 10 passed.cargo test -p apifails onlywatch::tests::a_walked_reshade_folder_counts_a_change_once_two_walks_agree, which fails on main @f577a1aetoo.mise run test: main @f577a1ae769 passed, 76 failed, 51 skipped; this branch 770 passed, 75 failed, 51 skipped. Every failure here also fails on main (main's one more,test_recording_admission.py, passed here):test_audio_output_devices.py,test_audio_output_errors.py,test_audio_source.py,test_audio_source_load.py,test_audio_wave_buffer_release.py,test_builder_pads_route.py,test_check_third_party.py,test_ci_source_times.py,test_cloth_kernels.py,test_cloth_loops.py,test_cloth_step8.py,test_coverage_run.py,test_dead_targets_sweep.py,test_dev_cargoenv.py,test_dev_vcs.py,test_dlssg_folders.py,test_exclusive_marks.py,test_framegen_hdr.py,test_fsr3fi_hud_layer.py,test_fsr3fi_hudless_colour.py,test_fsr4_tune.py,test_fsr_uniform_ownership.py,test_fullscreen_monitor_platform.py,test_game_font.py,test_gfx_effects.py,test_hd_rumble.py,test_helpers_extract.py,test_hos_ab.py,test_image_view_retry.py,test_lifter.py,test_linux_audio_output.py,test_linux_pressure.py,test_loaded_modules_drop.py,test_longshot_builder.py,test_lower_depbar.py,test_lower_lds_after_sts.py,test_lower_register_markers.py,test_menu_hooks.py,test_mesh_first_types.py,test_microphone_test_gain.py,test_monitor_friendly_names.py,test_mouse_native.py,test_native_suatom.py,test_native_zstd.py,test_nvn_null_pool.py,test_nvn_tex_builder_guard.py,test_pad_appcontainer.py,test_pad_headphones_reader.py,test_pad_motion_policy.py,test_pad_speaker.py,test_pipeline_cache_file.py,test_pipeline_play_cache.py,test_precompile_compute_guard.py,test_prepare_stall.py,test_program_answer_domains.py,test_program_cache_cleanup.py,test_program_cache_one_variant.py,test_recorder_sync.py,test_renhdrum.py,test_rumble_mapping.py,test_rumble_refresh.py,test_run_all_output.py,test_sampler_admission.py,test_sampler_stack_walk.py,test_sandbox_refusals_windows.py,test_sandbox_test_mode_start.py,test_sdl_monitor_names.py,test_shader_module_guard.py,test_shadow_slot.py,test_svc_core_mask.py,test_target_pool_cap.py,test_temporal_present_bandwidth.py,test_tex_desc_memo.py,test_thinlto_tls.py,test_vibration_permission.py.Still WIP: the frame time against main (window closed, companions off) has not been measured yet, and the in-game checks in Still to test are left to run.
WIP: feat(progress): a Progress window, a corner panel and marks in the world, and the save's progress for the launcherto feat(progress): a Progress window, a corner panel and marks in the world, and the save's progress for the launcherca830e89into feat/progress-windowMain took new menu strings (pads, RenHDrum) at the end of every strings file, where this branch adds the Progress ones: both kept. docs/modding/{reference,permissions,scripting}.md regenerated by `cargo run -p schema-gen` from the merged schema (--check passes). Co-Authored-By: Claude Opus 5.5 <[email protected]>Brought up to current
main(ca830e89) by a merge,ac454fd2(nothing rewritten):mainand this branch had both added menu strings at the end of every strings file (pads and RenHDrum on one side, Progress on the other). Both sets are kept.docs/modding/{reference,permissions,scripting}.mdwere regenerated withcargo run -p schema-gen, and-- --checkpasses.test_i18n_complete,test_menu_i18n,test_not_translated_counts,test_translation_pools) pass.run_all.py --changed origin/maingives 75 passed and 4 failed on Windows. The 4 failures are the same onesmaingets on this PC:test_ci_source_times,test_pad_speaker,test_parity_gatesandtest_sandbox_test_mode_start.f577a1ae. Since then the merge brings in onlymain's pads, tests and strings changes, none of which touch the Progress code.And
cbc90281:mainmoved again (2603ac21, player.kill() #3143, in the modding schema). Merged in the same way, docs regenerated,--checkpasses;--changed origin/mainthe same 75 passed and the same 4 Windows failures asmain.2603ac21into feat/progress-windowb77c2f4b3) into feat/progress-window 1735d32680e345b3cab) into feat/progress-windowBrought up to current
main(e345b3ca) by a merge, nothing rewritten. The only conflicts were the schema hashes indocs/modding/{permissions,reference,scripting}.md, regenerated withschema-gen(--checkpasses). Windows,run_all.py --changed origin/main: 80 passed, 2 failed:test_ci_source_timesandtest_dev_cargoenv, whose throwaway test commits my machine's own commit hook refuses (not this branch).Frame time in the game, measured (the open line of Still to test)
dev.py abon this branch's runtime, Kokiri Forest (child), 3 interleaved runs of 60 s a side, uncapped, PC (RTX 5080, Windows 11). The sides differ only inHOS_SYSTEM_MODS_DIR, a copy ofgame/modswhose Progress defaults were changed for the measurement (never committed):None of the three is above the spread: the flag watch, the corner panel and the labels cost nothing measurable in the frame time on this PC. In every B run the mod started and ran (the log's
system/progresslines, with one 3.1 ms tick at its start, the catalogue's first read). The panel and the labels were not checked on screen in these runs.18edd5097) into feat/progress-windowBrought up to current
main(18edd509) by a merge,0f5852a1, nothing rewritten. No conflict. Windows,run_all.py --changed origin/main: 79 passed, 3 failed (test_ci_source_times,test_dev_cargoenv,test_no_game_title): all of them fail onmainat18edd509too, on this PC, run there with the same toolchain.3a0f7d8f7) into feat/progress-windowde6fb7b5d) into feat/progress-windowBrought up to current
main(de6fb7b5) by a merge,6f728d67, nothing rewritten.game.rsandfeatures.rs: this branch's flag helpers and features sit besidemain's newevaluate/ enum ones, both kept.flagsChanged's acquire order moves from 31 to 32:main's pause-menu buttonpressedevent took 31, and schema-gen refuses two events with one order. The generated docs (docs/modding/*.md) were made again bycargo run -p schema-gen, and--checkpasses.Windows 11, RTX 5080:
dev.py rtanddev.py smokepass on6f728d67(in play from kokiri-start, 900 frames, the menu opened).cargo test -p api -p schemapasses exceptsettings_push::tests::a_rows_dependencies_come_from_its_data, which fails onmainatde6fb7b5too.dev.py test-changed --base origin/main: 75 passed, 11 failed. Ten of them fail onmainatde6fb7b5on this PC as well: test_lifter, test_longshot_saves, test_pipeline_tour, test_i18n_complete, test_settings_area_keys, test_walk_key, test_tools_pins, test_sandbox_linux, test_ci_source_times and test_dev_cargoenv. The eleventh, test_gfx_effects, passes on this branch when run alone, and fails onmain.Brought up to current
main(6c06d981) by a merge,95115ba0, nothing rewritten.docs/modding/permissions.md,reference.md,scripting.md):main's taken, then made again bycargo run -p schema-gen;--checkpasses.flagsChanged's acquire order moves from 32 to 33: a new event onmaintook 32 (actors.toml'sguarded), and schema-gen refuses two events with one order.Windows 11, RTX 5080:
dev.py rtanddev.py smokepass on95115ba0(in play from kokiri-start, 900 frames, the menu opened).cargo test -p api -p schemapasses in full now,settings_pushincluded (fixed onmain).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.