When you modify the quarry.tickrate, say to 1, it will endlessly spawn the resource from that quarry.
Increasing tickrate causes quarry to never stop
My quarrys are producing without any fuel in them! I changed the tick rate with quarry.tickrate command. Any solutions?
------
Its just the HQM Quarry that has the issue, the other 2 (sulfur and metal) are fine. So weird! When i try and start the engine I crash out with the error "Disconnected: RPC Error in StartEngine" Any help greatly appreciated.
Merged post
So how would i fix that?
------
Its just the HQM Quarry that has the issue, the other 2 (sulfur and metal) are fine. So weird! When i try and start the engine I crash out with the error "Disconnected: RPC Error in StartEngine" Any help greatly appreciated.
Merged post
So how would i fix that?
This is still an issue. Reverting the tickrate and reloading the plugin doesn't fix things. Waiting on the server restart to see if anything changes. Removing the quarry and placing it again will run without any problems after reverting the tickrate.
Merged post
So restarting the server took care of things. Out of curiosity I set the tickrate to 1 and restarted the server to see if it would run properly. The resut was the quarry running at default speed with the /gather readout saying "Time between Mining Quarry gathers: 1 second(s). So somethings either not working right, conflicting, or I'm messing something up.
Merged post
So restarting the server took care of things. Out of curiosity I set the tickrate to 1 and restarted the server to see if it would run properly. The resut was the quarry running at default speed with the /gather readout saying "Time between Mining Quarry gathers: 1 second(s). So somethings either not working right, conflicting, or I'm messing something up.
Quarry.tickrate not in job. Change rate to 1,2,3,4 sec. and all static quarry work without fuel and give you infinite resources!
Тeed to remove the plugin and restart the server for default setting. Big BUG! Fix!
Тeed to remove the plugin and restart the server for default setting. Big BUG! Fix!
@Ryan So out of curiosity, is there a proper way to set this to work? Meaning are there other things we need to change, like something in the server.cfg? Or is it just changing the number on "MiningQuarryResourceTickRate": 1.0,
It would be great to get this up and running on my PVE server.
It would be great to get this up and running on my PVE server.
If you are ok with editing .cs files you can try the following changes, which I use for a long time without issues.
private const float DefaultMiningQuarryResourceTickRate = 10f;
[ConsoleCommand("quarry.tickrate")]
private void MiningQuarryTickRate(ConsoleSystem.Arg arg)
{
if (arg.Player() != null && !arg.Player().IsAdmin)
{
arg.ReplyWith(NotAllowed);
return;
}
if (!arg.HasArgs())
{
arg.ReplyWith(InvalidArgumentsSpeed);
return;
}
var modifier = arg.GetFloat(0, -1);
if (modifier < 1)
{
arg.ReplyWith(InvalidSpeed);
return;
}
MiningQuarryResourceTickRate = modifier;
SetConfigValue("Options", "MiningQuarryResourceTickRate", MiningQuarryResourceTickRate);
arg.ReplyWith(string.Format(ModifySpeed, modifier));
var quarries = UnityEngine.Object.FindObjectsOfType<MiningQuarry>();
foreach (var quarry in quarries.Where(quarry => quarry.IsOn()))
{
quarry.CancelInvoke(quarry.ProcessResources);
quarry.InvokeRepeating(quarry.ProcessResources, MiningQuarryResourceTickRate, MiningQuarryResourceTickRate);
}
}
private void OnQuarryEnabled(MiningQuarry quarry)
{
if (MiningQuarryResourceTickRate == DefaultMiningQuarryResourceTickRate) return;
quarry.CancelInvoke(quarry.ProcessResources);
quarry.InvokeRepeating(quarry.ProcessResources, MiningQuarryResourceTickRate, MiningQuarryResourceTickRate);
} Thank you. I'll give this a go on my test server later today.