Repository navigation
Fix Et Tu's MASTER.DAT step failing with a misleading message - #1
Merged
Merged
Conversation
friendly() rewrote any error mentioning "master.dat" into "That doesn't look like Fallout 1's MASTER.DAT", which hid the real cause. On Windows that was every attempt: extract_fallout1_data refused outright with "run UNDAT.EXE yourself ... MASTER.DAT", and the rewrite turned it into a bad-path error no matter which file was picked. - friendly() now matches only undat.sh/undat.bat's own two bad-file messages. - On Windows, run Et Tu's bundled undat.bat (shipped alongside utils/dat2.exe in current releases) with no console window, falling back to the manual UNDAT.EXE instructions only if it's missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AsaLBvEnJ6B8w98YE5adiP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AsaLBvEnJ6B8w98YE5adiP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A player selecting the MASTER.DAT from their Steam Fallout 1 folder kept getting "That doesn't look like Fallout 1's MASTER.DAT - check the path and try again."
Cause
gui::errors::friendly()rewrote any error containing "master.dat" into that message. On Windows,extract_fallout1_dataalways refused with "Automatic extraction isn't available on Windows - run UNDAT.EXE ... point it at Fallout 1's MASTER.DAT", so every attempt showed up as a bad-path error, whichever file was picked. On Linux/macOS, the same rewrite could also hide unrelated failures. That goes against ADR 0009's rule of never hiding a cause behind a guess.Changes
friendly()now matches only the two bad-file messages that Et Tu'sundat.sh/undat.batprint themselves ("Please pass path to Fallout 1's master.dat…" and "Error: can't read Fallout 1's master.dat.").extract_fallout1_datanow runs Et Tu's bundledundat.bat. Current releases (v2.0.3911) package it withutils/dat2.exe, according to Fo1in2'spackage.yml. It runs withCREATE_NO_WINDOWbecause the launcher is a GUI-subsystem app. Ifundat.batis missing (older releases), it falls back to the manual UNDAT.EXE instructions, and that message is no longer rewritten.Testing
cargo test: 255 passed, including new tests for both rewrite cases.cargo check --target x86_64-pc-windows-gnu: compiles, with no new warnings.undat.baton a real Windows machine with an actual Steam MASTER.DAT.cargo fmt --checkalready fails onmainin files this PR doesn't touch, so I didn't reformat them here.Generated by Claude Code