Jump to content

LootSpawnSlots

Closed 1.5.6

Dad Frog

Posted

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

Adem

Posted

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

Adem

Posted

Also make sure that you have the latest version of the plugin

Dad Frog

Posted

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>();

Adem

Posted

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,

Dad Frog

Posted

It actually seems to work.
THANKS

  • Like 1
Adem

Posted

Fixed in the latest update

Adem

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.6k

Files Sold

Total number of files sold.

2.1m

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.