Closed DiFFoZ closed 3 years ago
Thanks for the report! That explains a few bugs. Sigh the old savedata code is such a mess. Will fix for the next update!
Also, may you add check if Level is loaded before saving
[2021-06-26 10:15:01 INF][SDG.Unturned] Loading level: 8%
[2021-06-26 10:15:02 INF][OpenMod.Core.Jobs.OpenModCommandTaskExecutor] An internal error occured during the command execution.
[2021-06-26 10:15:02 ERR][OpenMod.Core.Commands.CommandExecutor] Exception occured on command "save" by actor console/OpenModTaskExecutor (JobCommandActor)
System.NullReferenceException: Object reference not set to an instance of an object
at SDG.Unturned.VehicleManager.save () [0x00058] in <38e32ec197e14c8996a0643157fe02bf>:0
at SDG.Unturned.SaveManager.save () [0x00067] in <38e32ec197e14c8996a0643157fe02bf>:0
Why is it saving before load?
Just cron executes save command each 5 minute
Okay, will see about adding a check there as well.
Should be resolved for this week's update.
Checked again the save method and i notice that LevelManager.save
is not used.
Huh. I guess it was never used. 🤦♂️ Well, thankfully it is not important, and this sort of thing will be cleaned up with the savedata rewrites.
GroupManager
andLightingManager
save method doesn't close the river, this means that it doesn't save to the save-file