Repository navigation
Stop silently tracking against wrong logic - #69
Conversation
…a crash or silent defaults
|
It'd be nice to update the text box below the preset to say something like "version can be found in the generator url." But it's not always obvious if all you have is a seed link, e.g. https://ootrandomizer.com/seed/get?id=2145256 The page says generated on Dev-Rob, but the correct version string is |
|
Added Dev, Dev-Rob, and Dev-Fenhl to the version dropdown as aliases for the latest logic on each branch. Users can still input a custom version if desired. The version can now be written as a seed page shows it, such as "Dev-Rob v9.0.2-17", instead of needing to know it maps to "devrreal_9.0.2-17". Both forms work, and the presets use the friendly names too. The info box has been reworded to be clearer. The dropdown should be enough for most cases. This also revealed two bugs. Upstream dev versions such as "dev_9.1.29" were never fetched and silently fell back to the bundled 9.0.0 logic. Separately, the build number was discarded, so a dev version always loaded HEAD. The tracker now loads the exact build's logic at the specified build number. It checks that the build is still available before downloading and uses the branch with a warning if it isn't. |
Before the tracker works, it downloads two things: the randomizer's logic files and a decoded copy of the settings string. Either download can fail, and the tracker continues as if nothing happened. A settings string that couldn't be decoded either crashed to the "Something went wrong" screen (on downloaded versions) or silently ran the tracker on default settings (on bundled versions). In the second case, you'd play a whole seed with checks marked available or unavailable for the wrong reasons, with no hint that anything was off. Additionally, logic files that couldn't be downloaded made the tracker silently switch to the built-in 9.0.0 logic.
This PR ensures that if the tracker can't be certain its logic matches your seed, it indicates it.
A few ways to test some of the changes:
raw.githubusercontent.comrequest, then click "Block request domain"). Then refresh the tracker.settings_stringentry. Then refresh the tracker.