Skip to content

NewGame issueΒ #124

@YeNov

Description

@YeNov

Hello.
I observed this issue: when doing something on level and starting new game then saves changes. Which is obviously unexpected. No prior saves where made manually. The setup is like that in pseudo code:

SpudSubsystem::NewGame(true, true);
::OpenLevel("SameLevel", true);

I noticed that SpudSubsystem utilizes this event USpudStreamingLevelWrapper::OnLevelHidden, which is triggered on new game trigger, exactly when ::OpenLevel() is called. And then ::OnLevelShown is triggered after level is loaded, which triggers respectively save and load. To fix that I simply put unsubscribing loop in ::EndGame() and that fixed the issue for me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions