1. 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:

    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;
            }
    and the call to it within ProcessEntity():
    float configMultiplier = 0.0f;
    if (config.PreventDecayWithinCupboardRange && prefabName != "Twigs" && UserHasCupboardPrivAtEntityPosition(entity))
     
    Last edited by a moderator: Mar 24, 2018
  2. 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
    ?
     
  3. 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"
     
  4. Whys no one replying to above issues ? i want to use this plugin but with no support im against it
     
  5. Hey Crazi what problems are you having? I am using the plugin on my server with no issues. Also this is a free plugin so we can't expect a lot of support for it.
     
  6. 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?
     
  7. 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%.
     
  8. Wulf

    Wulf Community Admin

    It was removed as it isn’t being supported nor maintained.
     
  9. Cheers Wulf