Page 1 of 1

[posila] [1.0.0] Lamp lights flicker when lamps collision box is not within a single tile

Posted: Sat Aug 22, 2020 8:24 am
by desto
Apparently this has been fixed multiple times in the past.
- viewtopic.php?p=443381
- viewtopic.php?t=71729

I attached a bare minimum mod to reproduce the issue. It simply makes the default lamp take up 2x2 tiles instead of just one.
Also a save game is attached. It's a new, empty map with a tiny setup for the lamp to work.

Here is also a video to better visualize the problem -> https://youtu.be/NNiZDLpT30w

I checked on Windows 10 with a new Factorio installation, and on Linux.

Repro:
- Put the mod into the mods folder
- Download the saved game
- Load it and walk to the left, or up
- Place the lamp at an even (or uneven?) coordinate

Result:
Just when the lamp gets out of view, the light becoms brighter.
The light source seems to duplicate or something.

Expect:
The light does not become brighter. This is the case if I walk right or down instead.



Note that this issue only occurs if the lamp is placed any other tile. So if you move the lamp by 1 tile in either direction, this will not happen.
However, if it is moved by 2 tiles or multiples thereof, it will occur as described.

I stumbled upon this when I tried out the "Larger Lamps" mod by Deadlock989.
https://mods.factorio.com/mod/DeadlockLargerLamp

Re: [posila] [1.0.0] Lamp lights flicker when lamps collision box is not within a single tile

Posted: Wed Sep 16, 2020 3:23 pm
by posila
Thanks for the report and minimal reproduction steps.
Fixed for 1.1.0