Jump to content

error

Pending 1.0.3

Ateszahun
Ateszahun

Posted

Hello, the console throws these:
Loaded plugin RoadBunkers v1.0.3 by Fruster [83ms]
 RoadBunkers v1.0.3 by Fruster hook 'OnServerInitialized' took longer than 100ms [447ms]
NullReferenceException: Object reference not set to an instance of an object
[RoadBunkers] Bunker spawning is complete.
Failed to call internal hook 'OnEntitySpawned' on plugin 'RoadBunkers v1.0.3' [2949838417] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.RoadBunkers.OnEntitySpawned(BuildingPrivlidge entity) in /home/container/carbon/plugins/RoadBunkers.cs:line 490
   at object Oxide.Plugins.RoadBunkers.InternalCallHook(uint hook, object[] args) in RoadBunkers.cs/Internal:line 140
Failed to call internal hook 'OnEntitySpawned' on plugin 'RoadBunkers v1.0.3' [2949838417] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.RoadBunkers.OnEntitySpawned(BuildingPrivlidge entity) in /home/container/carbon/plugins/RoadBunkers.cs:line 490
   at object Oxide.Plugins.RoadBunkers.InternalCallHook(uint hook, object[] args) in RoadBunkers.cs/Internal:line 140

the null ref is :  RoadBunkers v1.0.3 by Fruster hook 'OnServerInitialized' took longer than 100ms [447ms]
  at ItemBasedFlowRestrictor.TickPassthroughItem () (at <4354e5538d084e8eb560e3612b7c17f0>:0)
  at InvokeHandlerBase`1[T].DoTick () (at <4e8329aa0f2f40f39509de9b38da74d9>:0)
  at InvokeHandlerBase`1[T].LateUpdate () (at <4e8329aa0f2f40f39509de9b38da74d9>:0)
NullReferenceException: Object reference not set to an instance of an object
  at ItemBasedFlowRestrictor.TickPassthroughItem () [0x00000] in <4354e5538d084e8eb560e3612b7c17f0>:0 
  at InvokeHandlerBase`1[T].DoTick () [0x00120] in <4e8329aa0f2f40f39509de9b38da74d9>:0 
  at InvokeHandlerBase`1[T].LateUpdate () [0x0001f] in <4e8329aa0f2f40f39509de9b38da74d9>:0 

 

and it keeps throwing this every x times: Failed to call internal hook 'OnEntitySpawned' on plugin 'RoadBunkers v1.0.3' [2949838417] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.RoadBunkers.OnEntitySpawned(BuildingPrivlidge entity) in /home/container/carbon/plugins/RoadBunkers.cs:line 490
   at object Oxide.Plugins.RoadBunkers.InternalCallHook(uint hook, object[] args) in RoadBunkers.cs/Internal:line 140
 

Fruster

Posted

Hi, what map are you using?

Ateszahun

Posted

I don't know what procedural map it generated itself in size 4500

Fruster

Posted

try adding a check if (entity == null) return; in OnEntitySpawned. 

it should look like this:

private void OnEntitySpawned(BuildingPrivlidge entity)

        {

            if (entity == null) return;

 

            if (entity.skinID == cardReaderSkinID) return;

 

            blackList.Add(new Vector3(entity.transform.position.x, Configuration.nearBasesRadius, entity.transform.position.z));

        }

Let me know the results please

Ateszahun

Posted (edited)

no longer spamming the console. and spawning the bunkers. 

Edited by Ateszahun
Fruster

Posted

Great, but is construction prohibited near bunkers or is it possible to build?

Fruster

Posted

Most likely for some reason the main TC is not spawning for you, please give me your map seed, I will check

Fruster

Posted

I checked and everything is fine. Most likely, another plugin is deleting the TC. Is it possible to check without other plugins?

Ateszahun

Posted

I didn't install a plugin that deletes it. Where do you put it if you put tc?

Fruster

Posted

This isn't exactly how it works. You just need to test this plugin on a server without other plugins.

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11k
Customers served
Files Sold
158.3k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • 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.