NullReferenceException at LoadDefaultConfigFixed

Tried to install this for the first time using the latest version, but I am getting this error. (My install method is simply to put the CS file into the plugins folder)

16:35 [Warning] [Magic Loot] Creating a new configuration file
16:35 [Error] Could not initialize plugin 'MagicLoot v1.0.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.MagicLoot.LoadDefaultConfig () [0x0001c] in <731f896b8d4f4350a75b62f46baa86f8>:0 
  at Oxide.Core.Plugins.Plugin.LoadConfig () [0x00039] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
  at Oxide.Plugins.MagicLoot.LoadConfig () [0x00000] in <731f896b8d4f4350a75b62f46baa86f8>:0 
  at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0000f] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
  at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
  at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0 
  at Oxide.Plugins.CovalencePlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x000b3] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0 
  at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00027] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
  at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00035] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
16:35 [Info] No previous version to rollback plugin: MagicLoot
Did you remove the previous Configuration file?

Merged post

But no tbh probably not related to that. A few things will change with the coming update which should resolve this.

Merged post

... anyways are you using any other plugins that might be messing with items? Because unless your Manual Item List config category is null or some item definition null it should be fine
There was no configuration file to remove as this was an initial install. However I did, through testing, discover that it will not properly install (on my server anyway) unless the server was already on when I installed it. Having it do its initial install on server startup resulted in this error message.
Alright I will look into it, thanks for clarifying
Getting the same error on a fresh install, no other loot related plugins.
gritgodx
Getting the same error on a fresh install, no other loot related plugins.

Could you provide the error from the logs please?

5e13a8d5b2bc5.jpg Wulf

Could you provide the error from the logs please?

My bad!

[Magic Loot] Creating a new configuration file
Could not initialize plugin 'MagicLoot v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.MagicLoot.LoadDefaultConfig () [0x0001c] in <53a922c164ba45cdac910f6d9aa825bf>:0 
  at Oxide.Core.Plugins.Plugin.LoadConfig () [0x00039] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
  at Oxide.Plugins.MagicLoot.LoadConfig () [0x00000] in <53a922c164ba45cdac910f6d9aa825bf>:0 
  at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0000f] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
  at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
  at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0 
  at Oxide.Plugins.CovalencePlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x000b3] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0 
  at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00027] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
  at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00035] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
No previous version to rollback plugin: MagicLoot
Also most likely actually related to the itemlist still being null, so consider just loading the plugin after the server has fully initialized until I update the plugin.

Merged post

Aka, once the server has loaded do o.reload MagicLoot
5cc8aded24c90.png collectvood
Also most likely actually related to the itemlist still being null, so consider just loading the plugin after the server has fully initialized until I update the plugin.

Merged post

Aka, once the server has loaded do o.reload MagicLoot

Thank you that works!

Locked automatically