Inventory Guardian

Restore players inventory even after server wipe

Total Downloads: 3,604 - First Release: Jan 12, 2015 - Last Update: Feb 4, 2017

5/5, 19 likes
  1. I'm looking to make it so players keep their inventory when they die, and that's it. I don't really care about saving between wipes, just when someone is dies, that the inventory they had on them is still there. Is it possible? And if so, is the downside the possible duplication of items?
     
  2. To enable it just run: /ig.restoreupondeath on chat or on console ig.restoreupondeath.
    Indeed the downside is that players will duplicate the items when they find out.
     
  3. Thanks. I was hoping that was not the case. Oh well. This plugin for Legacy did it, so I was hoping this worked the same way. http://oxidemod.org/resources/item-recovery.542/field?field=faq
     
  4. i found this Warning in my Oxide.log

    Code:
    8:44 AM [Warning] CallHook 'OnServerInitialized' on plugin 'Inventory Guardian' took: 965ms
     
  5. That's nothing, just letting you know how long it took for the plugin to start up or something like that.
     
  6. Player inventory will not restore. Simply says that the player doesnt have anything to restore, Tried to save it all possible ways.
     
  7. Wulf

    Wulf Community Admin

    It may need to be updated now that the plugin stores a bit differently.
     
  8. Yeah just getting this

    "76561198009xxxxxxxxxxxxxxxxxxxxx": {
    "belt": [],
    "main": [],
    "wear": []
    },

    in the data file. Doesnt want to store anything.
     
    Last edited by a moderator: Jul 16, 2015
  9. ok when i wipe my server do i need to do anything? i just installed now.
     
  10. gettin this error on server start
    Code:
    Error] Failed to call hook 'OnServerInitialized' on plugin 'Inventory Guardian'
    File: Inventory-Guardian.lua Line: 1496 Object reference not set to an instance of an object:
      at Oxide.Core.Configuration.DynamicConfigFile.GetEnumerator () [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Utility.TableFromConfig (Oxide.Core.Configuration.DynamicConfigFile config, NLua.Lua lua) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Libraries.LuaDatafile.GetDataTable (System.String name) [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
     
  11. Wulf

    Wulf Community Admin

    Your configuration file for the plugin is invalid/corrupt. When editing, make sure to validate it using jsonlint.com.
     
  12. ive never configured the config file for that plugin mst of got curupt at some stage
    [DOUBLEPOST=1437774364][/DOUBLEPOST]gettin this error now when i try to first load the plugin
    Code:
    [Error] Failed to call hook 'OnServerInitialized' on plugin 'Inventory Guardian'
    File: Inventory-Guardian.lua Line: 1496 Object reference not set to an instance of an object:
      at Oxide.Core.Configuration.DynamicConfigFile.GetEnumerator () [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Utility.TableFromConfig (Oxide.Core.Configuration.DynamicConfigFile config, NLua.Lua lua) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Libraries.LuaDatafile.GetDataTable (System.String name) [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=1437817705,1437770269][/DOUBLEPOST]is anyone else having trouble loading this plugin since last update
     
    Last edited by a moderator: Jul 25, 2015
  13. I'm having an issue where the save takes a very long time to complete, in the range of 6-7 seconds. I'm curious if there's anything that can be done about that, aside from deleted older saved inventories?
     
  14. And it is impossible to make that remained at one time? That is, what would be more than once is not Restores! PS Sorry for my bad english
     
  15. This plugin is broken since the most recent update. It didn't save anyone's inventory after the wipe, and when set to restore upon death, it says it restores, but nothing is restored... I didn't see any errors in console.
     
  16. when you have time can we get the plugin reworked for the last update....seems to have broken it. (no not Rust)! :)
     
  17. the plugin work !! the problem is rust has been renamed lots of items names that why the plugin cannot restore in his saved file you know you have to delete saved config and retry (make a backup if you want) to manually restore items after that with good item names ...
    [DOUBLEPOST=1439088162,1438990172][/DOUBLEPOST]
    I'm so sad finally not work!! i'm been died xD
     
  18. Hi I got this Error today:
    Code:
    [Oxide] 4:26 PM [Error] Failed to run a 1.00 timer
    File: Inventory-Guardian.lua Line: 287 field or property 'isBlueprint' does not exist:
      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 NLua.LuaFunction.Call (System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at NLua.Method.LuaDelegate.CallFunction (System.Object[] args, System.Object[] inArgs, System.Int32[] outArgs) [0x00000] in <filename unknown>:0
      at LuaGeneratedClass2.CallFunction () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0 
     
    Last edited by a moderator: Sep 4, 2015
  19. got this error on one persons death and he lost everything:
    Code:
    File: Inventory-Guardian.lua Line: 287 field or property 'isBlueprint' does not exist:
      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 NLua.LuaFunction.Call (System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at NLua.Method.LuaDelegate.CallFunction (System.Object[] args, System.Object[] inArgs, System.Int32[] outArgs) [0x00000] in <filename unknown>:0
      at LuaGeneratedClass1.CallFunction () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Sep 4, 2015