Can’t get decay workingSolved
I have set the decay rate for twigs/wood/stone from 1.0 up to 50 and still get no decay , i have used a stop watch for each change (saved and reloaded) but i must be doing something wrong, here is my config
{
  "Debug": {
    "outputMundane": false,
    "outputToRcon": false
  },
  "Global": {
    "cupboardCheckEntity": false,
    "cupboardRange": 30.0,
    "requireCupboard": true,
    "usePermission": false
  },
  "Mutipliers": {
    "armoredMultiplier": 0.0,
    "baloonMultiplier": 0.0,
    "barricadesMultiplier": 0.0,
    "bbqMultiplier": 0.0,
    "boatMultiplier": 0.0,
    "boxMultiplier": 0.0,
    "campfireMultiplier": 0.0,
    "deployablesMultiplier": 0.0,
    "furnaceMultiplier": 0.0,
    "highStoneWallMultiplier": 0.0,
    "highWoodWallMultiplier": 0.0,
    "horseMultiplier": 0.0,
    "minicopterMultiplier": 0.0,
    "samMultiplier": 0.0,
    "sedanMultiplier": 0.0,
    "sheetMultiplier": 0.0,
    "stoneMultiplier": 15.0,
    "trapMultiplier": 0.0,
    "twigMultiplier": 15.0,
    "watchtowerMultiplier": 0.0,
    "woodMultiplier": 15.0
  }
}​
If they stock the cupboard, the plugin will be bypassed.  There is no way at this point to avoid that.
5ba5bf1da6b60.jpg rfc1920
If they stock the cupboard, the plugin will be bypassed.  There is no way at this point to avoid that.

I have "0" decay set for metal barricades yet i find them decaying whether in range of a TC (unstocked) or no, i have stone set to decay with a multiplier of 300 and it takes hours to decay, twigs (150)  and wood (200) also take an long time to decay with or without a TC. I have metal and hq set to "0" yet find pathways created with them over rivers/streams decaying ? I must be doing something wrong ?

Same here. Put twigs foundation on my base, no decay. Put one somewhere in the field, no decay.

Merged post

Is this because I have decay.upkeep false on my server?
I want to keep this cause players always put resources in the cupboard and wonder if they lose it.
If there is no upkeep required, you probably don't need this plugin.  Also, it's likely that twig will not decay.
Well. I need this plugin if I don't want empty bases populating my server. Those that don't have a cupboard should decay.
But on the other hand I don't want people lose their stuff when they put resources in the tc. And they do. No matter what's in the server info cause people just don't read.
And as far as I know this plugin doesn't prevent this. That's why I would have to go with decay.upkeep false.
Hello,

{
  "Debug": {
    "outputMundane": false,
    "outputToRcon": true
  },
  "Global": {
    "cupboardCheckEntity": true,
    "cupboardRange": 30.0,
    "requireCupboard": true,
    "usePermission": true
  },
  "Mutipliers": {
    "armoredMultiplier": 0.0,
    "baloonMultiplier": 0.0,
    "barricadesMultiplier": 0.0,
    "bbqMultiplier": 0.0,
    "boatMultiplier": 1.0,
    "boxMultiplier": 0.0,
    "campfireMultiplier": 0.0,
    "deployablesMultiplier": 1.0,
    "furnaceMultiplier": 0.0,
    "highStoneWallMultiplier": 1.0,
    "highWoodWallMultiplier": 1.0,
    "horseMultiplier": 1.0,
    "minicopterMultiplier": 1.0,
    "samMultiplier": 0.0,
    "scrapcopterMultiplier": 1.0,
    "sedanMultiplier": 1.0,
    "sheetMultiplier": 0.0,
    "stoneMultiplier": 0.0,
    "trapMultiplier": 1.0,
    "twigMultiplier": 1.0,
    "watchtowerMultiplier": 1.0,
    "woodMultiplier": 1.0
  }
}​

A player (no admin, no owner, no moderator, it's a single player) don't set a tc but : [NoDecay] minicopter.entity owner 76561197979861396 has NoDecay permission!

So i'm wrong with that:
"cupboardCheckEntity": true, => checking if tc is placed
"cupboardRange": 30.0, => amount of radius from tc (here is 30)
"requireCupboard": true, => require a tc
"usePermission": true => need to set permission to player/group

if i don't understand your plugin, can you explaim me for Nodecay only with a tc please

Cheers,

Tanki, it seems that you have given that player or a group they are in the permission nodecay.use.
5ba5bf1da6b60.jpg rfc1920
Tanki, it seems that you have given that player or a group they are in the permission nodecay.use.

so i need to revoke permission for this group for working correctly?

Hello,

> o.revoke group admin nodecay.use
Group 'admin' revoked permission 'nodecay.use'
> o.revoke group default nodecay.use
Group 'default' does not have permission 'nodecay.use'
> o.revoke user Tanki nodecay.use
Player 'Tanki' does not have permission 'nodecay.use'​

json configuration:

{
  "Debug": {
    "outputMundane": false,
    "outputToRcon": true
  },
  "Global": {
    "cupboardCheckEntity": true,
    "cupboardRange": 30.0,
    "requireCupboard": true,
    "usePermission": false
  },
  "Mutipliers": {
    "armoredMultiplier": 1.0,
    "baloonMultiplier": 1.0,
    "barricadesMultiplier": 1.0,
    "bbqMultiplier": 1.0,
    "boatMultiplier": 1.0,
    "boxMultiplier": 1.0,
    "campfireMultiplier": 1.0,
    "deployablesMultiplier": 1.0,
    "furnaceMultiplier": 0.0,
    "highStoneWallMultiplier": 1.0,
    "highWoodWallMultiplier": 1.0,
    "horseMultiplier": 1.0,
    "minicopterMultiplier": 1.0,
    "samMultiplier": 1.0,
    "scrapcopterMultiplier": 1.0,
    "sedanMultiplier": 1.0,
    "sheetMultiplier": 1.0,
    "stoneMultiplier": 1.0,
    "trapMultiplier": 1.0,
    "twigMultiplier": 1.0,
    "watchtowerMultiplier": 1.0,
    "woodMultiplier": 1.0
  }
}

Put box wooden and campfire without a tc and no decay... Boat is decaying normaly... (i din't checked all vehicles etc...)

I don't have modified decay.upkeep (value True) or other variables...

same problem for me.
all permission revoke, still no decay.
even if i uninstall the plugin, still no decay :) 
The plugin should not having any lingering effects if unloaded.  It kicks in only when called via the OnEntityTakeDamage() hook.  This only gets called for decay on entities and also blocks that are not protected by a stocked cupboard.  Of course, it is also called for plugins that want to control combat damage.  Many plugins use this hook.  A few rare plugins may endeavor to replace the entire decay process via OnTick() (TwigsDecay for example).

If you are sure it is this plugin, move it out of the way and restart your server to be sure.  Or, what would be a better test is to remove all plugins and add them back one by one to find the culprit.

If you want, you can send me a message listing the other plugins you're using along with your server configs (server.cfg, serverauto.cfg, etc.)

Note: OnEntityTakeDamage is called from the game and then by Oxide.  If a plugin has the correctly formatted version of that function, it is run.  The plugin itself does not typically sit there waiting for decay or impacting decay on its own unless the game asks for it.  So, for every decay tick and every time someone hits an entity or shoots at a player, etc., the game calls out via Oxide, "Who has OnEntityTakeDamage()?"  If the function exists in a plugin it is run.  I am not certain what order if multiple plugins contain the hook.  It could be alphabetical, file date, or load order since server startup.  Surely someone knows.
i 'm gonna restart from scratch, i probably made a mistake somewhere :)
thanks for your infoirmations

Merged post

Ok, 
so i started from scratch.

conf. file:
{
  "Debug": {
    "outputMundane": false,
    "outputToRcon": false
  },
  "Global": {
    "cupboardCheckEntity": false,
    "cupboardRange": 50,
    "requireCupboard": true,
    "usePermission": true
  },
  "Mutipliers": {
    "armoredMultiplier": 0,
    "baloonMultiplier": 0,
    "barricadesMultiplier": 0,
    "bbqMultiplier": 0,
    "boatMultiplier": 0,
    "boxMultiplier": 0,
    "campfireMultiplier": 0,
    "deployablesMultiplier": 0,
    "furnaceMultiplier": 0,
    "highStoneWallMultiplier": 0,
    "highWoodWallMultiplier": 0,
    "horseMultiplier": 0,
    "minicopterMultiplier": 0,
    "samMultiplier": 0,
    "scrapcopterMultiplier": 0,
    "sedanMultiplier": 0,
    "sheetMultiplier": 0,
    "stoneMultiplier": 0,
    "trapMultiplier": 0,
    "twigMultiplier": 0,
    "watchtowerMultiplier": 0,
    "woodMultiplier": 0
  }
}​

and no decay is ON directly, without any permission gaven to anyone.

to be sure, i write in rustadmin console:

decay.upkeep true
decay.upkeep_period_minutes 1440​

and to be sure sure,  it write too:

oxide.revoke user zardozz nodecay.use​

answer: Player 'zardozz' does not have permission 'nodecay.use'

so everything seems correct, no ?

unfortunatly, nodecay is still on.

Merged post

edit: problem fixed. it was a conflict with a private plugin.
everything is fine now :)
Locked automatically