IndexOutOfRangeException at OnEntityBuiltFixed
Failed to call hook 'OnEntityBuilt' on plugin 'LandLord v1.0.6' (IndexOutOfRangeException: Index was outside the bounds of the array.)
  at Oxide.Plugins.LandLord.OnEntityBuilt (Planner plan, UnityEngine.GameObject go) [0x00084] in <b4c18d0a98444848b3ec643af863b227>:0
  at Oxide.Plugins.LandLord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00264] in <b4c18d0a98444848b3ec643af863b227>: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

I have repro. The exception means that the plugin can't get zone id from the ZoneManager plugin. Usually, it happens when the following file oxide\data\ZoneManager\zone_data.json doesn't contain actual information about zones. I found two ways to repro the issue, the first is if you start the server with map size for instance 3000 but then change map size and the second way is to delete the file oxide\data\ZoneManager\zone_data.json 
To fix it on the working server you have to delete these files:

  • oxide\plugins\LandLord.cs 
  • oxide\data\Landlord.data.json
  • oxide\data\ZoneManager\zone_data.json
Then put the plugin back to the plugin folder oxide\plugins\LandLord.cs to start new initialization. Keep in mind the initialization process takes time up to a minute or so.

So far the plugin was updated and the exception has fixed with the message "Error! Not found zone ID or prefab!". You will see the message only if debug mode is enabled (readonly bool debug = true; in the plugin config).
Locked automatically