[Twinsen] [1.1.70] [modded] strange inventory limit X position for specific inventory sizes
Posted: Thu Nov 03, 2022 4:01 am
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
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. Included in data.lua is a command:
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
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. 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