[2.1.11] Drag building placeable-off-grid entities doesn't build them close together

Post your bugs and problems so we can fix them.
User avatar
_CodeGreen
Fast Inserter
Fast Inserter
Posts: 107
Joined: Sat Mar 05, 2022 11:30 am
Contact:

[2.1.11] Drag building placeable-off-grid entities doesn't build them close together

Post by _CodeGreen »

Building off-grid entities changed at some point between 1.1 and now. The current behavior only attempts to place one when your cursor moves across a tile boundary, and if it can't place one, you "lose" out on the tile and have to move your cursor to a different tile for it to trigger again. Previously, it would attempt to place a new entity every tick your cursor moved. This video shows the issue with new entities not getting built while moving the cursor, only on tile boundaries:

This makes detecting players click dragging extremely inconsistent, as the way that's done is by giving a selection tool a place_result, using the position of the placed entity and deleting said entity in the build event, and listening for the selected area events to determine when the mouse is released. I'm currently using it for controlling a 3D rotation, and it's extremely jumpy unless you're zoomed out very far or dragging very fast. I don't know of any other solution that's supposed to work cleanly for this method of control.

It's not just about modded stuff either, this affects land mines in the base game. It's not very noticeable since they're roughly tile-sized, but there is a visible difference in the end placement between 1.1 and 2.1. In 1.1, it behaves as one would expect, placing them every change it gets, and the only noticeable gaps are from dragging the mouse too quickly.


In 2.1, there's an inconsistent gap from the first landmine and the second one, and the average gap between every landmine is increased. It becomes even more inconsistent if you start changing the angle of the drag, for example drawing a circle, every once in a while there will be a much larger than necessary gap and it looks bad, especially near the 45° angle drags.


Posting this as a bug and not a feature request, because I couldn't find anything that led me to believe that this was an intentional change.
Either way, the new behavior kind of sucks, and I ask for the end result to be restored to what it once was.
Attachments
off_grid_build.mp4
(1.23 MiB) Downloaded 8 times
2.1_landmines.mp4
(2.73 MiB) Downloaded 7 times
1.1_landmines.mp4
(1.76 MiB) Downloaded 7 times
My Mods | If you can't make it perfect, make it adjustable
Post Reply

Return to “Bug Reports”