RCON ERRORSolved

o.reload VehicleDecayProtection

Failed to call hook 'Unload' on plugin 'VehicleDecayProtection v2.0.0' (ArgumentException: Value does not fall within the expected range.) at Oxide.Plugins.VehicleDecayProtection+VehicleInfoManager.m__7 (BaseEntity entity) [0x00000] in :0 at Oxide.Plugins.VehicleDecayProtection+VehicleDecayReplacer.RemoveFromEntity (BaseEntity entity) [0x00019] in :0 at Oxide.Plugins.VehicleDecayProtection.Unload () [0x0004c] in :0 at Oxide.Plugins.VehicleDecayProtection.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002ba] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <50629aa0e75d4126b345d8d9d64da28d>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0 Unloaded plugin Vehicle Decay Protection v2.0.0 by WhiteThunder Failed to call hook

'OnServerInitialized' on plugin 'VehicleDecayProtection v2.0.0' (ArgumentException: Value does not fall within the expected range.) at Oxide.Plugins.VehicleDecayProtection+VehicleInfoManager.m__7 (BaseEntity entity) [0x00000] in :0 at Oxide.Plugins.VehicleDecayProtection+VehicleDecayReplacer.AddToEntity (BaseEntity entity, Oxide.Plugins.VehicleDecayProtection+VehicleInfo vehicleInfo) [0x0001a] in :0 at Oxide.Plugins.VehicleDecayProtection.HandleEntitySpawned (BaseEntity entity) [0x00014] in :0 at Oxide.Plugins.VehicleDecayProtection.OnServerInitialized () [0x00045] in :0 at Oxide.Plugins.VehicleDecayProtection.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0008d] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <50629aa0e75d4126b345d8d9d64da28d>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0 Calling 'OnServerInitialized' on 'VehicleDecayProtection v2.0.0' took 150ms

Loaded plugin Vehicle Decay Protection v2.0.0 by WhiteThunder

 

The error occurred the moment I uploaded the latest version of the plugin to the server.

I don't even know if it is working or not since it is a decay system.

I tried my best to upload the config file to Filebin, but for some reason the upload fails, so I am writing here.

Tested: changed multiple values, checked by jsonlint (passed), re-uploaded, reloaded, deleted config and then uploaded, restarted server.

 

{
  "EnablePermission": false,
  "Vehicles": {
    "DuoSubmarine": {
      "DecayMultiplierInside": 1.0,
      "DecayMultiplierNearTC": 0.0,
      "ProtectionMinutesAfterUse": 10.0,
      "DecayIntervalSeconds": 1800.0
    },
    "HotAirBalloon": {
      "DecayMultiplierInside": 1.0,
      "DecayMultiplierNearTC": 1.0,
      "ProtectionMinutesAfterUse": 10.0,
      "DecayIntervalSeconds": 1800.0
    },
    "Kayak": {
      "DecayMultiplierInside": 1.0,
      "DecayMultiplierNearTC": 1.0,
      "ProtectionMinutesAfterUse": 45.0,
      "DecayIntervalSeconds": 1800.0
    },
    "Minicopter": {
      "DecayMultiplierInside": 1.0,
      "DecayMultiplierNearTC": 0.0,
      "ProtectionMinutesAfterUse": 60.0,
      "DecayIntervalSeconds": 1800.0
    },
    "ModularCar": {
      "DecayMultiplierInside": 1.0,
      "DecayMultiplierNearTC": 0.0,
      "ProtectionMinutesAfterUse": 0.0,
      "DecayIntervalSeconds": 86400.0
    },
    "RHIB": {
      "DecayMultiplierInside": 1.0,
      "DecayMultiplierNearTC": 0.0,
      "ProtectionMinutesAfterUse": 10.0,
      "DecayIntervalSeconds": 1800.0
    },
    "RidableHorse": {
      "DecayMultiplierInside": 1.0,
      "DecayMultiplierNearTC": 1.0,
      "ProtectionMinutesAfterUse": 10.0,
      "DecayIntervalSeconds": 1800.0
    },
    "Rowboat": {
      "DecayMultiplierInside": 1.0,
      "DecayMultiplierNearTC": 1.0,
      "ProtectionMinutesAfterUse": 15.0,
      "DecayIntervalSeconds": 1800.0
    },
    "ScrapTransportHelicopter": {
      "DecayMultiplierInside": 1.0,
      "DecayMultiplierNearTC": 0.0,
      "ProtectionMinutesAfterUse": 120.0,
      "DecayIntervalSeconds": 1800.0
    },
    "Snowmobile": {
      "DecayMultiplierInside": 1.0,
      "DecayMultiplierNearTC": 0.0,
      "ProtectionMinutesAfterUse": 45.0,
      "DecayIntervalSeconds": 1800.0
    },
    "SoloSubmarine": {
      "DecayMultiplierInside": 1.0,
      "DecayMultiplierNearTC": 0.0,
      "ProtectionMinutesAfterUse": 10.0,
      "DecayIntervalSeconds": 1800.0
    },
    "Tomaha": {
      "DecayMultiplierInside": 1.0,
      "DecayMultiplierNearTC": 0.0,
      "ProtectionMinutesAfterUse": 45.0,
      "DecayIntervalSeconds": 1800.0
    }
  }
}

 

OnServerInitialized' on plugin

I searched for "OnServerInitialized" and found an article about data file corruption, but nothing could be done because the data file does not exist for this plugin. Thank you in advance for your help.

Fixed in v2.0.1. Thanks for helping me test changes on your server to come to a quick resolution. If anyone is wondering what happened, we first narrowed it down to Kayaks, then discovered that another plugin on the server was doing something unusual, where it was replacing the Kayak component with a BaseVehicle component. This plugin was not expecting that, since it assumed any entity with the kayak prefabID was using the Kayak class.

Locked automatically