Jump to content

Plugins Not Loading on Server Restart When Your Plugin Is Installed

Fixed 1.0.1 1.0.2

Kobani
Kobani

Posted

Hello,

After installing your plugin on my server, several other plugins fail to load properly upon server restart. All affected plugins return the same error (with line numbers varying by plugin):

Failed to compile: The type or namespace name 'Core' does not exist in the namespace 'Oxide.Plugins.Oxide' (are you missing an assembly reference?)

As soon as I remove your plugin and restart the server, all other plugins load without any issues. This problem only occurs when your plugin is present.

Could you please look into this? I’ve attached a screenshot showing the affected plugins.

Thank you in advance!

image.png

Kobani

Posted (edited)

I noticed that the code uses a nested namespace (Oxide.Plugins.Oxide.Plugins.BasementMethods). Since Oxide.Plugins.BasementMethods was already defined within the code itself, I tried removing the outer namespace to resolve the duplicate definition. After making this change, all plugins—including your base plugin—loaded correctly for me after a restart.

I’m not sure if the nesting was intentional, and I hope this is not taken as criticism. I just wanted to help and share this as a friendly hint. Thank you very much for your great plugin!

Edited by Kobani
Mr01sam

Posted

That's very interesting - I use a script that compiles multiple c# files into one, I will take a look at this ASAP. Thanks for the heads up!

Mr01sam

Posted

Changed Status from Pending to Work in Progress

Mr01sam

Posted

Changed Status from Work in Progress to Fixed

Changed Fixed In to 1.0.2

1.8m

Downloads

Total number of downloads.

8.2k

Customers

Total customers served.

124.3k

Files Sold

Total number of files sold.

2.6m

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.