Simple Loot

Set multipliers for any item of your choosing!

Total Downloads: 5,019 - First Release: Oct 10, 2017 - Last Update: Dec 8, 2017

5/5, 12 likes
  1. Failed to call hook 'OnEntitySpawned' on plugin 'SimpleLoot v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
    at Oxide.Plugins.SimpleLoot.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in <filename unknown>:0 at Oxide.Plugins.SimpleLoot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0

    PLS FIX
     
  2. Please add your ResourceId
    [Info("Simple Loot", "Jacob", "1.0.4", ResourceId = 2650)]
     
  3. Could you make a code line that allows you to modify the max item per barrel/crate like in betterloot please?.

    Just like this:


    "Barrel": {
    "barrelTypes": "loot-barrel|loot_barrel|loot_trash",
    "enableBarrels": true,
    "maxItemsPerBarrel": 6,
    "minItemsPerBarrel": 6,
    "randomAmountBarrels": true,
    "refreshBarrels": false
    },
    "Crate": {
    "crateTypes": "crate_normal|crate_tools",
    "enableCrates": true,
    "maxItemsPerCrate": 10,
    "minItemsPerCrate": 10,

    "randomAmountCrates": true,
    "refreshCrates": true

    Would appreciate it.
     
    Last edited by a moderator: Oct 16, 2017
  4. Same problem. Deleting the cfg or redownloading the plugin won't help.
     
  5. I haven't been able to reproduce that error, will check it out though. Thanks.
     
  6. It's strange... the plugin is working, but this error shows up numerous times on server restart only. Once the server is initialized, no other errors.

    Protocol: 2023.152.1
    Build Date: 10/12/2017 15:15:40
    Unity Version: 2017.1.2f1
    Changeset: 23288
    Branch: main
    Oxide Version: 2.0.0

    I updated Oxide right before I got this error on server restart:
    Code:
    Failed to call hook 'OnEntitySpawned' on plugin 'SimpleLoot v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)  at Oxide.Plugins.SimpleLoot.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in :0
      at Oxide.Plugins.SimpleLoot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in :0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in :0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in :0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in :0 
     
  7. Getting this error as well, multiple times. After the server stabilized I reloaded the plugin and didn't get any errors
     
  8. Containers seem to refresh their loot spawn over time if they haven't looted, this then resets the loot back to vanilla scrap levels...
     
  9. Odd... I updated Oxide again last night just in case my previous update wasn't the latest build, did a clean install of SimpleLoot, but the error persists on server startup. The plugin is working fine, just get this error spam on my console when the server first restarts.
     
  10. same her Ebro. pls anyone help!
     
  11. I would love you forever if you added an option to set the min/max of each container type. Or make a standalone plugin that would do that.

    Reading other users, sounds like there is a lot of interest in this feature too
     
  12. I am trying to run it and keep getting this error -Failed to call hook 'OnEntitySpawned' on plugin 'SimpleLoot v1.0.4' (NullReferenceException: Object reference not set to an instance of an object) ---Any ideas on how to fix? I have tried running it with changes made to config file to increase and I have uninstalled and just tried the normal no changes made option and still receive same error.
     
  13. When the server is opening i am getting this error:
    Failed to call hook 'OnEntitySpawned' on plugin 'SimpleLoot v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)

    at Oxide.Plugins.SimpleLoot.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in :0 at Oxide.Plugins.SimpleLoot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in :0

    After the server is open i am not getting the error anymore.
     
  14. yup

    (17:06:42) | at Oxide.Plugins.SimpleLoot.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.SimpleLoot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  15. can we get a fix for the CallHook spam error, please?
     
  16. also seems like the simple loot does not work unless I reload it by hand after a reboot.
     
  17. may you fix plugin?
     
  18. I am having the Same issue. Plugin IS working tho...
     
  19. Code:
    Failed to call hook 'OnEntitySpawned' on plugin 'SimpleLoot v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)