Skip to content

Conversation

@Archez
Copy link
Contributor

@Archez Archez commented Jan 30, 2023

This adds a warning message in the file select screen for rando saves that were created on a different SoH build.
This works by tracking the build version within the save and exposing it with the file meta info for the file select screen.
For saves that never had a build version stored, this should work as expected (displaying the warning version).
The full build string is stored (e.g. BRADLEY ECHO (5.1.4)). as well as the individual MAJOR/MINOR/PATCH values. If this is overkill, then we can just save the major/minor/patch int values only.

To support all character types for translations and fit nicely on the file select screen, I opted to force the dialog message system to be usable-ish on the file select screen.

The dialog system relies on a PlayState being passed around, but that isn't available to us from the file select. In the basic instance of using the dialog system, we only need a Gfx pointer and the MessageContext. To take advantage of the dialog system, I've stubbed out a "dummy" PlayState that I can attach the graphics context and message context to, then I explicitly call Message methods to retrieve and render the rando warning text in a single frame.

I'd like to expand this dialog system to be more robust to support other text displays, but want to at least have something in place for this rando version warning text.

Looking for suggestion on the warning text wording! I can also try to show the build version the save was created on so users know which version to go back to if they want to continue that save.

image

Closes #2383


I also slightly tweaked the rando hash icons to use the same alpha values as the file info so they fade in and out more elegantly

Build Artifacts

Copy link
Contributor

@dcvz dcvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments, but overall looks good!

Copy link
Contributor

@briaguya0 briaguya0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple suggestions, nothing that should block merging!

@Archez
Copy link
Contributor Author

Archez commented Feb 26, 2023

This is with translations. There is more text, but I made it still fit in the games original 4:3 ratio so that should be fine.

German
image

French
image

@briaguya0 briaguya0 merged commit 1fc6a2f into HarbourMasters:develop Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warn about rando saves potentially not working correctly on different builds

3 participants