Jump to content

Failed to call hook CanUpgrade

Not a Bug 1.4.9

TOP-ic
TOP-ic

Posted

There are a lot of errors in the console. At the same time, I will say this. All player rights are disabled, meaning no one interacts with the plugin.

[Oxide] 21:35 [Error] Failed to call hook 'CanUpgrade' on plugin 'BetterTC v1.4.9' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.BetterTC.CanUpgrade (BasePlayer player, BuildingPrivlidge cup, BuildingBlock block, BuildingGrade+Enum grade) [0x00000] in <740b16b0919f432ea5e9090463f807ad>:0                                       38kb/s in, 497kb/s out
  at Oxide.Plugins.BetterTC.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00be9] in <740b16b0919f432ea5e9090463f807ad>: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

ninco90

Posted

That's strange. From what I see, that error should occur when a build upgrade or reskin is in progress. Are you sure no one can use it?

TOP-ic

Posted

Yes. I gave the rights only to myself, as an admin. But with this error, I was not on the server.

ninco90

Posted

Does the bettertc menu appear to other players?

TOP-ic

Posted

No.
Or maybe the error is due to a similar plugin? I just can't turn off the other one until I set this one up. I have other plug-ins installed for skins and repairs.

ninco90

Posted

Can you check if those other plugins you mentioned have the text: CanUpgrade in their code?

ninco90

Posted

Changed Status from Pending to Not a Bug

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.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
155k
Marketplace sales
Payments
3.3m
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.