Getting reports that the upkeep isn't what it should be anymore. I think the update broke this.
Upkeep DisplaySolved
I just checked and it seems the time period is correct, but the "Cost per 24 hours" is not correct. It seems the plugin can be simplified now.
Can you try the following code and let me know if you are still facing any issues?
namespace Oxide.Plugins
{
[Info("Upkeep Display Fix", "WhiteThunder", "1.0.1")]
[Description("Fixes display bug where Tool Cupboard upkeep doesn't factor in decay scale.")]
internal class UpkeepDisplayFix : CovalencePlugin
{
private const int DisplayMinutesWhenNoDecay = 43200; // 30 days
private void OnEntitySaved(BuildingPrivlidge buildingPrivilege, BaseNetworkable.SaveInfo saveInfo)
{
var decayScale = ConVar.Decay.scale;
var tcSaveInfo = saveInfo.msg.buildingPrivilege;
if (decayScale == 0)
{
tcSaveInfo.protectedMinutes = DisplayMinutesWhenNoDecay;
}
else
{
tcSaveInfo.protectedMinutes /= decayScale;
}
}
}
}
WhiteThunder
I just checked and it seems the time period is correct, but the "Cost per 24 hours" is not correct. It seems the plugin can be simplified now.
Can you try the following code and let me know if you are still facing any issues?
namespace Oxide.Plugins { [Info("Upkeep Display Fix", "WhiteThunder", "1.0.1")] [Description("Fixes display bug where Tool Cupboard upkeep doesn't factor in decay scale.")] internal class UpkeepDisplayFix : CovalencePlugin { private const int DisplayMinutesWhenNoDecay = 43200; // 30 days private void OnEntitySaved(BuildingPrivlidge buildingPrivilege, BaseNetworkable.SaveInfo saveInfo) { var decayScale = ConVar.Decay.scale; var tcSaveInfo = saveInfo.msg.buildingPrivilege; if (decayScale == 0) { tcSaveInfo.protectedMinutes = DisplayMinutesWhenNoDecay; } else { tcSaveInfo.protectedMinutes /= decayScale; } } } }
I'm not even sure. I didn't notice a change I guess? I did a test with 1 of each and after 30 seconds that it counts down it starts decaying. I assume what's happening is a game issue, but it's saying `decaying` before the resources are gone. I've tried it with the plugin and without. (Apologies for the late response)
I checked again today and the game seems to be fixed, so this plugin can be uninstalled. Here the commits that probably did it.
https://commits.facepunch.com/r/rust_reboot/main/decay_scale_ui_fix
... but if we uninstall ure Plugin, we have always "Building is decaying" in Screen, but decay.scale is Zero, with ure Plugin we havent this !
How we can hide this Bullsh ... ?
Oh, I forgot to check that use case. Bummer that Facepunch didn't fix that too. I can reinstate the plugin.
... this will be great. can u fixed the second "BAURECHT" too ? I mean hide booth: "GEBÄUDE ZERFÄLLT" and "BAURECHT", then u are my and many Users Hero *g*
I don't think it's possible to hide those status messages.
Locked automatically