Krock wrote:With the old font settings they covered more of the inventory images. Two digits already allow quite big stacks and they don't cover the image too much, so it's easier to see what the item is.
firefox wrote:game logic :P
almost all games have their max level or whatever at 99, 999 or 9999.
GreenDimond wrote:Stack max is something around 65535. Doing /giveme can get you that amount. Doing 65536 gives you empty item error. Anything higher resets back to counting from one (65537=1,65528=2,etc...).
GreenDimond wrote:Stack max is something around 65535. Doing /giveme can get you that amount. Doing 65536 gives you empty item error. Anything higher resets back to counting from one (65537=1,65528=2,etc...).
Sergey wrote:Why do 99 items make full stack? Why so odd number was chosen for full stack? Why not hundred for good measure?
GreenDimond wrote:btw the font doesnt block the item much.
Mwamba wrote:Sergey wrote:Why do 99 items make full stack? Why so odd number was chosen for full stack? Why not hundred for good measure?
Please, refer to this topic: Items stackable by 100 ?
GreenDimond wrote:I was proving that the stack max is not 99 and can be higher and btw the font doesnt block the item much.
rubenwardy wrote:GreenDimond wrote:I was proving that the stack max is not 99 and can be higher and btw the font doesnt block the item much.
Just because you can get higher numbers by cheating, doesn't make the stack max not 99. The stack max doesn't mean the engine can't support higher
Why so odd number was chosen for full stack?
the_raven_262 wrote:I think the stack should be 128 or 64.
But not 99, its just ... stupid? No, irritating? Well it does make lots of crafts rather irritating.
Lets take, for example crafting of the stone bricks.
If i want to craft stone bricks from stone i need 4 stone for a combination.
So if i make as many combinations as possible with one full stack i get 3 stone left and 96 stone bricks.
And that is irritating, isn't it?
-- Set this value to the stack size you want. If lowering the value already
-- existing larger stacks won’t be affected – you just can’t fill them to their
-- original size.
--
-- Set to 100 to achive what’s discussed here:
-- https://forum.minetest.net/viewtopic.php?f=3&t=16817
--
-- Please note: The value of 99 for stacks (instead of using stack_max) is
-- hardcoded at various places in Minetest and can’t be altered by a mod. Using
-- this mod makes stacks the size you want in your everyday gameplay.
local desired_stack_size = 100
-- The mods you want to support. (opt-)depend this mod on them and add the
-- mod’s prefixes to this table in order to alter them.
local supported_mods = {
'default'
}
function alter(object_name)
for v,value in pairs(supported_mods) do
if value == object_name:gsub(':.*','') then return true end
end
return false
end
local all_objects = {}
for w,what in pairs({'items', 'nodes', 'craftitems', 'tools'}) do
for k,v in pairs(minetest['registered_'..what]) do all_objects[k] = v end
end
for name,def in pairs(all_objects) do
if def.stack_max == 99 and alter(name) then
minetest.override_item(name, {
stack_max = desired_stack_size
})
end
end
Krock wrote:100: Negative
Krock wrote:
- May need a smaller font for small screens
Krock wrote:
- There's always one left-over when crafting blocks @ 9 items
yawin wrote:I think the best amount to allocate to stack size is a power of 2. For example:
If we take 64 (2^6) for the amount, you can divide the stack like this:
1*64, 2*32, 4*16, 32 + 2*16, 8*8, 64*1,etc...
If we use a little divisible size, we will find constant problems in the distribution.
Sergey wrote:It's not a problem at all. Now image of item is big enough not to be overlaped with number label.
Small screens? Let font sizes in MT not be hardcoded. Let MT define font size depending on screen resolution.
sorcerykid wrote:Here's a perfect example of why a stack size of more than 99 is a problem for tablet and phone users:
Notice how on on this app, a single inventory slot can exactly fit two digits.
Users browsing this forum: No registered users and 20 guests