Save [Unmaintained]

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

  1. Reneb submitted a new resource:

    Save - Manually save the world

    Read more about this resource...
     
  2. There is an opportunity to do so when you write "quit" in the console, then worked to save game?
     
  3. You can achieve this by adding this adding this to the end of the plugin:
    Code:
    function PLUGIN:OnRunCommand( arg )
    -- Check if the command is being send from an in-game player.
    if ( not arg ) then return end
    if ( not arg.cmd ) then return end
    if ( not arg.cmd.name ) then return end
    -- Check if the quit command was used.
    if arg.cmd.name == "quit" then
    print( self:SaveAll() )
    print("Shutting down...")
    timer.Once(5, function() global.ConsoleGlobal.quit( arg ) end )
    return false
    end
    end
    This will basically intercept the built-in quit command, cancel it and save the world. And after 5 seconds it will terminate the server like the command quit should.
     
    Last edited by a moderator: Nov 3, 2014
  4. not working!!!im save game... and quit should... 0 result.my world again new>what to ....
     
  5. In .bat file add -load....
     
  6. thanks mughisi, i'll add that :)
     
  7. can u update this one please for new rust version
     
  8. do this plugin save the item in loots ( Wooden Box ) ?
     
  9. It uses the ingame save system so it should
     
  10. i use rust experimental devblog35 server file and i downloaded thsi plugin and save my server
    but
    home of my players is save but items in loot not saved ? must i update my server to devblog38 ? or not ?

    Save (Manually save the world) Plugin Version 1.1.1
     
  11. latest update was devblog 36
    37 and 38 didn't have any updates released.
    and no idea why it doesn't save your items in loot i'll look into it. but pretty sure it's just rust and not this plugin.
     
  12. Code:
    [Oxide] 6:22 PM [Error] save: [string "save.lua"]:55: attempt to call field 'Save' (a table value)
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [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 
    [DOUBLEPOST=1418743524][/DOUBLEPOST]at shutdown server
     
    Last edited by a moderator: Jan 19, 2015
  13. is it possible to make a save.all command automatic?
     
  14. why would that be relevent? the auto save or rust already exist :x
     
  15. really? on EXP too? How come when I shutdown the server (without quit) it dose not save?
     
  16. when you got your answer ... if you shutdown the server with "brute force" it just shuts down the server without saving since the last save.
    save are by default every hour. you can edit that with server.saveinterval XXX (XX being seconds)