• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

30.000 items stack size

rewtgr

Refugee
This is a mod that increase almost all items stack sizes to 30.000.

Compatible with other modlets that do not change stacks.

Here is the modlet.

Mods (for armor and weapons) stacks are the same like vanilla's (1 stack) to avoid any conflicts. Same with clothes.

 
Last edited by a moderator:
You just smacked in all the items.xml file, why? It's not hard to make modlets, here's a start:

Code:
<configs>
<set xpath="//item[@name='meleeToolTorch']/property[@name='Stacknumber']/@value">30000</set>
...
</configs>
Some guides by sphereii:

https://7daystodie.com/forums/showthread.php?94202-GUIDE-Mod-and-Modlet-Naming-Conventions-for-A17

https://7daystodie.com/forums/showthread.php?93816-XPath-Modding-Explanation-Thread

Alloc also mentioned, that you can't redistribute full xml files of the game with changes made to them directly, you have to make a modlet if you don't want to get in trouble. He probably won't enforce the rule, but others might.

 
Last edited by a moderator:
Yeah i know i can use modlets and save alot of work but we r still in experimental. I'll get into modlets eventually.

As far as the full xmls i didn't know that i can not post them.

Also i can not replace all values that have 'Stacknumber' cause there are items with stacknumber 1 and have quality values (1-6)

I must replace the usual vanilla stacks (50, 100 etc) but i also must also changed some that have stacknumber=1 and no quality for example the bellows.

I'll bring down my 2 mods and start "learning" the modlet method.

But it will take some time :)

Thanks for the "illegal" full xmls tip :)

 
Last edited by a moderator:
We've not been yet officially told we cannot post full xmls, only unofficially, and in that someone at some point will start to complain. Something about lawyers.

=)

 
NW mods are down :)

I'll enjoy a bit of A17 and then get into modlets. I have not play the game yet (only testing).

 
I fixed my initial modlet code snippet, it had a small spelling error:

/@value" />30000</set>

should have been:

/@value">30000</set>

I think what Alloc meant by not sharing full xmls is to encourage people start using modlets and not posting full xml files to increase compatibility between different mods :)

 
Code:
<configs>
<set xpath="//item[@name='meleeToolTorch']/property[@name='Stacknumber']/@value">30000</set>
...
</configs>
A double slash at the start is not good for performance:

https://ludeon.com/forums/index.php?topic=32874.0

https://stackoverflow.com/questions/385272/slow-selectsinglenode

As the XML structure is know, just provide the full xpath.

Code:
  <!-- better performance with a full path -->
 <set xpath="/items/item[@name='meleeToolTorch']/property[@name='Stacknumber']/@value">30000</set>

 <!-- tweak all items with no item-name selector -->
 <set xpath="/items/item/property[@name='Stacknumber']/@value">30000</set>

 <!-- limit it to starting with resource-->
 <set xpath="/items/item[starts-with(@name,'resource')]/property[@name='Stacknumber']/@value">30000</set>
For testing you can use https://www.freeformatter.com/xpath-tester.html.

And if you replace the part that selects the Stacknumber with a item-name selector,

you see which items will be changed.

Code:
  <!-- not very interesting to filter by name and get the name -->
 <set xpath="/items/item[@name='meleeToolTorch']/@name">30000</set>

 <!-- no item-name selector, will list all item names of course -->
 <set xpath="/items/item/@name">30000</set>

 <!-- list all 'resource...' items -->
 <set xpath="/items/item[starts-with(@name,'resource')]/@name">30000</set>
 
Some1 else beat me to it but i'll make one to include all the items that can stack (apart from clothing even if it have no quality)

 
Modlet version up....

Special thanks to beebeebee for helping me out alot :)

 
Last edited by a moderator:
Is the cooking pot the only one that stacks in the blocks file? Or am I missing something? It's very possible I am missing something. :)

 
Not all blocks have a Stacknumber property. I appended it in the cooking pot. Also i didn't want to touch other blocks cause some ppl use the wood frames for firewood (example) and a 30K stack is a pain... split, split, split ;)

 
Not all blocks have a Stacknumber property. I appended it in the cooking pot. Also i didn't want to touch other blocks cause some ppl use the wood frames for firewood (example) and a 30K stack is a pain... split, split, split ;)
Ah, yes. Thank you for explaining.

 
Back
Top