Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Even more fixes for the saving system #40

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

Byte-Nova
Copy link
Member

@Byte-Nova Byte-Nova commented Apr 7, 2024

Some vanilla functions force an auto-save trigger whenever they are executed from a (supposedly) separate thread than the main one or an Unity co-routine. This causes saving violation exceptions when it's about a function that is saved both by us and the game.

This PR implements a change that completely disables the vanilla auto-saver as long as the player is in multiplayer mode, while keeping our save / auto-save functions still working.

To replicate the issue: Find a vanilla feature that forces a save (in this case giving a name to your faction/settlement whenever the message prompts)

PD: These changes were checked using the 1.5 pre-release of the game, testing with current 1.4 is needed.

@Byte-Nova Byte-Nova requested a review from AnauNaga April 7, 2024 08:11
@Byte-Nova Byte-Nova added issues Something isn't working as expected help wanted Extra attention is needed labels Apr 7, 2024
Copy link
Contributor

@AnauNaga AnauNaga left a comment

Choose a reason for hiding this comment

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

Approved

@AnauNaga AnauNaga merged commit 13da68d into development Apr 7, 2024
2 checks passed
@Byte-Nova Byte-Nova deleted the nova/more-saving-fixes branch April 7, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed issues Something isn't working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants