[kovarex] [1.1.0] Power pole not placing in gap when dragging fast

This subforum contains all the issues which we already resolved.
Post Reply
AntiElitz
Filter Inserter
Filter Inserter
Posts: 453
Joined: Sat Aug 29, 2015 11:37 pm
Contact:

[kovarex] [1.1.0] Power pole not placing in gap when dragging fast

Post by AntiElitz »

Power pole not placing in gap when dragging fast.

See Video:
https://www.youtube.com/watch?v=aoClknpAmaE

Twinsen
Factorio Staff
Factorio Staff
Posts: 1341
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [Twinsen][1.1.0] Power pole not placing in gap when dragging fast

Post by Twinsen »

Leaving this for kovarex:
For power pole dragging to work correctly in this case, the build input action needs to be called twice per tile. Which is probably not a reasonable requirement.


If build input action is called once per tile:
- build action is called on {-8.5, 2.5}. buildByMovingCheckCommon goes into the if (!lastDragBuildPosition.empty()) section. Pole is built at {-2.5, 2.5}, lastDragBuildPosition is cleared, no pole is built at {-8.5, 2.5} during this input action
- next input action is at different tile {-10.5, 2.5}. buildByMovingCheckCommon does nothing, since lastBuiltEntity is too far away({-2.5, 2.5}) and lastDragBuildPosition is empty. Pole is built at {-10.5, 2.5}

If build input action is called twice per tile:
- build action is called on {-8.5, 2.5}. buildByMovingCheckCommon goes into the if (!lastDragBuildPosition.empty()) section. Pole is built at {-2.5, 2.5}, lastDragBuildPosition is cleared, no pole is built at {-8.5, 2.5} during this input action
- next input action is on {-8.5, 2.5} again. buildByMovingCheckCommon is called again, but this time lastBuiltEntity({-2.5, 2.5}) is in range. lastDragBuildPosition is set to {-8.5, 2.5}
- next input action is a different tile {-10.5, 2.5}. buildByMovingCheckCommon goes into the if (!lastDragBuildPosition.empty()) section. Pole is built at {-8.5, 2.5}

kovarex
Factorio Staff
Factorio Staff
Posts: 8120
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [kovarex] [1.1.0] Power pole not placing in gap when dragging fast

Post by kovarex »

Thanks for the report, this is now fixed for the next release.

Post Reply

Return to “Resolved Problems and Bugs”