IndexOutOfRangeException at OnEntityBuiltFixed

I'm getting a ton of errors. It's also running Raidable Bases, Zone Dome, Auto Zones.

(21:01:08) | 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 <1c6df59c53554fddac3439899b5b2722>:0
at Oxide.Plugins.LandLord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00264] in <1c6df59c53554fddac3439899b5b2722>: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

Also, just running zome manager still throws same erors which is what this plugin depends on...

Thank you for submitting the bug. I will check it ASAP

how are you doing with this? We were hoping to use it in the next wipe.

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). 

yeah, seems like it also breaks raidable bases so we decided to pass. Thank you anyway for the work on the plugin.

LesbianSeagull

yeah, seems like it also breaks raidable bases so we decided to pass. Thank you anyway for the work on the plugin.

yep. looks like the plugin does not work with other ones that use ZoneManager

Locked automatically