One More Tier

by Jakzie

Adds one more (faster but more expensive) tier of Electric furnace, Oil refinery, Chemical plant, Assembling machine, Long handed inserter, Lab, Pumpjack, Underground pipe, Offshore pump, Storage tank, Transport belt, Electric mining drill, Roboport and Centrifuge. You can enable/disable any of these in mod settings as well as change both speed and energy usage.

Content
4 months ago
1.0 - 2.0
8.60K
Logistics Manufacturing

g Bug Report – Sprite Mapping Error after Factorio Update

4 months ago

The latest Factorio update introduced stricter sprite validation or changed base sprite dimensions. As a result, one-more-tier now crashes due to mismatched sprite bounds on at least the mining drill and storage tank.

dplib.lua’s replace_texture assumes base sprite dimensions match one-more-tier replacements. This assumption is now invalid.

Below is the fix, revamping replace_texture resolves the issue

local known_dimensions = {
["storage%-tank%.png"] = {height = 215},
["electric%-mining%-drill%-S%-wet%.png"] = {height = 208}
}

local function replace_texture(layer)
if layer.filename then
layer.filename = layer.filename:gsub("base", "one-more-tier")
for pattern, dims in pairs(known_dimensions) do
if layer.filename:find(pattern) then
for k, v in pairs(dims) do
layer[k] = v
end
end
end
end
end

4 months ago

I have the same problem... I can't play anymore because reverting the mod is going to cost me a LOT of time and headache and I can't use the mod either. I'm stuck Please fix this.

4 months ago

Storage tank and mining drill sprites were changed to include the pipe (making the sprite a bit larger).
So I changed my sprites to do the same, it seems to work now.
Thanks for letting me know!

3 months ago

Thank you for the very quick fix. It works now. You saved me from re-doing my entire save. Btw I love the mod its just what I wanted. Balanced yet strong.

3 months ago

Glad you like it!

New response