Failed to call hook 'OnTeleportRequested' on plugin 'NTeleportation v1.3.5' (InvalidCastException: Null object cannot be converted to a value type.)
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] 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 <1fe782f4b27a43ae85d29ebb2d56c007>:0
at Oxide.Plugins.NTeleportation.AreFriends (System.String playerId, System.String targetId) [0x0003d] in <e30d71373907441c84683444da91d226>:0
at Oxide.Plugins.NTeleportation.OnTeleportRequested (BasePlayer target, BasePlayer player) [0x00017] in <e30d71373907441c84683444da91d226>:0
at Oxide.Plugins.NTeleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01ac3] in <e30d71373907441c84683444da91d226>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3e46d2a997e94a3cb08cf065508cd483>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <1fe782f4b27a43ae85d29ebb2d56c007>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <1fe782f4b27a43ae85d29ebb2d56c007>:0 InvalidCastException at AreFriendsError
Figured it out, config was messed up. Tried deleting this, and can't figure out where.
19:19 [Error] Failed to call hook 'OnTeleportRequested' on plugin 'NTeleportation v1.3.6' (InvalidCastException: Null object cannot be converted to a value type.) See above
Failed to call hook 'OnTeleportRequested' on plugin 'NTeleportation v1.3.7' (InvalidCastException: Null object cannot be converted to a value type.)
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] 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 <1fe782f4b27a43ae85d29ebb2d56c007>:0
at Oxide.Plugins.NTeleportation.AreFriends (System.String playerId, System.String targetId) [0x0005d] in <844afc10bacb47939d7d5d9149904f17>:0
at Oxide.Plugins.NTeleportation.OnTeleportRequested (BasePlayer target, BasePlayer player) [0x00017] in <844afc10bacb47939d7d5d9149904f17>:0
at Oxide.Plugins.NTeleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01ac3] in <844afc10bacb47939d7d5d9149904f17>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <1e2d7ad0801a4037ab6a24578c814b54>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <1fe782f4b27a43ae85d29ebb2d56c007>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <1fe782f4b27a43ae85d29ebb2d56c007>:0 Getting this:
I've updated, deleted all files, updated oxide, and still get this - randomly. Suggestions?
Failed to call hook 'OnTeleportRequested' on plugin 'NTeleportation v1.3.7' (InvalidCastException: Null object cannot be converted to a value type.)
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] 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.NTeleportation.AreFriends (System.String playerId, System.String targetId) [0x0005d] in <0c5c960d653047b0a95f9468424952b9>:0
at Oxide.Plugins.NTeleportation.OnTeleportRequested (BasePlayer target, BasePlayer player) [0x00017] in <0c5c960d653047b0a95f9468424952b9>:0
at Oxide.Plugins.NTeleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01ac3] in <0c5c960d653047b0a95f9468424952b9>: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>:0I've updated, deleted all files, updated oxide, and still get this - randomly. Suggestions?
Find these (search for unHostileTime) and switch them to this:
string pt = ((int)Math.Abs(player.State.unHostileTimestamp - Time.realtimeSinceStartup) / 60).ToString();
var pc = player as BasePlayer;
string pt = ((int)Math.Abs(pc.State.unHostileTimestamp - Time.realtimeSinceStartup) / 60).ToString();
string pt = ((int)Math.Abs(player.State.unHostileTimestamp - Time.realtimeSinceStartup) / 60).ToString();
var pc = player as BasePlayer;
string pt = ((int)Math.Abs(pc.State.unHostileTimestamp - Time.realtimeSinceStartup) / 60).ToString();
that will not fix this error. the issue is
!Clans should be Clans == null
and
!Friends should be Friends == null
!Clans should be Clans == null
and
!Friends should be Friends == null
Periodically spam the console. What is the problem?
Failed to call hook 'OnTeleportRequested' on plugin 'NTeleportation v1.3.9' (InvalidCastException: Null object cannot be converted to a value type.)
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] 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.NTeleportation.AreFriends (System.String playerId, System.String targetId) [0x00042] in <6ee40bf23bbd437cb904cb3aec772fad>:0
at Oxide.Plugins.NTeleportation.OnTeleportRequested (BasePlayer target, BasePlayer player) [0x00017] in <6ee40bf23bbd437cb904cb3aec772fad>:0
at Oxide.Plugins.NTeleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01acb] in <6ee40bf23bbd437cb904cb3aec772fad>: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 are you not using Friends plugin?
Yes I use
idk then. it is already null checked
It sounds like one of the IDs being passed to it is null.nivexidk then. it is already null checked
I thought so too, but if that were the case then it would throw the error at IsInSameClan instead of AreFriends, since it is called first
Or does the other plugin check for that?nivexI thought so too, but if that were the case then it would throw the error at IsInSameClan instead of AreFriends, since it is called first
- 1
- 2