-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
Autosave now mimics its singleplayer counterpart
Fix indentations
Source/Common/MultiplayerServer.cs
Outdated
@@ -82,6 +84,8 @@ public MultiplayerServer(ServerSettings settings) | |||
|
|||
if (settings.lanAddress != null) | |||
lanManager = new NetManager(new MpNetListener(this, false)); | |||
|
|||
autosaveCountdown = settings.autosaveInterval * 2500 * 24; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This indentation doesn't look right, but it might be github's fault.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that must've slipped in when I changed from tabs to spaces. It's fixed now.
Can we make this change toggable? When I plan out parts of my base without time advancing, no saving is happening, so when a desync happens (game can desync while Not running, happens rarely) or when the game crashes, all my progress from the past 10 minutes or how long it takes for a Day to pass on 1x speed, is going to be löst. |
I don't see a point in disabling the whole feature. |
People (like myself) sometimes like to tinker with and design stuff for more than 30 minutes, all while the game is paused. For some reason, the game desyncs, or just crashes, or something else goes wrong, and I need to reload. When I go and look at the most recent autosave, I see that it's 30 minutes ago, because it only saves your game when you are actually advancing time. That would make me really salty... |
@Pecius Can we have an option for both in the hosting page? You first specify if it autosaves every X minutes or every X days ( I also tend to spend long phases during base development and see potential for desyncs to lose information. |
Prevent a possible underflow when autosave feature is disabled
I added a switch in mod options that you can enable and disable while you're playing.
Adding an option for both new and old system is an unnecessary over-complication that will be confusing for users. |
What do you mean by that? Disable or enable the auto save feature altogether? |
Sorry, I meant that I added a switch that lets you decide if you want to stop the autosave counter when your game is paused. |
Ah, got it, that should work. When the game is paused, does it tick at 1x speed when you enable the option? |
Yes it does tick at 1x speed with that option (disabled) when the game is paused. |
* Improve autosave feature Autosave now mimics its singleplayer counterpart * Add missing French translation Fix indentations * Fix indentation * Add a switch that toggles autosave ticking while time is paused Prevent a possible underflow when autosave feature is disabled
Autosave now mimics its singleplayer counterpart.
Changes:
Notes: