Jump to content

Error with CustomLoot and Carbon

Pending 1.2.1

Hello , I have this error in the console with CustomLoot and Carbon:

[CustomLoot] Timer 0.3s has failed: (Object reference not set to an instance of an object) at void Oxide.Plugins.CustomLoot.ProcessContainer(LootContainer container, bool start) in /home/rustserverdev/serverfiles/carbon/plugins/CustomLoot.cs:line 118 at void Oxide.Plugins.CustomLoot.OnLootSpawn(LootContainer container)+() => { } in /home/rustserverdev/serverfiles/carbon/plugins/CustomLoot.cs:line 192 at Timer Oxide.Plugins.Timers.In(float time, Action action)+() => { }

 

How to correct this problem?

Edited by Billionaire

Share this comment


Link to comment

Hi,
Looks like I could use a few additional null checks in that method.
I'll be releasing an update shortly for other reasons so I'll add those in.

Thanks for letting me know. 👍

Share this comment


Link to comment

@Steenamaroo

The latest update is functional but there is still this problem:

 

Warning! 'CustomLoot' uses UnityEngine.GameObject.FindObjectsOfType. That may cause significant performance drops, and/or server stalls. Report to the developer or use at your own discretion!

 

Share this comment


Link to comment
[CustomLoot] Timer 1s has failed: (Object reference not set to an instance of an object)

at void Oxide.Plugins.CustomLoot.PopulateContainer(LootContainer container)+() => { } [0] in /home/rustserver/serverfiles/carbon/plugins/CustomLoot.cs:line 173

at Timer Oxide.Plugins.Timers.In(float time, Action action)+() => { }

(09:12:10) | [CustomLoot] Timer 1s has failed: (Object reference not set to an instance of an object)

at void Oxide.Plugins.CustomLoot.PopulateContainer(LootContainer container)+() => { } [0] in /home/rustserver/serverfiles/carbon/plugins/CustomLoot.cs:line 173

at Timer Oxide.Plugins.Timers.In(float time, Action action)+() => { }

(09:12:10) | [CustomLoot] Timer 1s has failed: (Object reference not set to an instance of an object)

at void Oxide.Plugins.CustomLoot.PopulateContainer(LootContainer container)+() => { } [0] in /home/rustserver/serverfiles/carbon/plugins/CustomLoot.cs:line 173

at Timer Oxide.Plugins.Timers.In(float time, Action action)+() => { }

(09:12:10) | [CustomLoot] Timer 1s has failed: (Object reference not set to an instance of an object)

at void Oxide.Plugins.CustomLoot.PopulateContainer(LootContainer container)+() => { } [0] in /home/rustserver/serverfiles/carbon/plugins/CustomLoot.cs:line 173

at Timer Oxide.Plugins.Timers.In(float time, Action action)+() => { }


Hi, I still have this problem since the last update:

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.5k

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.