@EdmontonsRust the LGSM restart command you're using does issue the correct signal so you should be fine.
Teams not saving after server restart
- 1
- 2
@JimDeadlock
In theory, I get what your saying. The automatic saves stop working. I can manually server.save but I do get the folling error before saving. Not sure if its related, I'm trying to solve this still.
Invalidate Network Cache took 0.03 seconds
That's not an error, @EdmontonsRust
this is good and that message means that the save command is called afterwards.
from what you're stating the issue is one of two things:
1. the save method is hanging up before it finishes, or
2. your server has already been flagged as being saved, which happens due to #1
you can verify this if you do not see any related messages every x seconds (server.saveinterval convar):
1. the invalidated message
2. Saved 43,177 ents, cache(0.04), write(0.03), disk(0.01). for example
3. Saving complete
If you do not see the above after typing server.save then it did not save.
using Oxide.Core.Libraries.Covalence;
namespace Oxide.Plugins
{
[Info("Save Fix", "nivex", "0.1.0")]
[Description("Resets save state when the loop hangs up.")]
public class SaveFix : RustPlugin
{
private void OnServerInitialized(bool isStartup)
{
AddCovalenceCommand("savefix", nameof(CommandSaveFix));
}
private void CommandSaveFix(IPlayer user, string command, string[] args)
{
if (!user.IsAdmin)
{
return;
}
if (!SaveRestore.IsSaving)
{
user.Reply("Your server is not trying to save at the moment.");
return;
}
SaveRestore.IsSaving = false;
user.Reply("Save loop fixed. You must save your server by typing server.save");
}
}
}Save as SaveFix.cs and when you notice this issue type savefix in the server console, game console or type /savefix in game.
If you're stuck in a loop then it will reset it and allow you to save again. This will confirm the above.
EdmontonsRust
@JimDeadlock
In theory, I get what your saying. The automatic saves stop working. I can manually server.save but I do get the folling error before saving. Not sure if its related, I'm trying to solve this still.
Invalidate Network Cache took 0.03 seconds
getting same as you:
Invalidate Network Cache took 0.05 seconds ignoring this, no problem with this message so?!
- 1
- 2