Barotrauma

Barotrauma

Stack Size 62x Lua
123 Comments
NothingSuS 28 Apr @ 11:37am 
I figured it out, I was stupid that was the problem.
SydWad  [author] 27 Apr @ 6:06pm 
@NothingSuS
Im not seeing any problems. The game did update so make sure you reinstall Lua. Even if it says its installed make sure you do the unpacking step again (load lua in session and type Install_cl_lua in console)
NothingSuS 25 Apr @ 1:30am 
This doesn't seem to work
PuzzyDiztroier 2 Mar @ 8:20pm 
Mod works, but items in container (toolbox) and main inventory stacking only by 32
SydWad  [author] 21 Dec, 2024 @ 9:03pm 
@不着急救我 @Bubbles
Once i reinstalled client side Lua after the update it works fine for me.
Bubbles 19 Dec, 2024 @ 11:13pm 
is this mod gonna be fixed?
不着急救我 14 Dec, 2024 @ 5:21pm 
doesn't work after LUA update in 12.14
20 Nov, 2024 @ 7:35am 
nice!
Coonie_Dew 5 Nov, 2024 @ 9:10am 
@Sydwad thank you and your right it really wasn't hard but thank you for the help
SydWad  [author] 31 Oct, 2024 @ 9:43pm 
@Coonie_Dew
It needs to be a custom version that only modifies MaxStackSize, and not MaxStackSizeInCHaracterInventory.
I dont have much time to make it but it should be a relatively easy modification even if you have no knowledge of Lua.
Coonie_Dew 31 Oct, 2024 @ 10:56am 
@Sydwad how can we do it i wanna add it to my campane and being able to carry 62 ap mags is a bit broken lol
SydWad  [author] 23 Oct, 2024 @ 7:44pm 
@Coonie_Dew
Yes that is possible
Coonie_Dew 22 Oct, 2024 @ 4:14pm 
are you able to make it so player inventory it cant stack so high or no?
just wondering
romeomike 27 Jun, 2024 @ 3:16am 
:boomer:
romeomike 26 Jun, 2024 @ 5:37am 
mod sucks and smells and is shit
SydWad  [author] 6 May, 2024 @ 9:35pm 
@Kriosiss
Still works for me
Make sure every time the game updates that you reinstall Lua. It might still have the purple text on the main screen but it still needs to be unpacked again.
Kriosiss 4 May, 2024 @ 4:01pm 
please patch
GOLEM 15 Apr, 2024 @ 8:18am 
Hello, I recently downloaded this mod, neurotrauma and a bunch of other mod.
Here is what's strange :
Some items like plastiseal do stack up to the correct amount (62) but a son as I drag and drop them from the container to my pockets the stack break and only drop 8 of them. Not the all stack. Mind you the rest do stay in the container. Another thing, some items refuse to stack higher, like opium for exemple. They only stack up to 8. I tried putting this mod beneath neurotrauma but to no avail. Any tips ?
土 GalTeXx (Не сосал) 6 Jan, 2024 @ 2:27am 
D:
How about me paying 100% royalty from all the money I earn from that free product?
SydWad  [author] 6 Jan, 2024 @ 12:53am 
@GalTeXx (Клювless)
You can keep it
But only if you pay me $30 per subscriber
土 GalTeXx (Не сосал) 4 Jan, 2024 @ 5:20am 
Mind if I rebalance(steal) ur code and drop it as standalone mod?
(I mean I allready did, but I can take it down)
Cyber Ortek 17 Dec, 2023 @ 8:54am 
okay thanks
SydWad  [author] 17 Dec, 2023 @ 8:50am 
@Cyber Ortek
Every time the game updates you have to unpack Lua again because the game validates some core files that the mod changes. Make sure Lua is functioning properly.
Cyber Ortek 17 Dec, 2023 @ 4:18am 
The newest update somehow voided your mod. Now my ammo and materials are all over my ship, ejected from their cabinet. Please update the mod if you have time, much appreciated
HuskyStrylight 15 Nov, 2023 @ 1:53pm 
Thx for the help though!
HuskyStrylight 15 Nov, 2023 @ 1:53pm 
Im the host of the server, the bug seems to stem from the lua itself, tried restarting, reloading, and redownloading, error still persist, theres a bug where you have to switch server type from vanilla to lua for other players to sync the menu in the multiplayer.

As of right now, im spent out of option so i had to disable the lua server mod.
SydWad  [author] 14 Nov, 2023 @ 10:41pm 
@HuskyStrylight
Are you playing on a server that also has the mod enabled?
There is a bug i cant really fix where if you have had the mod enabled it will stay on until the game is restarted. But what happens is you over stack the items then they drop to the ground.
So make sure the mod is still enabled, and is enabled on the server.
HuskyStrylight 14 Nov, 2023 @ 2:21pm 
I found the issue, it seems Lua is really not compatible with most non lua mods, not sure why it causes stack issue as well as other code issue (dynamiceruopa) but after disabling the lua, the desync issue seems to be gone.
SydWad  [author] 13 Nov, 2023 @ 9:16pm 
Only increases stacks larger than 1, if he changed some items to no longer stack then it wot pick them up
SydWad  [author] 11 Nov, 2023 @ 7:02pm 
Load order should have no effect, i dont think Lua takes that into account. But in terms of the game's logic it would be best to keep it at the bottom.
HuskyStrylight 11 Nov, 2023 @ 6:42pm 
where would you recommend loading the mod? The way top or bottom?
SydWad  [author] 11 Nov, 2023 @ 6:12pm 
@HuskyStrylight
That is really odd, the game is supposed to automatically dump things on the ground if the inventory is too full. Ive even seen it still work when someone bugged and running the mod client side while the server is not.
All i can think of is if ya there is a mod conflict. But there arent really any other mods i know of that change the stack size with Lua other than my 4 i uploaded.
HuskyStrylight 11 Nov, 2023 @ 5:15pm 
Coroutine Barotrauma.Inventory+<SyncItemsAfterDelay>d__89 threw an exception: Tried to add an item to a full inventory slot (stack already full, x12 revolverround).
at Barotrauma.Inventory.ItemSlot.Add(Item item) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Items\Inventory.cs:line 149
at Barotrauma.Inventory.ForceToSlot(Item item, Int32 index) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Items\Inventory.cs:line 1034
at Barotrauma.Inventory.ApplyReceivedState() in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Items\Inventory.cs:line 1927
at Barotrauma.Inventory.SyncItemsAfterDelay(UInt16 lastEventID)+MoveNext() in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Items\Inventory.cs:line 1898
at Barotrauma.CoroutineManager.PerformCoroutineStep(CoroutineHandle handle) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\CoroutineManager.cs:line 214
HuskyStrylight 11 Nov, 2023 @ 5:14pm 
Its a long message, not sure if i can paste it here,
Coroutine Barotrauma.Inventory+<SyncItemsAfterDelay>d__89 threw an exception: Tried to add an item to a full inventory slot (stack already full, x4 smgmagazine).
at Barotrauma.Inventory.ItemSlot.Add(Item item) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Items\Inventory.cs:line 149
at Barotrauma.Inventory.ForceToSlot(Item item, Int32 index) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Items\Inventory.cs:line 1034
at Barotrauma.Inventory.ApplyReceivedState() in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Items\Inventory.cs:line 1927
at Barotrauma.Inventory.SyncItemsAfterDelay(UInt16 lastEventID)+MoveNext() in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Items\Inventory.cs:line 1898
at Barotrauma.CoroutineManager.PerformCoroutineStep(CoroutineHandle handle) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\CoroutineManager.cs:line 214
SydWad  [author] 11 Nov, 2023 @ 4:33pm 
@HuskyStrylight
Im not seeing any problems on my end, can you send me exactly what the error says?
And if the problem persists i recommend unpacking Lua again then restarting the game.
HuskyStrylight 11 Nov, 2023 @ 4:26pm 
Getting issues with revolver rounds, max stack is 12 and because of this it crashes or sends red message
SydWad  [author] 24 Oct, 2023 @ 9:37pm 
@Random Turing Machine
As far as i can tell for the toolbelts and bags its also prefab.MaxStackSize but in a different context of the ItemContainer and i have no idea how to do it properly.
Both of the new max sizes you listed there relate to the character.
Random Turing Machine 24 Oct, 2023 @ 5:04pm 
If memory serves me correctly

MaxStackSizeCharacterInventory is for size in inventory slot
MaxStackSizeHoldableOrWearableInventory is for size in things like toolbelts

Meaning they should already be fixed.

If you're curious about increasing the toolbelt size itself I linked this to a buddy of mine (Darth Imperius) who can comment on exactly what would need done to make that work. He did similar work on a containers mod; his mod is on the workshop here.
SydWad  [author] 24 Oct, 2023 @ 2:39am 
Ok i did update it but im not smart enough to figure out how to modify backpacks and tool belts to hold more.
Random Turing Machine 22 Oct, 2023 @ 7:45pm 
My crew and I were having some issues after the update so we wrote something to make it work. It would appear that they split this into multiple attributes.

Add the code for these attributes: MaxStackSizeCharacterInventory and MaxStackSizeHoldableOrWearableInventory
SydWad  [author] 22 Oct, 2023 @ 11:55am 
Might take some figuring out because it's a change to all items and characters.
scbbltey[萌萌哒の菜鸟] 22 Oct, 2023 @ 10:46am 
need update:lunar2019piginablanket:
Cat 21 Oct, 2023 @ 11:49am 
Pleas update the mod, it doesn't work outside of cabinets now
Xeno 18 Sep, 2023 @ 4:58pm 
damn
SydWad  [author] 18 Sep, 2023 @ 12:22pm 
@Xeno
The max the game supports is 63x last i tried
Xeno 18 Sep, 2023 @ 12:08pm 
is there a chance you will make one that's 128x ?
Xavier 18 Jun, 2023 @ 9:34pm 
Ah, that makes sense then, thanks, I'll let you know if it's still broken
SydWad  [author] 18 Jun, 2023 @ 5:56pm 
@Xavier
When the game updates you need to re-unpack Lua to make everything work as intended.
Im not seeing a problem on my end once i have done that. Please tell me if the problem persists.
Xavier 16 Jun, 2023 @ 11:49pm 
Mod seems to be broken with new update, Whenever opening a save the game crashes if there are any stacks of items over the default amount, as the game tries to place more than 8 (I think it's 8?) items in the same stack
SydWad  [author] 2 Jun, 2023 @ 2:59am 
@Daniel14541
You have to download the mod Lua For Barotrauma too and also unpack it.
You can see the step by step process to do so on their mod page.
https://steamhost.cn/steamcommunity_com/workshop/filedetails/?id=2559634234