Open Basssiiie opened 1 month ago
The LoadSave window actually hardcodes this message:
// Not the best message...
ContextShowError(STR_LOAD_GAME, STR_FAILED_TO_LOAD_FILE_CONTAINS_INVALID_DATA, {});
InvokeCallback(MODAL_RESULT_FAIL, pathBuffer);
Unfortunately, the LoadParkFromFile
function invoked by the window catches all std::exception
s, including the UnsupportedVersionException
thrown in these cases. This code flow will need to be revised for better error messages to happen.
Update, the semi-compatible warning does actually work:
It seems to be just the full incompatibility error that doesn't work, where I presume the file's minimum park version exceeds the game's current park version?
Operating System
Windows 10, 64-bit
OpenRCT2 build
OpenRCT2, v0.4.11-280-gae9ebe9 (ae9ebe9 on develop) provided by GitHub
Base game
RollerCoaster Tycoon 2
Area(s) with this issue?
No response
Describe the issue
When you have a park file that has been created in a newer OpenRCT2 with a higher park version number, and then open it in an older OpenRCT2 that has a lower park version number, you get the following error:![image](https://github.com/OpenRCT2/OpenRCT2/assets/20048660/97e17d6e-088c-43c6-808c-c1fb68a80391)
This can be very confusing and seems to be a bug, since there are strings to deal with these situations, but they do not seem to be triggered in this case:
From here.
Steps to reproduce
Attachments
This save file has park version 34 (both current+min, from this PR before the min. got reverted) and should fail in any OpenRCT2 version (develop+release) from before today. Six Flags Holland with frozen peep with flags.zip