Took the time to fix this with the new building changes. When I updated this method it then fixes the "PreventDecayWithinCupboardRange" rule within the config file.
Few things to update in the CustomDecay.cs file:
the "UserHasCupboardPrivAtEntityPosition" method:
and the call to it within ProcessEntity():Code:private bool UserHasCupboardPrivAtEntityPosition(BaseCombatEntity entity) { BuildingPrivlidge priv = new BuildingPrivlidge(); priv = entity.GetBuildingPrivilege(); if(priv != null && priv.authorizedPlayers != null) { //Puts($"Entity is covered by a cupboard..."); foreach(var user in priv.authorizedPlayers) { //Puts($"AuthUser: {user.userid} EntityOwnerID: {entity.OwnerID}"); if(user.userid == entity.OwnerID) { //Puts($"True - owner is auth'd, should be no dmg!"); return true; } } } return false; }
float configMultiplier = 0.0f;
if (config.PreventDecayWithinCupboardRange && prefabName != "Twigs" && UserHasCupboardPrivAtEntityPosition(entity))
CustomDecay [Unmaintained]
Discussion in 'Plugin Support' started by Wizera, Nov 16, 2017.
-
Hello, I'm having trouble with this plugin, as if it does not work.
Here's what I want, and as I configure:
"Decay Config": {
"Building Blocks": {
"Twigs": 1.2,
"Bois": 1,
"Pierre": 0.6,
"Métal": 0.5,
"TopTier": 0.4
But I tried with and without the plugin, reload it, but nothing changes in my cupboard.
Should I enter this command in the F1 console:
customdecay.toggledebug on
? -
What's up my my rowboat situation, plugin broken?
"[CustomDecay] Entity: Rowboat before=2.222222, after=0, multiplier=0, skipped=False, damage=none
[CustomDecay] Entity: Rowboat before=2.222222, after=0, multiplier=0, skipped=False, damage=none
[CustomDecay] Entity: Rowboat before=2.222222, after=0, multiplier=0, skipped=False, damage=none
[CustomDecay] Entity: Rowboat before=2.222222, after=0, multiplier=0, skipped=False, damage=none
[CustomDecay] Entity: Rowboat before=2.222222, after=0, multiplier=0, skipped=False, damage=none
[CustomDecay] Entity: Rowboat before=2.222222, after=0, multiplier=0, skipped=False, damage=none" -
Whys no one replying to above issues ? i want to use this plugin but with no support im against it
-
-
my cupboard still seems to show the same usage as befor and it still seems to be using 5k a day despite editing the config amounts?
-
Im not sure that this mod actually effects the timers calculations. Try setting your decay for everything to zero and then wait an hour and then check if any resources were consumed from the TC. Then try increment so adjust the decay to 50% and then do the same and see how much was used in and hour and then try 100%.
-
the plugin called custom decay has gone evidently missing?
is this another data base issue or has it been moved/merged ?
https://oxidemod.org/plugins/customdecay.2690/ -
Wulf Community Admin
-