Skip to content

Conversation

@hyperbx
Copy link
Member

@hyperbx hyperbx commented Mar 15, 2025

Fixes a game bug that causes the DLC info message to always be displayed. I've explained here the causes of this issue.

Closes #1167.

@hyperbx hyperbx added this to the v1.0.3 milestone Mar 15, 2025
@hyperbx hyperbx requested a review from DarioSamo March 20, 2025 16:28
Copy link
Contributor

@DarioSamo DarioSamo left a comment

Choose a reason for hiding this comment

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

Code changes seem good to me, still needs validation from someone testing it out.

Copy link
Member

@blueskythlikesclouds blueskythlikesclouds left a comment

Choose a reason for hiding this comment

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

I don't seem to be able to get achievement data to save when removing the save folder and starting new game, the debug console prints the following output:

[Mod Loader] Loading code: "SkipIntroLogos"
[*] SDL video driver: "windows"
[*] Achievement data will not be saved in this session!
[*] Saving persistent storage binary...

@hyperbx
Copy link
Member Author

hyperbx commented Mar 28, 2025

Should be fixed now, the condition for it would be missed on first creation due to the default value being EAchBinStatus::Unknown and the load method returning EAchBinStatus::NoFile. It now always returns EAchBinStatus::Success if the file does not exist and is now the default value.

if (!ignoreStatus && BinStatus != EAchBinStatus::Success)
{
    LOGN_WARNING("Achievement data will not be saved in this session!");
    return false;
}

@blueskythlikesclouds blueskythlikesclouds merged commit 1dd5ba7 into main Mar 28, 2025
9 checks passed
@blueskythlikesclouds blueskythlikesclouds deleted the dlc-message-fix branch March 28, 2025 16:08
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.

Fix DLC info message always displaying on the title screen

4 participants