Failed to call hook 'RemoveExistingDome' on plugin 'ZoneDomes v2.0.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ZoneDomes.TranslateMessage (BasePlayer player, System.String key, System.String additional) [0x00033] in :0
at Oxide.Plugins.ZoneDomes.RemoveExistingDome (BasePlayer player, System.String zoneId) [0x00013] in :0
at Oxide.Plugins.ZoneDomes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0064a] 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) [0x000de] in :0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0
Failed to call hook 'RemoveExistingDome'
I'm also experiencing this error spam in console.
I submitted a patch to Fix it. Just gotta wait till it's approved.
It does not appear to have been corrected yet.
[AgileZones] Removing PVP Zone
Failed to call internal hook 'RemoveExistingDome' on plugin 'ZoneDomes v2.0.2' [
4091762758] (Object reference not set to an instance of an object)
at void Oxide.Plugins.ZoneDomes.TranslateMessage(BasePlayer player, string ke
y, string additional) in F:/Rust_Server/Server/rustds/carbon/plugins/ZoneDomes.c
s:line 196
at bool Oxide.Plugins.ZoneDomes.RemoveExistingDome(BasePlayer player, string
zoneId) in F:/Rust_Server/Server/rustds/carbon/plugins/ZoneDomes.cs:line 288
at object Oxide.Plugins.ZoneDomes.InternalCallHook(uint hook, object[] args)
in ZoneDomes.cs/Internal:line 124
Dev hasnt accepted it yet so its not in
iam also having this issue, has there been any update yet?
Failed to call hook 'RemoveExistingDome' on plugin 'ZoneDomes v2.0.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ZoneDomes.TranslateMessage (BasePlayer player, System.String key, System.String additional) [0x00033] in <fb4ab7b643284bf5b02e1122bc988000>:0
at Oxide.Plugins.ZoneDomes.RemoveExistingDome (BasePlayer player, System.String zoneId) [0x00013] in <fb4ab7b643284bf5b02e1122bc988000>:0
at Oxide.Plugins.ZoneDomes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0064a] in <fb4ab7b643284bf5b02e1122bc988000>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0
Failed to call hook 'RemoveExistingDome' on plugin 'ZoneDomes v2.0.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ZoneDomes.TranslateMessage (BasePlayer player, System.String key, System.String additional) [0x00033] in <fb4ab7b643284bf5b02e1122bc988000>:0
6kb/s in, 78kb/s out
at Oxide.Plugins.ZoneDomes.RemoveExistingDome (BasePlayer player, System.String zoneId) [0x00013] in <fb4ab7b643284bf5b02e1122bc988000>:0
at Oxide.Plugins.ZoneDomes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0064a] in <fb4ab7b643284bf5b02e1122bc988000>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 You should be using v2.0.2
v2.0.2 is the same and dev just ignoring problem
small fix for this error
find this in your Zonedomes.cs
private void TranslateMessage(BasePlayer player, string key, string additional = "")
=> player.ChatMessage($"<color=#939393>{TranslateMessage(key, player)}</color><color=#ce422b>{additional}</color>");
and replace with this
private void TranslateMessage(BasePlayer player, string key, string additional = "")
{
string message = $"<color=#939393>{TranslateMessage(key, player)}</color><color=#ce422b>{additional}</color>";
if (player != null)
player.ChatMessage(message);
else
Puts(message); // Wyświetlenie w konsoli serwera, można pominąć jeśli niepotrzebne
}save the file and no more error
Merged post
here is ready plugin to use
https://www.mediafire.com/file/h0nnzihyy42axt6/ZoneDomes.cs/file