Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restored-game corruption possible due to differences in PWAD ordering #708

Open
lemming104 opened this issue Sep 12, 2024 · 2 comments
Open

Comments

@lemming104
Copy link
Collaborator

Here's an interesting one. I am able to produce saved games on MAP04 of Legacy of Rust that, when restored, show incorrect sprites.

This is a monster closet that contains a Cacodemon and some fuel canisters for the flamethrower, except the fuel canisters have turned into chairs.
helion_20240911_10 50 00 0257

Note that I loaded all four WADs (id1, id1-res, id1-weap, id24res) on top of a DOOM II 1.9 IWAD, because I don't know which ones I actually need.

savegame52.zip

@lemming104
Copy link
Collaborator Author

I've played around with this a bit more, and this is actually an ordering thing with regard to WADs. This is something we should think of a solution to.

Basically, depending on which order those WADs are loaded in, the saved game will either restore correctly, or with this kind of hilarious sprite confusion. The game cares what order the WADs are loaded in, since successive PWADs might replace the same lumps. However, when we restore saved games, we make no such distinction.

I'm guessing many people use launchers, but I do not. I just drag and drop PWADs straight onto the executable, so if I'm loading multiple PWADs, there's the possibility that I might inadvertently select them in a different order and thus produce a different ordering of command line args.

@lemming104 lemming104 changed the title Sprites sometimes incorrect when restoring saved game in Legacy of Rust Restored-game corruption possible due to differences in PWAD ordering Sep 12, 2024
@lemming104
Copy link
Collaborator Author

The funniest part about this is that it seems like you only need the id1 WAD to play LoR. I still think the issue presented here (whether ordering semantics should matter for saved games when multiple PWADs are loaded) is worth thinking about, although hopefully this is an edge case.

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

No branches or pull requests

1 participant