Jump to content

Failed to call hook

Fixed 0.1.6 0.1.7

0g.Ghost.7373
0g.Ghost.7373

Posted

Just noticed this in the console.

 

Failed to call hook 'OnPlayerEnteredMonument' on plugin 'ZoneStatus v0.1.6' (KeyNotFoundException: The given key 'CargoShip' was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <f98723dd4586469db5213ec59da723ca>:0 
  at Oxide.Plugins.ZoneStatus.SendMonumentBar (BasePlayer player, System.String monumentID) [0x0000f] in <a0896cbf88b3456d8090b78ce2bcc478>:0 
  at Oxide.Plugins.ZoneStatus.OnPlayerEnteredMonument (System.String monumentID, BasePlayer player, System.String type, System.String oldMonumentID) [0x00000] in <a0896cbf88b3456d8090b78ce2bcc478>:0 
  at Oxide.Plugins.ZoneStatus.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006b7] in <a0896cbf88b3456d8090b78ce2bcc478>: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 

IIIaKa

Posted

Changed Status from Pending to Work in Progress

IIIaKa

Posted

@0g.Ghost.7373
Hello. Please check the presence of 'CargoShip' in the config(*SERVER*\oxide\data\ZoneStatus\MonumentsConfig.json), the error indicates it is missing.

0g.Ghost.7373

Posted

Yeah, it isn't in there. I just unloaded the plugin, deleted that file and reloaded. Still doesnt add it.

Can you share what I need to add?

IIIaKa

Posted (edited)

It looks like in the last update, part of a line was accidentally deleted. Please open the ZoneStatus.cs plugin in any text editor, go to line 622, find

GetNewZone(MonumentsCargoShip, true);

and replace it with

_monumentsConfig[MonumentsCargoShip] = GetNewZone(MonumentsCargoShip, true);


This should fix this error, but it won’t save the settings for CargoShip. Tomorrow, I’ll try to release a new version with this and other fixes, that version will save the settings for CargoShip.

Edited by IIIaKa
IIIaKa

Posted

Changed Status from Work in Progress to Fixed

Changed Fixed In to Next Version

IIIaKa

Posted

If you have anything to add, feel free to write in this thread.

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.1k
Customers served
Files Sold
159.3k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.