I’m encountering an issue with the “Load Game from Slot” node in Unreal Engine. Currently, if the save file is corrupt, the game crashes without any warning or error handling, which is affecting some of my Steam players. One of them has left a negative review mentioning this issue.
I’m wondering if there’s a way to add error handling so that the “Load Game from Slot” node returns a failure result instead of crashing the game. Alternatively, is there a separate function that could check if the save file is corrupt before attempting to load it?
that crash on corrupt .sav is brutal, got a negative review from it too
LoadGameFromSlot in BP has no error branch, if the file is corrupt it just crashes in serialization. what i do now is wrap it as async load and check result, and also add a DoesSaveGameExist + file size check before loading - if it looks sus i delete / fall back to default
advanced save system from fab Save System / Cloud Save / Encryption / Slot management | Fab handles this nicer, it has transaction safe ops and proper error handling/logging so corrupt slot just returns failed instead of taking down the game. also supports version field so you can invalidate old saves cleanly