What
The energy of a modded roboport is never 100% full when connected to multiple networks, where the closest network is unpowered. It's always off by the energy drain per tick.We ran into this with AAI Signal Tranmission where the transceivers are roboports, and we periodically check if the buffer is full and only allow circuit connections if it is. This worked fine in 1.1 but the behaviour seem to have changed in 2.0. If you are part of the Earendel Discord you can find it here.
Reproduction
1. Change a regular roboport like this:Code: Select all
local robo = data.raw["roboport"]["roboport"]
robo.energy_source =
{
type = "electric",
usage_priority = "secondary-input",
input_flow_limit = "20MW",
buffer_capacity = "5.5MJ"
}
robo.recharge_minimum = "5MJ"
robo.energy_usage = "10MW"
robo.charging_energy = "5MW"
4. And now if you pickup the medium pole and place it back down. Now the energy will read 5500000 as expected.