Barotrauma 潜渊症

Barotrauma 潜渊症

Configurable Stack Size (Lua)
15 条留言
Leone 20 小时以前 
hello, How can I make the amount of ammunition in my inventory the same in my belts and backpacks?
It's too OP to carry a stack of 32 assault rifle magazines in my belts🤣.
freedurof 3 月 6 日 上午 12:31 
how to remove stacks in ammunition shelves and cabinets for underwater equipment
pinkduck  [作者] 1 月 23 日 下午 3:23 
Yes it does, the stack limit in multiplayer will be 63 however.
这个人没铭字 1 月 23 日 上午 10:51 
Does this mod work in multiplayer mode?
Lucifer 1 月 11 日 上午 1:51 
@pinkduck, Tnx man. You Better! This mod very good. Good luck.)
RzR⁧⁧Telhalm 1 月 10 日 下午 5:23 
I actually prefer O2 tanks and Welding Fuel to not stack as - and this is probably just a mod interaction - the last stacksize mod I used ended up using ALL of the O2/Welding fuel if it was able to stack in a container that used ammo. e.g: I believe S.A.F.S. exoflamer used the ENTIRE stack.
pinkduck  [作者] 1 月 10 日 上午 9:36 
@Lucifer, Hotbar stacking is key `MaxStackSizeCharacterInventory`


Now, I'm assuming you meant O2 tanks by "Oxygen balone", and so here's how to do it,
Pastebin [rentry.co]

Pastebin because it'll be badly formatted in steam comments...
Lucifer 1 月 10 日 上午 8:49 
Need help. How change staxsize item in hotbar? Oxygen balone don't stack. ((((
pinkduck  [作者] 1 月 8 日 下午 8:47 
Configs are now stored in the save folder at "Barotrauma/ModConfigs/ConfigurableStackSize/"
RzR⁧⁧Telhalm 1 月 7 日 下午 8:16 
Fair enough, just figured I'd confirm so as not to change it then forget and assume the mod broke again later.
pinkduck  [作者] 1 月 7 日 下午 7:32 
@RzR Yes, the cap is there for performance reasons in vanilla. And, that changing the limit for multiplayer would be a more involved process, but I might look into it when I have some time.
RzR⁧⁧Telhalm 1 月 7 日 下午 4:20 
Let's gooooooo!

Just tried it now and it seems to work just fine. Cheers!

So multiplayer is still gimped by the 63-hard-cap ye?
pinkduck  [作者] 1 月 7 日 上午 5:23 
@RzR The issue should now be fixed. ;)
pinkduck  [作者] 1 月 7 日 上午 4:49 
@RzR Ah, I'm sorry lol. It seems it's broken because of a logging functionality I recently added and I only checked it in singleplayer.

I'll update the mod in a while. Thanks for letting me know!
RzR⁧⁧Telhalm 1 月 7 日 上午 2:22 
Trying out the mod in multiplayer, this is the only mod that changes stack sizes in the list as far as I'm concerned, and it completely breaks stack sizes instead.
I can pull a stack of 8 bandages out of the med cabinet, and then pull out another stack however if I *drop* the bandages but leave a stack of 8, I get bombarded with

Tried to add an item to a full inventory slot (stack already full, x8 antibleeding1).
at Barotrauma.Inventory.ItemSlot.Add(Item item) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Items/Inventory.cs:line 154
at Barotrauma.Inventory.ForceToSlot(Item item, Int32 index) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Items/Inventory.cs:line 1087
at Barotrauma.Inventory.ApplyReceivedState() in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Items/Inventory.cs:line 2104

The only time I can seemingly have more than a "full stack" is if I pull it out of a cabinet
Do note, the config should be default, which is 32 inventory and 64 everywhere else.