InvalidCastException at OnEntityBuiltFixed

Failed to call hook 'OnEntityBuilt' on plugin 'TurretManager v1.1.0' (InvalidCastException: Object must implement IConvertible.)

Please provide the full error from the oxide/logs.

Failed to call hook 'OnEntityBuilt' on plugin 'TurretManager v1.1.0' (InvalidCastException: Object must implement IConvertible.) at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in <437ba245d8404784b9fbab9b439ac908>:0 at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <437ba245d8404784b9fbab9b439ac908>:0 at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <cf88a28c7fb44d36890d85a78331cc9d>:0 at Oxide.Plugins.TurretManager.OnEntityBuilt (Planner plan, UnityEngine.GameObject go) [0x00089] in <363628c8db014d73bba7e012d692d903>:0 at Oxide.Plugins.TurretManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b8] in <363628c8db014d73bba7e012d692d903>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0(14:09:24) | Failed to call hook 'OnEntityBuilt' on plugin 'TurretManager v1.1.0' (InvalidCastException: Object must implement IConvertible.) at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in <437ba245d8404784b9fbab9b439ac908>:0 at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <437ba245d8404784b9fbab9b439ac908>:0 at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <cf88a28c7fb44d36890d85a78331cc9d>:0 at Oxide.Plugins.TurretManager.OnEntityBuilt (Planner plan, UnityEngine.GameObject go) [0x00089] in <363628c8db014d73bba7e012d692d903>:0 at Oxide.Plugins.TurretManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b8] in <363628c8db014d73bba7e012d692d903>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0

having the same issue here
I'm not entirely sure how this error was happening before since there was an is AutoTurret check before the (AutoTurret) cast. Regardless, that type of casting is no longer in the code so this error should no longer occur as of the v1.1.1 release.
5f1792699e67b.jpg WhiteThunder
I'm not entirely sure how this error was happening before since there was an is AutoTurret check before the (AutoTurret) cast. Regardless, that type of casting is no longer in the code so this error should no longer occur as of the v1.1.1 release.

yes I no longer get it

Locked automatically