Page 2 of 5

Re: Items stackable by 100 ?

Posted: Tue Apr 07, 2015 13:05
by ABJ
You can get stacks of 100 by using /giveme. Even 1000 if you like

Re: Items stackable by 100 ?

Posted: Tue Apr 07, 2015 15:32
by Sokomine
Some servers have increased the stack size for cobble. That's very practical as that ugly stuff takes less of your storage space away that way. Regarding the topic, I'm pretty sure the theory that it was set to 99 because that's the highest two-digit-number in decimal notation is the most likely one.

Re: Items stackable by 100 ?

Posted: Tue Apr 07, 2015 19:16
by Hybrid Dog
there should be a setting called "default_stack_max"

Re: Items stackable by 100 ?

Posted: Tue Apr 07, 2015 21:19
by rubenwardy
Hybrid Dog wrote:there should be a setting called "default_stack_max"
What a great idea! Who would code such a thing?

Re: Items stackable by 100 ?

Posted: Tue Apr 07, 2015 23:21
by Don
rubenwardy wrote:
Hybrid Dog wrote:there should be a setting called "default_stack_max"
What a great idea! Who would code such a thing?
Hybrid Dog do not suggest Rubenwardy. I am ready for a new chapter in this book so he will be busy.

Re: Items stackable by 100 ?

Posted: Wed Apr 08, 2015 00:45
by prestidigitator
It could be done in straight Lua mod code. Wrap (replace) the appropriate 'register_*()' functions and have them add a 'stack_max' value to item definitions if one is not present. Likewise modify definitions already added to the 'minetest.registered_items', table to cover items registered before the mod is initialized. Something like:

Code: Select all

local DEFAULT_STACK_MAX = 128;

local function wrapRegFunc(funcName)
   local wrapped = minetest[funcName];
   minetest[funcName] =
      function(name, def, ...)
         if def.stack_max == nil then def.stack_max = DEFAULT_STACK_MAX; end;
         return wrapped(name, def, ...);
      end;
end;
wrapRegFunc('register_node');
wrapRegFunc('register_craftitem');
wrapRegFunc('register_tool');

for _, def in pairs(minetest.registered_items) do
  if def.stack_max == nil then def.stack_max = DEFAULT_STACK_MAX; end;
end;

Re: Items stackable by 100 ?

Posted: Wed Apr 08, 2015 03:56
by rubenwardy
I was talking about the pull request I did a few months ago, that hasn't been merged:

https://github.com/minetest/minetest/pull/1843

Re: Items stackable by 100 ?

Posted: Wed Apr 08, 2015 04:49
by prestidigitator
Sure. I'm just always looking for mod-based workarounds. I've found participating in contributions to official code rather unfriendly and unappealing myself, so the more people can do for themselves from Lua, the better.

Re: Items stackable by 100 ?

Posted: Thu Apr 09, 2015 16:14
by ABJ
rubenwardy wrote:
Hybrid Dog wrote:there should be a setting called "default_stack_max"
What a great idea! Who would code such a thing?
55noreleC

Re: Items stackable by 100 ?

Posted: Thu Apr 09, 2015 19:13
by rubenwardy
ABJ wrote:
rubenwardy wrote:
Hybrid Dog wrote:there should be a setting called "default_stack_max"
What a great idea! Who would code such a thing?
55noreleC
celeron55 doesn't work on Minetest any more. I was talking about how I've already done it.

Re: Items stackable by 100 ?

Posted: Thu Apr 09, 2015 19:49
by Hybrid Dog
rubenwardy wrote:celeron55 doesn't work on Minetest any more.
https://github.com/minetest/minetest/co ... =celeron55

Re: Items stackable by 100 ?

Posted: Thu Apr 09, 2015 20:00
by rubenwardy
Before the small commit in feb, the last one was ten months ago. Compare that to zeno, pilzadam, or even me. Point proven.

Celeron55 has even said in IRC that he doesn't want to work on Minetest anymore, but wants to work on other projects.

Re: Items stackable by 100 ?

Posted: Thu Apr 09, 2015 20:59
by Linuxdirk
rubenwardy wrote:I was talking about the pull request I did a few months ago, that hasn't been merged:
There are a lot of good pull requests that fix bugs, enhance the game or tweak the visuals that aren’t merged even if they could be automatically merged – but that’s another topic :)

Re: Items stackable by 100 ?

Posted: Fri Apr 10, 2015 11:14
by ABJ
rubenwardy wrote:celeron55 doesn't work on Minetest any more. I was talking about how I've already done it.
Doesn't he? That's weird. Then who does? PilzAdam & Co?
Now I know why it's no longer called Minetest-c55

Re: Items stackable by 100 ?

Posted: Fri Apr 10, 2015 12:13
by Gael de Sailly
ABJ wrote:Then who does? PilzAdam & Co?
It's a big community who works on the core : nerzuhl (nrz), est31, Zeno`, kwolekr, paramat, and others.
Complete list of contributors

Re: Items stackable by 100 ?

Posted: Fri Apr 10, 2015 13:05
by ABJ
Gael de Sailly wrote:It's a big community who works on the core
You mean like anybody can contribute?
BTW it's nice to have the OP reply for once :D

Re: Items stackable by 100 ?

Posted: Fri Apr 10, 2015 13:59
by Gael de Sailly
Anybody on Github can contribute, by making pull requests, and trusted developers can directly push their changes in the repository (minetest/minetest)

The core is mostly written in C++, except the builtin directory which is Lua.
Mods are fully written in Lua.

It's not the topic, so if you want to talk more specifically about it, I advise you to open a new topic.

Re: Items stackable by 100 ?

Posted: Thu Jul 02, 2015 17:20
by trukoil
I recall to have a setting in minetest.conf that enabled going over 99 items in stack, used to max out to 999.

Don't remember what setting was or if was in older Minetest builds.

Discussions about the maximum permitted stack would be useless if it could be overrode in minetest.conf or world.mt

Re: Items stackable by 100 ?

Posted: Sat Jul 04, 2015 15:58
by Dragonop
+1 to 96 per stack.
There shouldn't be >100 (excluding 100) stacks, if so, chests are pretty useless in some way.
Actually 100 seems big, but doesn't seem as big as 101.

Edit: I think that you can give yourself (/giveme, /give user cmds) something like -1 and that will give you 49~~ something.

Re: Items stackable by 100 ?

Posted: Sat Jul 04, 2015 16:05
by ABJ
/giveme default:blahblah 100 is not something everyone on MP can (and would want/bother to) do.
So need an alt

Re: Items stackable by 100 ?

Posted: Sat Jul 04, 2015 17:06
by Hybrid Dog
ln my opinion minetest should set the default stack max to a random value between 71 and 127 if the value isn't set yet that servers get different stack max and playing makes more fun.

Re: Items stackable by 100 ?

Posted: Fri Jul 10, 2015 15:21
by webdesigner97
Hybrid Dog wrote:ln my opinion minetest should set the default stack max to a random value between 71 and 127 if the value isn't set yet that servers get different stack max and playing makes more fun.
IMHO that would be more annoying than fun :P

Re: Items stackable by 100 ?

Posted: Sat Jul 11, 2015 19:06
by ABJ
.79rengisedbew ,kcab gnimoc er'uoy taht ees ot dalg m'I :CIPOTFFO
ONTOPIC: Yeah.....I...guess it would probably be very annoying yes.

Re: Items stackable by 100 ?

Posted: Wed May 11, 2016 03:09
by wilkgr76
+1 for 144

Re: Items stackable by 100 ?

Posted: Thu May 12, 2016 15:29
by snowflake
Calinou wrote:I agree, it should be 100 by default.
Same.. it's diffcult to do some maths xD

but in Minecraft its only stackable to 64..