Good day ;j
I used the StackSizeController to regulate the maximum amount of fuel, unfortunately, this function does not work correctly if the fuel has a stack of 1000, i.e., the first time you transfer amount fuel from config of excavator, but you can put another 970 on top and it will be 1000, like the total stack. Thanks a lot :)
Maximum stack size for diesel engine
Stacksizecontroler implementation of the function OnMaxStackable(Item item) override the storage stack size to the maximum stack.
Not much i can do on my side because Stacksizecontroler override the max stack size value.
I would recommend to use plugin ChestStackMultiplier but its not compatible with Stacksizecontroler after rev 4.0.0
plugin StackModifier seem to work well.
Note: I sent message about this issue:
https://umod.org/community/stack-size-controller/46970-plugin-compatibility-with-other-plugin
unfortunately, I don't want using other plugins for stacks..
I hope the developer will take some action :)
thanks a lot <3
Hi, I understand that the StackSizeController developer hasn't done anything, maybe you can make a max startup time parameter? For example, in StackSizeController I will make stack on Diesel Fuel 1000, in ExcavatorLock config I will set max stack size -1, and specify in new parameter 60 minutes, player will put in fuel tank 1000 Diesel Fuel, start, but Giant Excavator will start only for 60 minutes. The residual Diesel fuel, taking into account the consumption of barrels from the ExcavatorLock config, can simply be removed next to the fuel tank and only notify the team of the player who started the Giant Excavator.
Seems like a good idea to me :) Thanks.
Merged post
"Maximum stack size for diesel engine (-1 to disable function)": -1,
NEW "Maximum startup time for Giant Excavator in minutes (-1 to disable function)": 60.0,
"Running time per fuel units (time in seconds)": 120.0,60.0 * 60 = 3600 second ->
3600 / 120.0 = 30 barrels ->
(Count barrels in fuel tank, for example 1000) 1000 barrels - 30 barrels = 970 barrels ->
remove 970 barrels from fuel tank near it ->
notify owner team about it ->
success :D