Explain which energy type is used in runtime
Posted: Tue Sep 22, 2026 4:47 pm
In Prototype stage we can chooce between Watt and Joules, but in Runtime there is no info anywhere which energy type is used.
For example:
https://lua-api.factorio.com/latest/cla ... rning_fuel What type of energy is left? Is it watts or joules?
https://lua-api.factorio.com/latest/cla ... ergy_usage What type of energy does it use? Is it watts or joules?
This would be very helpful in knowning how to supply fuel to entities.
As am I currently struggling to figure out how to use the values correctly, to not overtick locomotives.
https://github.com/LuziferSenpai/factor ... s.lua#L270
As my fuel is 10MJ in prototype.
My current highest locomotives uses 5MW max_power in prototype.
And with how the documentation currently is, it would result in maybe alot of magic number?
Greetz,
Luzifer
For example:
https://lua-api.factorio.com/latest/cla ... rning_fuel What type of energy is left? Is it watts or joules?
https://lua-api.factorio.com/latest/cla ... ergy_usage What type of energy does it use? Is it watts or joules?
This would be very helpful in knowning how to supply fuel to entities.
As am I currently struggling to figure out how to use the values correctly, to not overtick locomotives.
https://github.com/LuziferSenpai/factor ... s.lua#L270
As my fuel is 10MJ in prototype.
My current highest locomotives uses 5MW max_power in prototype.
And with how the documentation currently is, it would result in maybe alot of magic number?
Greetz,
Luzifer