[Klonan] [1.1.70] [modded] strange inventory limit X position for specific inventory sizes

Post Reply
Honktown
Smart Inserter
Smart Inserter
Posts: 1026
Joined: Thu Oct 03, 2019 7:10 am
Contact:

[Klonan] [1.1.70] [modded] strange inventory limit X position for specific inventory sizes

Post by Honktown »

Expectation: predictable pattern for inventory limiter X position?
What happens: Weird positioning for sizes 6-11 in vanilla (maybe 12), with the mod Custom Production UI this slightly changes so that only sizes 7-11 are incorrect
strange_X_position.png
strange_X_position.png (53.88 KiB) Viewed 630 times
At multiples of 12, the X bar stays in the lower right, which makes sense I guess for visual positioning. Then +1 and it aligns besides the final inventory slot again.

Here's a mod which creates wooden chests with sizes 1-64.
chest_bar_bug_0.0.1.zip
(938 Bytes) Downloaded 38 times
Included in data.lua is a command:

Code: Select all

/c
local X = game.player.position.x
local Y = game.player.position.y
local surface = game.player.surface
for i = 1, 64 do
	surface.create_entity{
		force = "player",
		position = {X+i, Y},
		name = "wooden-chest"..i
	}
end
I have mods! I guess!
Link

Post Reply

Return to “Assigned”