Re: KS Power
Posted: Sun Sep 23, 2018 5:04 am
an issue on the mod portal from 3 months ago with no reply noted that someone was having an issue with the diesel generator not actually using any liquid (in these cases diesel specifically) when generating power. I'm encountering the same issue, unsure if its a mod combination issue or a general issue. But would love to bring this to attention
I'm not a lua programmer, but after some testing of my own changing
fluid_usage_per_tick = 1/60,
to
fluid_usage_per_tick = 60,
resulted in the usage of (1/1)/s fluid consumption at maximum capacity. Which I assume is as intended.
Interestingly if changed to fluid_usage_per_tick = 1, is applied it uses at max (1/60)/s fluids. It's as if the setting fluid_usage_per_tick isn't actually per tick at all but rather x/60 per second, which is why the original setting didn't seem to use any fluids, because it was 1/60/60/s which probably got rounded down to 0.
Again this might be a multiple mods conflict, I did not check the results/issue with just kspower installed
Edit:
The above solution changed to 1/3600 after updating it serverside. At a loss for a cause we decided to remove the scale fluid usage option, setting it to false. This turned it into its expected behavior, where a setting of 1 fluid per tick resulted in 60 per second and 1/60 per tick in 1 per second.
I am assuming the fluid scaling function is broken.
I'm not a lua programmer, but after some testing of my own changing
fluid_usage_per_tick = 1/60,
to
fluid_usage_per_tick = 60,
resulted in the usage of (1/1)/s fluid consumption at maximum capacity. Which I assume is as intended.
Interestingly if changed to fluid_usage_per_tick = 1, is applied it uses at max (1/60)/s fluids. It's as if the setting fluid_usage_per_tick isn't actually per tick at all but rather x/60 per second, which is why the original setting didn't seem to use any fluids, because it was 1/60/60/s which probably got rounded down to 0.
Again this might be a multiple mods conflict, I did not check the results/issue with just kspower installed
Edit:
The above solution changed to 1/3600 after updating it serverside. At a loss for a cause we decided to remove the scale fluid usage option, setting it to false. This turned it into its expected behavior, where a setting of 1 fluid per tick resulted in 60 per second and 1/60 per tick in 1 per second.
I am assuming the fluid scaling function is broken.