KS Power

by Klonan

Adds a range of different power producing options

Content
10 months ago
0.12 - 2.0
118K
Power

b Problem with the Diesel generator

9 years ago

There seems to be an issue with the diesel generator.

Detail: When the problem happens I can see on the information panel that the "temperature" and "available performance" start to gradually drop, and goes to almost zero. Fuel shows 10.0 and generator is connected to power grid.

How to repeat: Sometimes this issue happens when loading game, but it seems to be reproducible by removing the power pole that connects the generator the grid, and rebuilding it. Also disconnecting fuel and reconnecting may trigger the issue. This can require a few attempts. I'm not sure if it's important to mention, but I usually have more than on generator connecting to same power pole/fuel supply. I have also used the new power-switch to try creating a sort of backup power generator system, but this bug is causing this to sometimes not work. So far, the only 100% reliable way to stop the issue is to deconstruct the diesel generator and place it back. Removing power pole and rebuild it can also fix it, but this does not work 100% of the time.

My factorio version 0.13.15. (Latest beta via steam). The issue has been present in at least a few of the latest versions.

9 years ago

I've also seen this bug, exactly as described.

9 years ago

This is part of an optimization, if the load isn't very high the generator script will sleep the diesel generator

Could you provide a savegame for me to look at?

9 years ago

I have a savegame (~32MB), in which the issue is present and it seems to survive when loaded. The load on the generator is about 80% of max when connected to power grid - It really should not "sleep" or anything like that...

The save uses a bunch of other mods, though. If you want I could try to create a new savegame and see if I can repro the problem with just KS power enabled? If having other mods is not a problem, then how would I get the savegame to you so it would be a minimum hassle? I don't see a way to attach files here...

9 years ago

i have a problem on the latest expiremental build where i hooked the diesel up but theres no power, im not sure what im missing

8 years ago
(updated 8 years ago)

I've had the same problem, since i LOVE this mod i decided to check it myself and i've seen that the problem come when the generators must be awaken from the "archived" table to the active one.
In short only the last one is awakened, but if there's in the table another generator somewhere which doesn't need to be awakened then it block the others in queue.
Waiting for a fix, in the mean time i've just modified your function "recheck_archived_generators" adding a cycle to check every archived geenrator to be sure no one will be left asleep. It work nicely, even if is a bit brute.

8 years ago

Ok, i have redone the way they work, so it should no longer be an issue

New response