More Quality Scaling

by sh4dow

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

Content
an hour ago
2.0
5.98K
Transportation Logistics Trains Mining Fluids Logistic network Power Storage

g Acceleration / Power Units

4 months ago
(updated 4 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

4 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.

3 months ago

Interesting. Thanks!

New response