Unsupported decaying entity detectedFixed
Thanks for the info!  This worked Perfectly!
this just keeps spamming in my console
Since the latest patch, these errors are appearing constantly on my Rust server. Is there a fix for this?

Thanks in advance

[NoDecay] Unsupported decaying entity detected: 1module_cockpit --- please notify author
[NoDecay] Unsupported decaying entity detected: 1module_engine --- please notify author
[NoDecay] Unsupported decaying entity detected: 1module_engine --- please notify author
[NoDecay] Unsupported decaying entity detected: 1module_cockpit --- please notify author
[NoDecay] Unsupported decaying entity detected: 1module_cockpit_with_engine --- please notify author
[NoDecay] Unsupported decaying entity detected: 1module_storage --- please notify author
@Hoskins Your fix worked for the most part. Thanks! Still getting this line though:
[NoDecay] Unsupported decaying entity detected: 4module_car_spawned.entity --- please notify author

The 1,2, & 3 module notes are no longer appearing however.
i don't understand why exactly, but i'm getting this

Error while compiling: NoDecay.cs(384,82): error CS0103: The name `before' does not exist in the current context

Replace the last part of Hoskins post with this to disable decay on all vehicle parts:
else if (entity_name.Contains("1module") || entity_name.Contains("2module") || entity_name.Contains("3module") || entity_name.Contains("4module"))
{
    hitInfo.damageTypes.Scale(Rust.DamageType.Decay, c_vehicleMultiplier);
    OutputRcon($"Decay ({entity_name}) before: {before} after: {hitInfo.damageTypes.Get(Rust.DamageType.Decay)}", true);
}​

Many of you are just now learning that there are many plugins you will need to fix yourself. Be thankful a fix was presented, and learn to insert code where noted. Get Notepad++ and use a json checker such as https://jsonlint.com to verify. You don't have to know how to code to insert code. Just takes the time to learn the proper way.

Thank you @Hoskins and @Substrata! It works perfectly, I appreciate your work!

5e6f892d62b9e.png Substrata
Replace the last part of Hoskins post with this to disable decay on all vehicle parts:
else if (entity_name.Contains("1module") || entity_name.Contains("2module") || entity_name.Contains("3module") || entity_name.Contains("4module"))
{
    hitInfo.damageTypes.Scale(Rust.DamageType.Decay, c_vehicleMultiplier);
    OutputRcon($"Decay ({entity_name}) before: {before} after: {hitInfo.damageTypes.Get(Rust.DamageType.Decay)}", true);
}​

I tried this and got this error

Error while compiling: NoDecay.cs(389,41): error CS1501: No overload for method `Scale' takes `3' arguments

Hello, I have configured the cars, but they decay when they are next to a cupboard. Any thoughts?
Hi @ZoinDev

Multiple errors on new components.

(10:38:00) | [NoDecay] Unsupported decaying entity detected: 1module_engine --- please notify author
(10:38:02) | [NoDecay] Unsupported decaying entity detected: 1module_engine --- please notify author
(10:38:02) | [NoDecay] Unsupported decaying entity detected: 1module_cockpit --- please notify author
(10:38:02) | [NoDecay] Unsupported decaying entity detected: 2module_fuel_tank --- please notify author
(10:38:04) | [NoDecay] Unsupported decaying entity detected: 1module_cockpit --- please notify author
(10:38:04) | [NoDecay] Unsupported decaying entity detected: 1module_engine --- please notify author
(10:38:11) | [NoDecay] Unsupported decaying entity detected: 1module_cockpit_with_engine --- please notify author
(10:38:11) | [NoDecay] Unsupported decaying entity detected: 2module_flatbed --- please notify author
(10:38:14) | [NoDecay] Unsupported decaying entity detected: 1module_cockpit_with_engine --- please notify author
(10:38:14) | [NoDecay] Unsupported decaying entity detected: 1module_rear_seats --- please notify author
(10:38:14) | [NoDecay] Unsupported decaying entity detected: 1module_flatbed --- please notify author
(10:38:17) | [NoDecay] Unsupported decaying entity detected: 1module_engine --- please notify author
(10:38:17) | [NoDecay] Unsupported decaying entity detected: 1module_engine --- please notify author
(10:38:17) | [NoDecay] Unsupported decaying entity detected: 1module_cockpit --- please notify author
(10:38:30) | [NoDecay] Unsupported decaying entity detected: 1module_cockpit_with_engine --- please notify author
(10:38:30) | [NoDecay] Unsupported decaying entity detected: 1module_rear_seats --- please notify author
(10:38:30) | [NoDecay] Unsupported decaying entity detected: 2module_flatbed --- please notify author
(10:38:35) | [NoDecay] Unsupported decaying entity detected: 1module_cockpit_with_engine --- please notify author
(10:38:35) | [NoDecay] Unsupported decaying entity detected: 2module_flatbed --- please notify author​

Thx

Thank you @Hoskins and @Substrata. Worked for me.
@Substrata That worked! Thanks!
5e6f892d62b9e.png Substrata
Replace the last part of Hoskins post with this to disable decay on all vehicle parts:
else if (entity_name.Contains("1module") || entity_name.Contains("2module") || entity_name.Contains("3module") || entity_name.Contains("4module"))
{
    hitInfo.damageTypes.Scale(Rust.DamageType.Decay, c_vehicleMultiplier);
    OutputRcon($"Decay ({entity_name}) before: {before} after: {hitInfo.damageTypes.Get(Rust.DamageType.Decay)}", true);
}​

Thanks that worked great!

Thank you @Hoskins & @Substrata  ;)
Locked automatically