mspielberg / factorio-railloader

Rapidly load and unload trains of bulk materials.
GNU Lesser General Public License v3.0
9 stars 19 forks source link

[5.1] Unloader texture is shifted. #12

Closed numbernegative closed 5 years ago

numbernegative commented 5 years ago

image

The rail texture for the unloader is shifted left 1 block when placed vertically and 1 one block when placed horizontally. It still functions as normal but obviously appears the trains are not on the rails when at the station.

mspielberg commented 5 years ago

Can you provide a saved game? Are you running any other mods that affect rails?

numbernegative commented 5 years ago

Game -1.zip Here is my save file, there's an unholy amount of mods shoveled in, but nothing that affects rails like that except for maybe the bridges mod and naked rails but those both simpily add additional rails rather than editing existing ones.

mspielberg commented 5 years ago

The problem here is WaiTex, which replaces low-resolution rail pictures with high-resolution rail pictures, but does something strange to relative offsets along the way.

To be specific, vanilla low-res straight rail pictures are 128x64, with 32 pixels of blank space on the sides to give room for the wreckage to spread out more. The replacement images WaiTex uses are 128x128 (doubled 64x64), omitting the blank space on the sides, and since BRL lays out the sprites for the rails in relation to the concrete pad and the grate, this fouls everything up.

I'll have a workaround in the next version of BRL, but for now you can disable WaiTex to fix the appearance issue.