Snapping to large grid size cause blueprint to jitter

We are aware of them, but they have low priority. We have more important things to do. They go here in order not to take space in the main bug thread list.
PhiPro
Burner Inserter
Burner Inserter
Posts: 5
Joined: Mon Sep 16, 2019 1:40 pm
Contact:

Snapping to large grid size cause blueprint to jitter

Post by PhiPro »

When using very large grid sizes such as 2147483647=2^31-1, placing blueprints at y=-1 or -2 causes jitter and places the blueprints incorrectly. The same does not happen for positive y-values or y-values that are further away from 0. Slightly smaller grid sizes such as 2147483645 cause the gaps to become larger. This looks like some kind of internal integer overflow.



In case you consider this not worth fixing, it would make sense to constrain the grid size to e.g. 2^30.

On a further note, the reason to use this large grid size is to make a blueprint tileable only in x-direction. Hence I request the feature to disable tileability in one direction more properly. Concretely, I propose to allow a grid size of 0, with the meaning that a blueprint is not tileable in that direction. In fact, this is semantically correct, since the only multiple of 0 is 0 itself; so allowing placement only at the integer multiples of the grid size means for a grid size of 0 exactly non-tileability in that direction.
Should this be posted as separate suggestion?

Best,
PhiPro
User avatar
NotRexButCaesar
Smart Inserter
Smart Inserter
Posts: 1133
Joined: Sun Feb 16, 2020 12:47 am
Contact:

Re: Snapping to large grid size cause blueprint to jitter

Post by NotRexButCaesar »

This doesn't happen for me, even with a (very laggy) 1569325055 size grid
—Crevez, chiens, si vous n'étes pas contents!
Blacky007
Fast Inserter
Fast Inserter
Posts: 180
Joined: Fri Dec 29, 2017 8:05 pm
Contact:

Re: Snapping to large grid size cause blueprint to jitter

Post by Blacky007 »

the grid size need to be smaller then 2.000.000 in X and Y, any larger value makes no sence - because it is the max. Gamefield size
My color birthday was May 2nd 2020 - Thank you Enchroma
User avatar
MEOWMI
Filter Inserter
Filter Inserter
Posts: 335
Joined: Wed May 22, 2019 12:21 pm
Contact:

Re: Snapping to large grid size cause blueprint to jitter

Post by MEOWMI »

Wouldn't like 2000 be enough for the intended behavior?

If you intentionally cause an overflow... well, that's an overflow alright. Seems more like feature request than a bug report but I guess it is a tiny bug.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14269
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Snapping to large grid size cause blueprint to jitter

Post by Rseding91 »

Thanks for the report however I'm going to just say "don't do that". Since it's not crashing the game and it's just more work for us to validate the values everywhere they can be changed for minimal/no gains.
If you want to get ahold of me I'm almost always on Discord.
PhiPro
Burner Inserter
Burner Inserter
Posts: 5
Joined: Mon Sep 16, 2019 1:40 pm
Contact:

Re: Snapping to large grid size cause blueprint to jitter

Post by PhiPro »

Regarding my feature request for allowing a grid size of 0, should I post that again in the suggestions subforum?

Regarding the bug itself, values >= 2147483648 and <= 0 are already disallowed. Would it make sense to further restrict the upper bound to 2^30 or something for the time being?
Post Reply

Return to “Minor issues”