Barotrauma

Barotrauma

Stack Size 128x Lua
65 kommentarer
TheNyaruko 10. juni kl. 20:17 
Dude this mod has some problem if turn on mod [Item IO framework] with it together it will cousd IO box stackable.and this problem always happend after i went through half of the map.
Пулемётчики 8. maj kl. 16:24 
I see, well. all right, then.
DesertBoss  [ophavsmand] 8. maj kl. 16:23 
@Пулемётчики
There are restrictions that limit modding capabilities. Also, modifying the network code will inevitably lead to critical errors.
Пулемётчики 8. maj kl. 7:01 
Hey, why don't you make it work in multiplayer?
Herrscher of Reason 6. maj kl. 15:40 
"Doesn't work in multiplayer."
Well, it works if everyone turns it on in their mods.
Пулемётчики 14. dec. 2024 kl. 17:57 
Dude what should I do if I have a 128x stack invisible item with your addon's prescription in my deconstructor? AKA S.A.F.S.
Пулемётчики 14. dec. 2024 kl. 17:55 
Everything works, I'm just a moron and forgot to install the lua client again.
pyro557 13. dec. 2024 kl. 12:01 
thank you
DesertBoss  [ophavsmand] 13. dec. 2024 kl. 10:35 
@pyro557
The mod does not change the ammo stack size inside the weapon. Most likely another mod does this. To limit the stack size in the player hotbar, you need to make the mod local and change the value of "characterInventoryCapacity" in the "script.lua" file. After that, enable the local mod instead of the mod from the workshop.
pyro557 13. dec. 2024 kl. 8:22 
how would i go about stopping this from working inside weapons to prevent weapons that hold individual bullets instead of magazines from having large amounts of ammo. and maybe the hotbar as well to limit magazine stacks for reloading. i know there is a 63x stack mod that already has this balance but i prefer to use this mod for storage reasons.
DesertBoss  [ophavsmand] 13. dec. 2024 kl. 7:32 
@#FixTF2 Heavy
You can send the log file by following these instructions:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2896243786
DesertBoss  [ophavsmand] 13. dec. 2024 kl. 7:26 
@#FixTF2 Heavy
Most likely several stack size mods are conflicting. Try leaving only one stack size mod.
Пулемётчики 12. dec. 2024 kl. 21:01 
I don't know how to send you a log from the console, but I'll tell you briefly. After the update your addon still doesn't work, stack is 63 instead of 128 because I still have an addon for stack 63 just in case.
DesertBoss  [ophavsmand] 12. dec. 2024 kl. 14:47 
I updated the mod. If there are problems with the mod, write a message with an error from the console (F3).
Пулемётчики 11. dec. 2024 kl. 15:42 
Developer of this addon please update the addon otherwise it will not work with the new version!
pyro557 11. dec. 2024 kl. 9:14 
not sure if im doing something wrong but this doesnt work and i imagine it has something to do with one of the larger mods i have. to give some direction i have the new fork of neurotrauma and enhanced armaments with the expansion. i have changed load order several times both before and after most mods and have even tried it as a local mod. if i had to guess EHA might limit stack sizes for difficulty and that might be it but im just speculating.
Пулемётчики 5. dec. 2024 kl. 13:46 
У меня всё нормально, может быть у вас пк слабый?
StiGMa 5. dec. 2024 kl. 8:27 
Мод работает, но когда пытаюсь со стаковать, проходит 3 секунды и вылетает
Voruga 4. dec. 2024 kl. 8:16 
Мод не работает, когда пытаюсь со стаковать, проходит 3 секунды и вылетает
欧姆尼塞亚 12. nov. 2024 kl. 3:45 
硅无法堆叠,会报错:steamfacepalm:
Пулемётчики 11. nov. 2024 kl. 21:03 
Thank you very much. / Спасибо большое. / Спасибі велике.:gooddoctor::ebonyivory:
DesertBoss  [ophavsmand] 11. nov. 2024 kl. 10:12 
@#FixTF2 Heavy
@zeldazackman
Mod updated
Пулемётчики 10. nov. 2024 kl. 21:54 
For real, update this modification please!
zeldazackman 23. okt. 2024 kl. 23:21 
I hate to ask, but could you update this since the game updated? It's really helped in dealing with the copious amounts of oxygen tanks and medical supplies that the bots I've got run through.
Sanek Play 16. aug. 2024 kl. 14:04 
not found in crate
Nero 24. juni 2024 kl. 7:38 
Okay thx Making the mod Local worked fine
DesertBoss  [ophavsmand] 24. juni 2024 kl. 7:34 
@Nero
Only four variables at the beginning of the file can be changed. Changing the rest of the code leads to errors and incorrect operation of the mod.
DesertBoss  [ophavsmand] 24. juni 2024 kl. 7:32 
@Nero
Are you editing the file at "steamapps\workshop\content\602960\2961866549\Lua\Autorun\script.lua"? Alternatively, you can copy the folder "2961866549" to the path "steamapps\common\Barotrauma\LocalMods\" and enable the local mod in the game instead of the workshop mod.
Nero 24. juni 2024 kl. 7:26 
i edited the script.lua to these

"local new_maxStackSize = 256
local mobilecontainerСapacity = 256
local crateСapacity = 256
local containerСapacity = new_maxStackSize"

and at the bottom part


},
function(instance, p)
if instance.maxStackSize > 1 then
local tags = instance.Item.Tags

if string.match(tags, "mobilecontainer") or string.match(tags, "scooter") then
instance.maxStackSize = mobilecontainerСapacity
elseif string.match(tags, "crate") then
instance.maxStackSize = crateСapacity
elseif string.match(tags, "container") then
instance.maxStackSize = containerСapacity
elseif p["value"] == 256 then
instance.maxStackSize = new_maxStackSize
end



So all values are 256 yet it is still capped at 128 i dont know where it takes the 128 from now ?
Nero 24. juni 2024 kl. 7:21 
i turned them all to 256 but for some reason the stack is still limited to 128
DesertBoss  [ophavsmand] 24. juni 2024 kl. 7:16 
@Nero
Just change the value of the new_maxStackSize variable to any value in the script file and it will work.
Nero 23. juni 2024 kl. 14:44 
any way to make the stacks higher myself?

I already tried hanging the numbers in the lua file to 512 but the stacks only go to 128 still
Traxex 30. maj 2024 kl. 21:24 
Apparently it works in Single Player but doesn't work in multiplayer
Traxex 30. maj 2024 kl. 3:12 
Same Issue but it doesn't pop a console error. What it does is when you stack more than 32, it checks it, then caps it at 32 while returning the overflow back to where it came from. It some cases it will actually switch the overflow with the capped amount so if you try to move 12 bandages (example, actually applies to everything) to the medical backpack, it will move 4 of them (instead of capping at 8) and move the rest back to where it was initially. In cabinets, it will return the surplus to you or drop it on the floor.
DesertBoss  [ophavsmand] 7. maj 2024 kl. 11:55 
@Kriosiss
Or send a log file following these instructions:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2896243786
DesertBoss  [ophavsmand] 7. maj 2024 kl. 11:49 
@Kriosiss
Can you send me a screenshot of the game console log (F3 key) after you transfer the items to the container inventory? The mod works correctly in my game.
Kriosiss 7. maj 2024 kl. 9:28 
only stacks properly in cabenets
Kriosiss 7. maj 2024 kl. 9:27 
wont stay stacked past 8 in my inventory or in a storage case
Kriosiss 7. maj 2024 kl. 9:14 
oh, was that instruction always there?
DesertBoss  [ophavsmand] 7. maj 2024 kl. 8:46 
For the mod to work, you need to enable "CSharp scripting" in the "LuaCs settings" window. The button is located in the main menu of the game in the upper left corner.
Kriosiss 6. maj 2024 kl. 10:09 
update plz
BaeJunsik 6. apr. 2024 kl. 17:56 
Not working anymore ?
DesertBoss  [ophavsmand] 18. dec. 2023 kl. 18:12 
Due to the fact that the game developers updated the inventory system in the game, this mod will break after every major update. Therefore, I cannot say how quickly fixes for the mod will be released.
Jazz Hands Jim 17. dec. 2023 kl. 16:14 
Thanks for the reply!
DesertBoss  [ophavsmand] 17. dec. 2023 kl. 6:38 
I'll try to find time to fix the mod soon.
Jazz Hands Jim 17. dec. 2023 kl. 6:26 
I don't suppose you'll try to fix this for the current version?
Angel in TheLight of SPACE!! 1. aug. 2023 kl. 3:34 
@Crash i guess you could say the mod crashed, EHEHEHEHE, sorry, i go bye.
LaggyNoob 30. juni 2023 kl. 12:33 
what about making ever storage methods have 128?
Crash 15. juni 2023 kl. 21:11 
it broke with the update
Terallis 30. maj 2023 kl. 22:28 
Noticing something pretty common. Seems that when a stack goes above 63, it suddenly just has the entire stack (and, oddly, sometimes some adjacent stacks of unrelated materials) drop on the floor from the container. Likewise, when picking things up, if the stack happens to go above 63 in your inventory bar, it causes the whole server to crash. So it seems like the ceiling for stack sizes is 63.