More Quality Scaling

by sh4dow

Extends quality scaling to locomotives, wagons, storage tanks, rocket silos, roboports and more.

Content
3 months ago
2.0
5.25K
Transportation Logistics Trains Fluids Logistic network Storage

g Acceleration / Power Units

2 months ago
(updated 2 months ago)

Hello,

I was browsing through the GitHub repository and noticed you're using Joules when computing the max_power upgrade for locomotives (https://github.com/shadoxxhd/more-quality-scaling/blob/master/data-final-fixes.lua#L235).

Why not use kW? Those appear to be the default units: https://github.com/wube/factorio-data/blob/master/base/prototypes/entity/trains.lua#L505

2 months ago

Simply because that's the unit that is used by util.parse_energy. I think just multiplying it by 60 would get the correct value in kW (IIRC Joules is interpreted as "Joules per frame"), but just using Joules works well enough.

2 months ago

Interesting. Thanks!

New response