NullReferenceException at FindPlayerMiniError

Hi, today the plugin stop working, try to clear and reinstall but nothing work!!
Ty for the help!

Failed to call hook 'MyMiniCommand' on plugin 'SpawnMini v2.10.0' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.SpawnMini.FindPlayerMini (BasePlayer player) [0x00000] in <a903fc06ffbf4f88bc3327120e967eff>:0
at Oxide.Plugins.SpawnMini.MyMiniCommand (BasePlayer player, System.String command, System.String[] args) [0x0003a] in <a903fc06ffbf4f88bc3327120e967eff>:0
at Oxide.Plugins.SpawnMini.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0043e] in <a903fc06ffbf4f88bc3327120e967eff>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0
Failed to call hook 'MyMiniCommand' on plugin 'SpawnMini v2.10.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.SpawnMini.FindPlayerMini (BasePlayer player) [0x00000] in <250e07e6ac144688bc7eb7dcd66b3b78>:0
  at Oxide.Plugins.SpawnMini.MyMiniCommand (BasePlayer player, System.String command, System.String[] args) [0x0003a] in <250e07e6ac144688bc7eb7dcd66b3b78>:0
  at Oxide.Plugins.SpawnMini.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0043e] in <250e07e6ac144688bc7eb7dcd66b3b78>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

Based on the code of the FindPlayerMini method, pretty sure this means the oxide/data/SpawnMini.json file is corrupt. If you open that file, it will probably have some invalid looking symbols in it. All you can do at that point is delete that file while the plugin is unloaded, then load the plugin again. Also, if you could save the corrupt data file and send it to me for testing, I can look into making the plugin more resilient so that it automatically recovers.

Recently several folks were having similar problems with the Backpacks plugin as well. Not sure what's data files to go corrupt everywhere.

I have the same problem, the plugin is trying to load in a loop ...

Merged post

I took a look at the data file and the content was just the word "null", I deleted this file and reinstalled the plugin, The data file is now containing only the "{}" signs and the plugin returned to work normally.

Merged post

After the plugin ran normally the data file content looked like this:
{
"playerMini": {},
"cooldown": {}
}

Merged post

As it seems to me the plugin has returned to normal ...

Merged post

Friend, good afternoon. Thank you for this plug of yours, it's a great show. I have a PVE server and I'm looking for a plugin that, when the building goes into decay it also leaves the PVE and remains as PVP and could be broken and blended. I can't find this plugin, would you know to tell me where I can get something like this? Grateful.

here is  the SpawnMini.json

https://gofile.io/d/Mov6OW

here is the code if you don;t want to downlaod it

{
  "AssetPrefab": "assets/content/vehicles/minicopter/minicopter.entity.prefab",
  "CanDespawnWhileOccupied": false,
  "CanFetchWhileOccupied": false,
  "CanSpawnBuildingBlocked": false,
  "FuelAmount": 5000,
  "MaxNoMiniDistance": -1.0,
  "MaxSpawnDistance": 5.0,
  "UseFixedSpawnDistance": true,
  "OwnerAndTeamCanMount": false,
  "DefaultCooldown": 300.0,
  "PermissionCooldowns": {
    "spawnmini.tier1": 300.0,
    "spawnmini.tier2": 200.0,
    "spawnmini.tier3": 100.0
  },
  "SpawnHealth": 750.0,
  "DestroyOnDisconnect": true
}

 

That's the config file. I mentioned the data file as being the issue. That is in the oxide/data directory also using the name SpawnMini.json.

https://gofile.io/d/bnMvaB

{
  "playerMini": {},
  "cooldown": {
    "76561############": "2021-02-16T20:34:49.38092+02:00",
    "76561############": "2021-02-16T10:53:48.381819+02:00",
    "76561############": "2021-02-16T09:28:59.489214+02:00",
    "76561############": "2021-02-16T12:40:16.253078+02:00",
    "76561############": "2021-02-16T06:48:01.589751+02:00",
    "76561############": "2021-02-18T00:04:46.3841028+02:00",
    "76561############": "2021-02-17T16:56:25.3983514+02:00",
    "76561############": "2021-02-15T05:03:02.061017+02:00",
    "76561############": "2021-02-17T20:54:18.4247568+02:00",
    "76561############": "2021-02-15T23:41:12.554077+02:00",
    "76561############": "2021-02-16T20:35:01.000379+02:00"
  }
}

That doesn't look corrupt to me. Are you still experiencing the error?

not anymore, i wipe the map and it work

Hi
Finally i delete all the 3 files of the plugin in config, data y plugins
Put again the plug and it works...