Plugin not working after updateNot An Issue
Hello,

I was wondering if we could get an update? The plugin is no longer working since todays update. Thanks

Failed to initialize plugin 'Inbound v0.4.4' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Core.Configuration.DynamicConfigFile.get_Item (System.String key) [0x00000] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Plugins.Inbound.GetConfig[T] (System.String name, T value) [0x00006] in <13d2b49eebe24935bf67a32c477a0f77>:0

at Oxide.Plugins.Inbound.LoadDefaultConfig () [0x00006] in <13d2b49eebe24935bf67a32c477a0f77>:0

at Oxide.Plugins.Inbound.Init () [0x00000] in <13d2b49eebe24935bf67a32c477a0f77>:0

at Oxide.Plugins.Inbound.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00038] in <13d2b49eebe24935bf67a32c477a0f77>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00043] in <4452f821def6406d834e4149849fe7ea>:0

(19:57:59) | Unloaded plugin Inbound v0.4.4 by Tori1157

(19:57:59) | No previous version to rollback plugin: Inbound

Your config file is invalid, nothing to do with the update. If you provide your config file, I'm sure we can point you in the right direction.
In response to Wulf ():
Your config file is invalid, nothing to do with the update. If you provide your config file, I'm sur...
That's weird. I never changed anything in the config file and it worked fine before the update. I will upload it
I'm getting similar error with one of my plugins after updating today - I deleted my config and let the plugin recreate it and still getting the error:

23:36 [Error] Failed to call hook 'commandHeli' on plugin 'HeliQueue v2017.1.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Core.Configuration.DynamicConfigFile.get_Item (System.String key) [0x00000] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Plugins.HeliQueue.HeliAdd (BasePlayer player) [0x00092] in <c0fb2c723bb24a2cbdee3fcca2edd148>:0

at Oxide.Plugins.HeliQueue.commandHeli (BasePlayer player, System.String command, System.String[] args) [0x00070] in <c0fb2c723bb24a2cbdee3fcca2edd148>:0

at Oxide.Plugins.HeliQueue.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002a8] in <c0fb2c723bb24a2cbdee3fcca2edd148>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0


Merged post

Current contents of the config file:

{
"heliActive": false,
"lastHeliMessage": "The last heli left ",
"lastHeliSpawnTime": 1544486452
}

Merged post

And the code that initialises the config:

List<string> heliQueueParticipants;
bool heliActive;
string lastHeliMessage;
Int32 lastHeliSpawnTime;

protected override void LoadDefaultConfig() {

Config.Clear();

Config["heliQueueParticipants"] = heliQueueParticipants;
Config["heliActive"] = heliActive;
Config["lastHeliMessage"] = lastHeliMessage;
Config["lastHeliSpawnTime"] = lastHeliSpawnTime;

SaveConfig();

}

Merged post

Managed to fix mine by adding using Oxide.Core.Configuration; to the top of the file.

This plugin has been working without that since Jan 2017... no big deal for me but might be for someone else :P
In response to Rebajas ():
I'm getting similar error with one of my plugins after updating today - I deleted my config and let...
That is very unlikely to be the fix, you'd see an entirely different error (it failing to even compile) if it was missing a reference.
Well, it worked before the update, it didn't work after, it works with that change. I haven't changed that plugin in months so I can't attribute it to anything else at this stage.

Happy to try other things if you want me to debug though. Or I can send you the whole plugin.
Locked automatically