Skip to content

fix: an overwritten save slot shows its new screenshot - #544

Merged
JaXt0r merged 1 commit into
developfrom
fix/save-overwrite-screenshot
Nov 22, 2026
Merged

JaXt0r merged 1 commit into
developfrom
fix/save-overwrite-screenshot

Conversation

@BoroBongo

Copy link
Copy Markdown
Contributor

What

Overwriting a save slot now shows the new screenshot in the save and load menus.

  • SaveMenu: each slot builds its own thumbnail from its THUMB.SAV instead of TextureCacheService's shared cache. The textures are destroyed whenever the slots are read again (after every save, when the menu opens) and when the menu is destroyed.
  • Log: [SaveMenu] Save slot <id> has no thumbnail. (category Ui) when a slot has none.

Why

User report 2026-11-22 (PCVR build from develop): saving into an existing slot worked and loaded the new save, but the slot kept its old screenshot. The menu took the thumbnail from TextureCacheService's static cache, keyed by "savegame_" + title. That cache is only cleared when the game shuts down. An overwritten slot usually keeps its title, so the old texture came back. Two slots with the same or an empty title also shared one picture.
Related: #173 ("Check metadata of SaveGame (Thumbnail, texts)").

How to test manually

  • Save into slot 1, walk somewhere else, save into slot 1 again with the same name: the menu shows the new screenshot.
  • Open the load menu: slot 1 shows the new screenshot.
  • Restart the game: slot 1 still shows the new screenshot.
  • Two slots with the same name (or an empty name) show their own screenshots.
  • Hover over the slots a few times: no growing memory, no "no thumbnail" warning for normal saves.

Save/load

Nothing new is stored. The thumbnail is saved as before (THUMB.SAV); only how the menu shows it changed.

Known gaps / follow-ups

  • Compiled in the Editor together with the other fixes of this playtest round (EditMode tests 87/87), not play tested yet.
  • Right after a save the picture is hidden until the pointer moves onto a slot again.
  • FillSaveGameEntries adds the slot hover listeners again each time it runs, and keeps _saves entries of slots that disappeared (not changed here).

AI usage

Claude found the cause in the save menu code and wrote the fix. The user found the bug while playing.

…ad menu

The menu took the thumbnail from TextureCacheService's static cache keyed by "savegame_" + title. Overwriting a slot
under the same name (or two slots with the same or an empty name) returned the old texture until the game was
restarted. Each slot now builds its own thumbnail from its THUMB.SAV, and the textures are destroyed whenever the slots
are read again (after every save, when the menu opens) and when the menu is destroyed.
@JaXt0r
JaXt0r merged commit 0b9fdad into develop Nov 22, 2026
1 check passed
@JaXt0r
JaXt0r deleted the fix/save-overwrite-screenshot branch November 22, 2026 14:02
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

Successfully merging this pull request may close these issues.

2 participants