Powered Belts Extended


Belts, splitters and loaders now need power and can be can be made more efficient through research.

Tweaks
6 hours ago
1.1 - 2.1
344
Logistics Power

g During poweroutages, splitters turn off quicker compared to belts

8 months ago

During poweroutages, splitters turn off quicker compared to belts

Keeping my power supply off :)

8 months ago
(updated 8 months ago)

This is most likely due to the current configuration of the system: an assumption that entitites turn off below certain % of their energy buffer left, and that buffer sizes and input energy flow limit scale with energy usage (+ constant). Not 100% sure how internals of electric energy interfaces / power system work that processes all of this - whether there are priorities or equal distribution based on input_flow_limit.

Relevant code with ei being power usage:

energy_source = {
type = "electric",
usage_priority = "secondary-input",
input_flow_limit = (ei + 1) .. "kW",
buffer_capacity = (1 * ei) .. "kJ"
},
energy_production = "0W",
energy_usage = ei .. "kW",

I am not sure how exactly to mitigate that but I have some intuition that perhaps modifying input_flow_limit and/or buffer_capacity to be constant / equal between entities could help.

One can also treat it as an additional challenge in their setup - but I will try to lower the pain points by adding some extra startup-settings configuration to the next release and testing it myself whether I can configure it to have splitters turn off at similar times that belts do. I'll then report my findings here to let you configure these new settings to hopefully mitigate this.

7 hours ago

Sorry for the substantial delay; version 1.3.2 adds energy behavior presets: "synchronized" for closer on/off behavior for each entity as well as across entity types (theoretically equal in idealized power-up/blackout conditions and instant processing of all entities - it may still vary due to the nature of brownout / entity processing loop), or "responsive" for faster shutdown/recovery with hysteresis that also includes on/off synchronization.

The behavior is now also explained in sections: Power Buffer Mechanics via formulas and more plainly in Preset Modes.

New response