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
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
-
[Info("Simple Loot", "Jacob", "1.0.4", ResourceId = 2650)] -
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 -
-
I haven't been able to reproduce that error, will check it out though. Thanks.
-
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
-
Getting this error as well, multiple times. After the server stabilized I reloaded the plugin and didn't get any errors
-
Containers seem to refresh their loot spawn over time if they haven't looted, this then resets the loot back to vanilla scrap levels...
-
-
-
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 -
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.
-
Gyazo - ad0e07a358d9ce47f864fed27d469ef0.png
I get this spammed out on startup on a new map I believe, plugin still works but slows down restarts -
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. -
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 -
can we get a fix for the CallHook spam error, please?
-
also seems like the simple loot does not work unless I reload it by hand after a reboot.
-
may you fix plugin?
-
-
Code:
Failed to call hook 'OnEntitySpawned' on plugin 'SimpleLoot v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)