rewtgr Posted November 22, 2018 Share Posted November 22, 2018 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. Link to comment Share on other sites More sharing options...
rewtgr Posted November 22, 2018 Author Share Posted November 22, 2018 Reserved Link to comment Share on other sites More sharing options...
Subquake Posted November 22, 2018 Share Posted November 22, 2018 You just smacked in all the items.xml file, why? It's not hard to make modlets, here's a start: <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. Link to comment Share on other sites More sharing options...
rewtgr Posted November 22, 2018 Author Share Posted November 22, 2018 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 Link to comment Share on other sites More sharing options...
Guppycur Posted November 22, 2018 Share Posted November 22, 2018 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. =) Link to comment Share on other sites More sharing options...
rewtgr Posted November 22, 2018 Author Share Posted November 22, 2018 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). Link to comment Share on other sites More sharing options...
Subquake Posted November 22, 2018 Share Posted November 22, 2018 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 Link to comment Share on other sites More sharing options...
Akzyra Posted November 22, 2018 Share Posted November 22, 2018 <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. <!-- 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. <!-- 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> Link to comment Share on other sites More sharing options...
rewtgr Posted November 24, 2018 Author Share Posted November 24, 2018 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) Link to comment Share on other sites More sharing options...
rewtgr Posted November 24, 2018 Author Share Posted November 24, 2018 Modlet version up.... Special thanks to beebeebee for helping me out alot Link to comment Share on other sites More sharing options...
elucidus Posted November 24, 2018 Share Posted November 24, 2018 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. Link to comment Share on other sites More sharing options...
rewtgr Posted November 24, 2018 Author Share Posted November 24, 2018 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 Link to comment Share on other sites More sharing options...
elucidus Posted November 24, 2018 Share Posted November 24, 2018 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. Link to comment Share on other sites More sharing options...
rewtgr Posted November 27, 2018 Author Share Posted November 27, 2018 Fixed: Linux dedi server comp. Link to comment Share on other sites More sharing options...
rewtgr Posted December 30, 2018 Author Share Posted December 30, 2018 Fixed: CanBoiledWater. Updated 1st post link. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.