Jump to content

Compile Error After Server Restart

Pending 1.0.12

LandOfTheBlind

Posted

Since the may update, each day after our scheduled reboot, Item Perks will not be loaded with this error:

Error while compiling ItemPerks: Cannot convert type 'BasePlayer' to 'Oxide.Plugins.HumanNPC' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion | Line: 1905, Pos: 91

Once all the other plugins are loaded, I can do the o.load/reload command on it and it compiles and loads fine. I'm thinking it's trying to load before the HumanNPC plugin and that's why it's throwing that compile error. Is there a missing reference to HumanNPC maybe where it's not waiting for it to be loaded or is there something I can do on my config to have Item Perks have like a delayed loading without having to rely on external scheduled commands to reload it after restart?

Thanks!

imthenewguy

Posted

HumanNPC references in my plugin is to the class that inherits from NPCPlayer, which inherits from BasePlayer. It doesn't have anything to do with the HumanNPC plugin.
There shouldn't be any reason this error is appearing. Its almost as though the compiler is getting the native HumanNPC class and the plugin HumanNPC class mixed up.

Does it happen if the HumanNPC plugin is removed from the server when the server boots?

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • 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.