Page 1 of 1

[Rseding91] [0.17.50] Variant tile placement depends on direction of drag

Posted: Thu Jun 20, 2019 2:59 pm
by Deadlock989
I made a new placeable/minable floor tile, made out of 1x1 and 2x2 variants, defined like so:

Code: Select all

variants = {
		main = {
			{
				count = 16,
				picture = DIR.terrain_path .. "/" .. graphic .. "-1.png",
				scale = 0.5,
				size = 1,
			},
			{
				count = 16,
				picture = DIR.terrain_path .. "/" .. graphic .. "-2.png",
				scale = 0.5,
				size = 2,
				probability = 0.5,
			},
		},
.....
Unfortunately, when you select the tile item and place it in the world and then drag along, you get radically different results depending on which direction you drag. If you run down or right, you get none of the 2x2 variants after the very first placement, only the 1x1 versions. But if you run up or left, you get all the variants including the 2x2s. See illustration attached, which used a 4x4 "brush".

Re: [0.17.50] [Modded] Variant tile placement depends on direction of drag

Posted: Thu Jun 20, 2019 3:11 pm
by Deadlock989
Addendum: the only vanilla placeable tile that has the same structure is stone bricks. The same thing happens there, it's just hard to see because of the texture. But if you turn on show-tile-variations in debugging, you can see the same thing is happening (top is right-to-left, bottom is left-to-right):

Re: [Rseding91] [0.17.50] Variant tile placement depends on direction of drag

Posted: Fri Jun 21, 2019 7:54 pm
by Rseding91
Thanks for the report. This is something I've known about for a long time but never got around to handling. It's now fixed for the next version of 0.17.

Re: [Rseding91] [0.17.50] Variant tile placement depends on direction of drag

Posted: Fri Jun 21, 2019 7:56 pm
by Deadlock989
Much obliged to you.