Jump to content

issues making custom items

Pending 1.0.29

this is what i have if this helps 

Failed to call hook 'CMD_cmd' on plugin 'Loottable v1.0.29' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Loottable.CreateItemSelectOverlay (BasePlayer player, System.String search, System.Boolean updatePages) [0x00dcf] in <d8abfa1bad0f40e681f4a9397bd0c02e>:0 
  at Oxide.Plugins.Loottable.CreateItemEditUI (BasePlayer player, System.Boolean create_new) [0x01b81] in <d8abfa1bad0f40e681f4a9397bd0c02e>:0 
  at Oxide.Plugins.Loottable.CMD_cmd (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args_0) [0x008db] in <d8abfa1bad0f40e681f4a9397bd0c02e>:0 
  at Oxide.Plugins.Loottable.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0253c] in <d8abfa1bad0f40e681f4a9397bd0c02e>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0 

Share this comment


Link to comment

Does this error happen every time? If thats the case please add the line

#define DEBUG

at the very top of the plugin file and send me the produced output.

With your current error message it is not possible for me to reproduce your error.

I would also recommend you to make a backup of the file oxide/data/Loottable/custom_items_v2.json and then delete it. If that solves your problem your custom items file was not formatted correctly

Share this comment


Link to comment

ok ok so add the #define Debug where in the top of the cs file or in the config file? and i can try again today with i will also look into the lootable custon item folder and see if there in there as well and if not i will see what i can do about reproducing this i was trying to make paper look like a roll of tp i have the skin id number and everything never had an issue like this before with this plugin 

Share this comment


Link to comment

The define debug should be added on top of the cs file, not the config. Could you also send me your custom items file so I can try to reproduce your issue

Share this comment


Link to comment

yes this section is only suppose to be the last one not the top one tried removing it and it came back 

 "plugin": "Loottable",
      "itemId": 0,
      "skinId": 3001361341,
      "customName": "Toilet Paper",
      "persistent": true
    },
    {
      "plugin": "Loottable",
      "itemId": -1779183908,
      "skinId": 3001361341,
      "customName": "Toilet Paper",
      "persistent": true

custom_items_v2.json

Share this comment


Link to comment

Failed to call hook 'OnServerInitialized' on plugin 'Loottable v1.0.29' (NullReferenceException: )
  at (wrapper managed-to-native) UnityEngine.Component.get_gameObject(UnityEngine.Component)
  at UnityEngine.Component.GetComponentInParent (System.Type t) [0x00001] in <0b31faaf1c50461d95c83ac166a20393>:0 
  at UnityEngine.Component.GetComponentInParent[T] () [0x00001] in <0b31faaf1c50461d95c83ac166a20393>:0 
  at Oxide.Plugins.Loottable+LootManager.CacheNpc (BasePlayer npc) [0x00027] in <88d847cb12ea4946a033e6916f62cfae>:0 
  at Oxide.Plugins.Loottable+LootManager.PopulateNpcCache () [0x00032] in <88d847cb12ea4946a033e6916f62cfae>:0 
  at Oxide.Plugins.Loottable.OnServerInitialized () [0x0002a] in <88d847cb12ea4946a033e6916f62cfae>:0 
  at Oxide.Plugins.Loottable.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x02e3d] in <88d847cb12ea4946a033e6916f62cfae>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
Failed to call hook 'OnServerInitialized' on plugin 'Loottable v1.0.29' (NullReferenceException: )
  at (wrapper managed-to-native) UnityEngine.Component.get_gameObject(UnityEngine.Component)
  at UnityEngine.Component.GetComponentInParent (System.Type t) [0x00001] in <0b31faaf1c50461d95c83ac166a20393>:0 
  at UnityEngine.Component.GetComponentInParent[T] () [0x00001] in <0b31faaf1c50461d95c83ac166a20393>:0 
  at Oxide.Plugins.Loottable+LootManager.CacheNpc (BasePlayer npc) [0x00027] in <88d847cb12ea4946a033e6916f62cfae>:0 
  at Oxide.Plugins.Loottable+LootManager.PopulateNpcCache () [0x00032] in <88d847cb12ea4946a033e6916f62cfae>:0 
  at Oxide.Plugins.Loottable.OnServerInitialized () [0x0002a] in <88d847cb12ea4946a033e6916f62cfae>:0 
  at Oxide.Plugins.Loottable.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x02e3d] in <88d847cb12ea4946a033e6916f62cfae>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
Calling 'OnServerInitialized' on 'Loottable v1.0.29' took 398ms
Calling 'OnServerInitialized' on 'Loottable v1.0.29' took 398ms
Loaded plugin Loottable v1.0.29 by The_Kiiiing
Loaded plugin Loottable v1.0.29 by The_Kiiiing
[Loottable] Refreshed 5407 crates and 17 train wagons in 1518ms
[Loottable] Refreshed 5407 crates and 17 train wagons in 1518ms
[Loottable] Refreshed vanilla loot profiles in 2602ms
[Loottable] Refreshed vanilla loot profiles in 2602ms

Share this comment


Link to comment

Unloaded plugin Loottable v1.0.29 by The_Kiiiing
Unloaded plugin Loottable v1.0.29 by The_Kiiiing
[Loottable] [DEBUG] Restore custom items from temp storage
[Loottable] [DEBUG] Restore custom items from temp storage
[Loottable] Import 108 images
[Loottable] Import 108 images
Failed to call hook 'OnServerInitialized' on plugin 'Loottable v1.0.29' (NullReferenceException: )
  at (wrapper managed-to-native) UnityEngine.Component.get_gameObject(UnityEngine.Component)
  at UnityEngine.Component.GetComponentInParent (System.Type t) [0x00001] in <0b31faaf1c50461d95c83ac166a20393>:0 
  at UnityEngine.Component.GetComponentInParent[T] () [0x00001] in <0b31faaf1c50461d95c83ac166a20393>:0 
  at Oxide.Plugins.Loottable+LootManager.CacheNpc (BasePlayer npc) [0x00027] in <74e5d4e14d3741028c98bc257405393a>:0 
  at Oxide.Plugins.Loottable+LootManager.PopulateNpcCache () [0x00032] in <74e5d4e14d3741028c98bc257405393a>:0 
  at Oxide.Plugins.Loottable.OnServerInitialized () [0x0002a] in <74e5d4e14d3741028c98bc257405393a>:0 
  at Oxide.Plugins.Loottable.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x02e3d] in <74e5d4e14d3741028c98bc257405393a>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
Failed to call hook 'OnServerInitialized' on plugin 'Loottable v1.0.29' (NullReferenceException: )
  at (wrapper managed-to-native) UnityEngine.Component.get_gameObject(UnityEngine.Component)
  at UnityEngine.Component.GetComponentInParent (System.Type t) [0x00001] in <0b31faaf1c50461d95c83ac166a20393>:0 
  at UnityEngine.Component.GetComponentInParent[T] () [0x00001] in <0b31faaf1c50461d95c83ac166a20393>:0 
  at Oxide.Plugins.Loottable+LootManager.CacheNpc (BasePlayer npc) [0x00027] in <74e5d4e14d3741028c98bc257405393a>:0 
  at Oxide.Plugins.Loottable+LootManager.PopulateNpcCache () [0x00032] in <74e5d4e14d3741028c98bc257405393a>:0 
  at Oxide.Plugins.Loottable.OnServerInitialized () [0x0002a] in <74e5d4e14d3741028c98bc257405393a>:0 
  at Oxide.Plugins.Loottable.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x02e3d] in <74e5d4e14d3741028c98bc257405393a>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
Calling 'OnServerInitialized' on 'Loottable v1.0.29' took 314ms
Calling 'OnServerInitialized' on 'Loottable v1.0.29' took 314ms
Loaded plugin Loottable v1.0.29 by The_Kiiiing
Loaded plugin Loottable v1.0.29 by The_Kiiiing
[Loottable] [DEBUG] Apply wagon loot 2
[Loottable] [DEBUG] Apply wagon loot 2
[Loottable] [DEBUG] Apply wagon loot 2
[Loottable] [DEBUG] Apply wagon loot 2
[Loottable] [DEBUG] Apply wagon loot 2
[Loottable] [DEBUG] Apply wagon loot 2
[Loottable] [DEBUG] Apply wagon loot 0
[Loottable] [DEBUG] Apply wagon loot 0
[Loottable] [DEBUG] Apply wagon loot 1
[Loottable] [DEBUG] Apply wagon loot 1
[Loottable] [DEBUG] Apply wagon loot 1001
[Loottable] [DEBUG] Apply wagon loot 1001
[Loottable] [DEBUG] Apply wagon loot 2
[Loottable] [DEBUG] Apply wagon loot 2
[Loottable] [DEBUG] Apply wagon loot 1001
[Loottable] [DEBUG] Apply wagon loot 1001
[Loottable] [DEBUG] Apply wagon loot 2
[Loottable] [DEBUG] Apply wagon loot 2
[Loottable] Refreshed 5549 crates and 17 train wagons in 1336ms
[Loottable] Refreshed 5549 crates and 17 train wagons in 1336ms
[Loottable] Refreshed vanilla loot profiles in 2326ms
[Loottable] Refreshed vanilla loot profiles in 2326ms

Share this comment


Link to comment
0

Downloads

Total number of downloads.

0

Customers

Total customers served.

0

Files Sold

Total number of files sold.

0

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.