Jump to content

LootSpawnSlots

Closed 1.5.6

Dad Frog

Hello

Armored Train gets error with this message:

Failed to compile: 'HumanNPC' does not contain a definition for 'LootSpawnSlots' and no accessible extension method 'LootSpawnSlots' accepting a first argument of type 'HumanNPC' could be found (are you missing a using directive or an assembly reference?) | Line: 4855, Pos: 54

Link to comment

Hi. Do you use oxide or carbon? Enter version and o.version commands and send a screenshot of the console

Link to comment

everything is up to date :

"ArmoredTrain", "Adem", "1.5.6"
Oxide.Rust Version: 2.0.6158

It seems the errors are coming from HumanNPC, I also have bugs with Convoy.
Unfortunately, the HumanNPC plugin is called the same as another "thing" in the facepunch/oxide engine.

I was advised to do this in your plugin:
replace : HumanNPC humanNPC = gameObject.GetComponent<HumanNPC>()
by : global::HumanNPC humanNPC = gameObject.GetComponent<global::HumanNPC>();

Link to comment

As far as I know, if you reload the plugin, it will compile normally. This error appears only after the server restart. Or am I wrong,

Link to comment
1.2m

Downloads

Total number of downloads.

5.8k

Customers

Total customers served.

84.7k

Files Sold

Total number of files sold.

1.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.