FlatUI

by Psyhe

This mod replaces all graphics of the user interface. The mod also changes the health bar, indicators, underground lines and more. This can be configured in the settings. Now transparent!

Tweaks
5 months ago
2.0
512

g Crash on newest experimental

Failed to load mods: The given sprite rectangle (left_top=578x861, right_bottom=594x877) is outside the actual sprite size (left_top=0x0, right_bottom=593x1222). See the log file for more information.: __FlatUI__/graphics/gui-new.png
Maybe it's some undocumented change in 2.0.68?

19 hours ago
(updated 19 hours ago)

same thing

12 hours ago
(updated 12 hours ago)

Temporary Solution with help from chat gpt: (If you are not using transparent ui then you need to edit FlatUI__/graphics/gui-new.png instead, you might also not want the extra pixels to be transparent, but thats something you can ask the chat bot about)
Step-by-step in GIMP

Open the file

Start GIMP.

Go to File → Open and select gui-new_tr.png from your FlatUI/graphics/ folder.

Check the current size

In GIMP’s title bar or in Image → Canvas Size…, you should see the dimensions: 593 × 1222.

Increase the canvas width

Go to Image → Canvas Size…

In the Width box, change 593 to 595.

Leave Height at 1222.

Click the Center dropdown next to “Offset” and set it so the image stays anchored to the left. This makes the extra pixel appear on the right side.

Add the transparent pixel

In the Canvas Size dialog, make sure Resize layers: All layers is selected.

Press Resize.

Now the image is 595×1222, with a 2-pixel wide empty strip on the right.

Because your image already has transparency, that new column will automatically be transparent.

Export the file

Go to File → Export As…

Choose gui-new_tr.png and overwrite the original in:

FlatUI/graphics/gui-new_tr.png

In the export dialog, keep defaults and click Export.

Test in Factorio

Restart Factorio.

The error outside the actual sprite size (… right_bottom=594x877) should be gone.

New response