Jump to content

TwigsDecay throwing console errors

Work in Progress 0.1.7

Aelanna
Aelanna

Posted

I've been seeing this error popping up with the latest update
 

Image1.png

IIIaKa

Posted

Changed Status from Pending to Work in Progress

IIIaKa

Posted

@Aelanna @Aeryn Sun
Hello. Does this happen every time or just occasionally? Because during this whole period, I haven’t encountered such a message even once.

IIIaKa

Posted

I can't check this myself, I haven't been able to reproduce this error. So please try replacing the OnEntitySpawned hook(lines 193–197) with this code:
 

void OnEntitySpawned(BuildingBlock block)
{
	if (block.OwnerID.IsSteamId() && IsRightBlock(block))
		NextTick(() => { if (block.IsValid() && !block.IsDestroyed) TryInitBlockDecay(block); });
}

Let me know what the result is.

ShiiZo

Posted (edited)

Exception while calling NextTick callback (NullReferenceException: )
at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component)
at Oxide.Plugins.TwigsDecay.TryInitBlockDecay (BuildingBlock block) [0x00000] in <01eea65160f84526833bcedb5f9ab6fd>:0
at Oxide.Plugins.TwigsDecay+<>c__DisplayClass17_0.<OnEntitySpawned>b__0 () [0x00000] in <01eea65160f84526833bcedb5f9ab6fd>:0
at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <112d89ea5d3348c8b949af0ab1a866d2>:0


I have the same error. I will test what you posted above.
And its not happening all the time, its random for what i can see.

Edited by ShiiZo
IIIaKa

Posted (edited)

@ShiiZo
Hello. Can you please try this:

 

On 11/7/2025 at 2:12 AM, IIIaKa said:
void OnEntitySpawned(BuildingBlock block)
{
	if (block.OwnerID.IsSteamId() && IsRightBlock(block))
		NextTick(() => { if (block.IsValid() && !block.IsDestroyed) TryInitBlockDecay(block); });
}

 

Edited by IIIaKa
ShiiZo

Posted

Yeah i added this 2 hours ago and watch the console now.

  • Like 1
2m

Downloads

Total number of downloads.

9.6k

Customers

Total customers served.

139.9k

Files Sold

Total number of files sold.

3m

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.