Barotrauma

Barotrauma

Stack Size 128x Lua
65 Comments
TheNyaruko 10 Jun @ 8:17pm 
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 May @ 4:24pm 
I see, well. all right, then.
DesertBoss  [author] 8 May @ 4:23pm 
@Пулемётчики
There are restrictions that limit modding capabilities. Also, modifying the network code will inevitably lead to critical errors.
Пулемётчики 8 May @ 7:01am 
Hey, why don't you make it work in multiplayer?
Herrscher of Reason 6 May @ 3:40pm 
"Doesn't work in multiplayer."
Well, it works if everyone turns it on in their mods.
Пулемётчики 14 Dec, 2024 @ 5:57pm 
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 @ 5:55pm 
Everything works, I'm just a moron and forgot to install the lua client again.
pyro557 13 Dec, 2024 @ 12:01pm 
thank you
DesertBoss  [author] 13 Dec, 2024 @ 10:35am 
@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 @ 8:22am 
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  [author] 13 Dec, 2024 @ 7:32am 
@#FixTF2 Heavy
You can send the log file by following these instructions:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2896243786
DesertBoss  [author] 13 Dec, 2024 @ 7:26am 
@#FixTF2 Heavy
Most likely several stack size mods are conflicting. Try leaving only one stack size mod.
Пулемётчики 12 Dec, 2024 @ 9:01pm 
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  [author] 12 Dec, 2024 @ 2:47pm 
I updated the mod. If there are problems with the mod, write a message with an error from the console (F3).
Пулемётчики 11 Dec, 2024 @ 3:42pm 
Developer of this addon please update the addon otherwise it will not work with the new version!
pyro557 11 Dec, 2024 @ 9:14am 
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 @ 1:46pm 
У меня всё нормально, может быть у вас пк слабый?
StiGMa 5 Dec, 2024 @ 8:27am 
Мод работает, но когда пытаюсь со стаковать, проходит 3 секунды и вылетает
Voruga 4 Dec, 2024 @ 8:16am 
Мод не работает, когда пытаюсь со стаковать, проходит 3 секунды и вылетает
欧姆尼塞亚 12 Nov, 2024 @ 3:45am 
硅无法堆叠,会报错:steamfacepalm:
Пулемётчики 11 Nov, 2024 @ 9:03pm 
Thank you very much. / Спасибо большое. / Спасибі велике.:gooddoctor::ebonyivory:
DesertBoss  [author] 11 Nov, 2024 @ 10:12am 
@#FixTF2 Heavy
@zeldazackman
Mod updated
Пулемётчики 10 Nov, 2024 @ 9:54pm 
For real, update this modification please!
zeldazackman 23 Oct, 2024 @ 11:21pm 
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 @ 2:04pm 
not found in crate
Nero 24 Jun, 2024 @ 7:38am 
Okay thx Making the mod Local worked fine
DesertBoss  [author] 24 Jun, 2024 @ 7:34am 
@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  [author] 24 Jun, 2024 @ 7:32am 
@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 Jun, 2024 @ 7:26am 
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 Jun, 2024 @ 7:21am 
i turned them all to 256 but for some reason the stack is still limited to 128
DesertBoss  [author] 24 Jun, 2024 @ 7:16am 
@Nero
Just change the value of the new_maxStackSize variable to any value in the script file and it will work.
Nero 23 Jun, 2024 @ 2:44pm 
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 May, 2024 @ 9:24pm 
Apparently it works in Single Player but doesn't work in multiplayer
Traxex 30 May, 2024 @ 3:12am 
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  [author] 7 May, 2024 @ 11:55am 
@Kriosiss
Or send a log file following these instructions:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2896243786
DesertBoss  [author] 7 May, 2024 @ 11:49am 
@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 May, 2024 @ 9:28am 
only stacks properly in cabenets
Kriosiss 7 May, 2024 @ 9:27am 
wont stay stacked past 8 in my inventory or in a storage case
Kriosiss 7 May, 2024 @ 9:14am 
oh, was that instruction always there?
DesertBoss  [author] 7 May, 2024 @ 8:46am 
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 May, 2024 @ 10:09am 
update plz
BaeJunsik 6 Apr, 2024 @ 5:56pm 
Not working anymore ?
DesertBoss  [author] 18 Dec, 2023 @ 6:12pm 
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 @ 4:14pm 
Thanks for the reply!
DesertBoss  [author] 17 Dec, 2023 @ 6:38am 
I'll try to find time to fix the mod soon.
Jazz Hands Jim 17 Dec, 2023 @ 6:26am 
I don't suppose you'll try to fix this for the current version?
PornSaves JesusEnslaves. 1 Aug, 2023 @ 3:34am 
@Crash i guess you could say the mod crashed, EHEHEHEHE, sorry, i go bye.
LaggyNoob 30 Jun, 2023 @ 12:33pm 
what about making ever storage methods have 128?
Crash 15 Jun, 2023 @ 9:11pm 
it broke with the update
Terallis 30 May, 2023 @ 10:28pm 
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.