Save [Unmaintained]

Discussion in 'Plugin Support' started by Reneb, Nov 2, 2014.

  1. when i use this and save the server i reboot and it wont load back up
    [DOUBLEPOST=1425251350][/DOUBLEPOST]
    it was corrupting my save files and server would fail to launch
     
    Last edited by a moderator: Mar 2, 2015
  2. Wulf

    Wulf Community Admin

    This plugin uses the save function directly from Rust, so if it's somehow corrupting it, the issue lies with Rust itself.
     
  3. When i use the quit function in console the server can restart if i use this plugin and run save.all and resart the server t he server will not launch unless i delete the map save
     
  4. Wulf

    Wulf Community Admin

    I just tested it and it worked just fine. I ran save.all numerous times, shutdown the server, and started it back up without any issues using the same save. It sounds like your issue lies elsewhere. Did you get any confirmation when you ran save.all? The only way you could corrupt your save when using this plugin is if you forcefully shutdown your server while Rust was still saving, but once again that has nothing to do with this plugin, as this plugin only triggers the save function in Rust.
     
  5. Reneb I think something changed in the latest build of the servers. This plugin appears to be bugging out and causing server wipes, in a round about way.

    What happens is that the autosaves and manual saves start off fine so not long after running you have:
    0.sav-6.sav all timed apart by whatever interval you have set.

    But shortly after this the saves start deleting the previous most recent .sav and not putting s new 0.sav

    So you get 1.sav-6.sav

    Next save you'll have 2.sav-6.sav

    Then 3.sav -6.sav

    And so on until eventually the folder is empty.

    I'm afraid I don't have the exact error from the logs as I cleared them without thinking but it did cite Save.cs.

    The error I'm getting in the exceptions is in this thread here:

    http://oxidemod.org/threads/is-it-possible-for-plugins-to-wipe-the-server.7531/#post-77052

    I've so far helped 2 others with the same issue where our servers have been wiping. The fix is to reload the plugin then do a normal server.save. Then delete them plugin. Restart the server and all is well.
    [DOUBLEPOST=1428154778][/DOUBLEPOST]
    I'm not saying it's bad code, this used to work perfect but since Friday its throwing this issue up so the save functions must of changed in the server files.
     
  6. Cheeze is right! He helped me with this problem
     
  7. Code:
    Object reference not set to an instance of an object:
    at BaseNetworkable.Save (.SaveInfo info) [0x00000] in <filename unknown>:0
    at BaseEntity.Save (.SaveInfo info) [0x00000] in <filename unknown>:0
    at BaseCombatEntity.Save (.SaveInfo info) [0x00000] in <filename unknown>:0
    at StorageContainer.Save (.SaveInfo info) [0x00000] in <filename unknown>:0
    at BaseEntity.SaveAll (ProtoBuf.Save save) [0x00000] in <filename unknown>:0
    at SaveRestore.Save (System.String strFilename) [0x00000] in <filename unknown>:0
    at SaveRestore.DoAutomatedSave () [0x00000] in <filename unknown>:0
    at SaveRestore.Save () [0x00000] in <filename unknown>:0
    at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    That's error. Replicated it.
    [DOUBLEPOST=1428157310][/DOUBLEPOST]
    Mine stopped saving again after just over an hour. This must be more related to the game.
    [DOUBLEPOST=1428157609][/DOUBLEPOST]That said, manual saves with server.save work fine now since removing this plugin. But autosaves mess up after an hour or so.
     
    Last edited by a moderator: Apr 4, 2015
  8. Wulf

    Wulf Community Admin

    It'd actually be an issue with Rust's function then, as that's all this plugin uses. This plugin is a glorified alias for the SaveRestore.Save() function in Rust. All it does is call it on command. What is more likely though, is that you are using a plugin that is corrupting entities (ex. Pets) and therefore causing the save to be corrupted. There isn't really any way this plugin would be causing any of it.
     
  9. [Oxide] 2:33 PM [Warning] CallHook 'cmdConsoleSave' on plugin 'Save' took: 553ms
     
  10. It's only a warning and you need to keep in mind that it actually saves the world so that doesn't finish instantly, the bigger the world and the more entities you have, the slower it will save.
     
  11. Everything is nice, but I have in the console there are three warnings, and some of them krašit Server server rebutaetsâ on 10 times a day for three days so ... I removed the save game and 1 plugin, until everything is stable.
    [DOUBLEPOST=1431692336][/DOUBLEPOST]And without this plugin to save the world? (
     
  12. u can add "save.interval 300" it will auto-save every 5 mins...
     
  13. Wulf

    Wulf Community Admin

    server.saveinterval is the correct setting.
     
  14. BaK

    BaK

    Edit for updater support. line 13.
    Code:
        [Info("Save", "Reneb", 2.0, ResourceId = 710)]
     

    Attached Files:

    • Save.cs
      File size:
      2.2 KB
      Views:
      18
  15. [Oxide] 12:58 AM [Warning] Ignored obsolete game extension reference 'Oxide.Ext.Rust' in plugin 'Save'
    [DOUBLEPOST=1440453546][/DOUBLEPOST][Oxide] 12:59 AM [Warning] CallHook 'cmdConsoleSave' on plugin 'Save v2.0.0' took: 2168ms
     
  16. it's normal=, your server is being saved
     
  17. save.all does not seem to work anymore
     
  18. [Oxide] 6:40 AM [Error] Error while compiling Save.cs(71,25): error CS1501: No o
    verload for method `Save' takes `0' arguments
     
  19. Wulf

    Wulf Community Admin

    You don't really need this plugin, just use the "server.save" console command.
     
  20. Reneb is this plugin still working? because i trying to help a friend that wants top save the world but it does not work. Says "Invalid Command : save.all" help please :/