Stranded Deep

Stranded Deep

Not enough ratings
How to mod Stack Sizes
By AkiraTepes
I figured out how to mod Stack Sizes, thought I'd share
   
Award
Favorite
Favorited
Unfavorite
Foreword
I figured out recently how to modify the values of the stack sizes of items in the game so I figured I'd share.If you follow this guide you will be able to stack containers aka crates and logs and increase the number leaves, both arrow types, and everything else you can carry. You'll need ILSpy and Reflexil (see I-o-IPositive7 How to start modding guide) and your Assembly-CSharp.dll file (mine is located in F:\SteamLibrary\steamapps\common\Stranded Deep\Stranded_Deep_Data\Managed). Open them up and we'll get started.
The Steps
I've gone through and taken pictures of the steps so here we go.
MAKE A BACKUP OF YOUR ORIGINAL ASSEMBLY-CSHARP.DLL
Step 1

Then you'll scroll down to step 2

Scroll some more to step 3

Click the gear

The circled values are what you'll be changing. In the picture mine are already changed.

Right click one of them and hit edit and follow the numbers in the picture. 3 is whatever value you want. When done hit Update

For the rest of your stack sizes

And repeat the previous steps the value to change is the highlighted one

To verify it worked

It should look like this with whatever values you put in earlier

Now go back up to the top of your list

Right click and hit Save As... and it should give you this

Either delete the .Patched or rename it before you move it. And save it somewhere BESIDES your game folder as it doesn't like trying to overwrite the file it's using. AGAIN MAKE A BACKUP OF YOUR ORIIGINAL ASSEMBLY-CSHARP.DLL. Then copy, paste, and replace. That's it.
Closing
Well I hoped that helped someone. Thank you for you time and have fun.

EDIT: Added how to change the other stacks.
21 Comments
Shaggygoblin May 12, 2022 @ 10:02am 
yes, i hate on 'Necropost Nazi's'.
relevant info is timeless.
Shaggygoblin May 12, 2022 @ 9:59am 
dnSpy is a little more human-friendly in it's presentation of code, imo.

just make sure when editing if it is a value like

some.string.text = 32f

it keeps the 'f' (means float iirc)

changing the above to

some.string.text = 18

missing the trailing 'f' is going to cause problems, in most cases, if it's expecting a float (trailing 'f'). it will tell you if you screwed up when you hit 'compile'.

Enjoy!
Shaggygoblin May 12, 2022 @ 9:59am 
When done editing, click compile at bottom-right of the edit window.

If you didn't follow the prep-step of making a copy of the .dll, go ahead and copy the .dll now.
this will be your edited .dll. place it somewhere accessible, then verify the files using steam.
once it's done verifying; rename, move, or copy/paste (this creates a second .dll named "Assembly-CSharp.dll - Copy". this is a copy. yeah, really.) this fresh .dll.
move it to a safe place, or rename it, or delete it AFTER copy/pasting...lol.
Move your edited .dll back and fire up the game.
Shaggygoblin May 12, 2022 @ 9:59am 
At step 3, things are different now. The new build has dissimilar entries.
You want the info in "DEFAULT_STACK_SIZE : int @040028FF"

https://steamcommunity.com/sharedfiles/filedetails/?id=2807176612


Right-Click that entry and 'Edit Class (C#)...'

In the new window, make your edits.

https://steamcommunity.com/sharedfiles/filedetails/?id=2807176716


(You can also just Edit Class on the SlotStorage in step 2, then scroll down to the bottom 3rd of the file till you see the same area of code. edit class on the default_stack_size entry just skips to that section in the edit window.)
Shaggygoblin May 12, 2022 @ 9:58am 
@andytaylor666

I use dnSpy

Open Assembly-CSharp.dll with dnSpy

click/expand as OP did in Step 1:

https://steamcommunity.com/sharedfiles/filedetails/?id=2807176023


and Step 2:

https://steamcommunity.com/sharedfiles/filedetails/?id=2807176534
andytaylor666 Mar 21, 2021 @ 1:16pm 
I don't have the top "SlotStorage()" or the "GetStackSize(CraftingType) :Int" options
What in the newbiest of noobie nonsense have I done
[sd] QooLiO Mar 7, 2021 @ 3:32am 
@stevohall edit GetStackSize(CraftingType) : int
[sd] QooLiO Mar 7, 2021 @ 3:31am 
@John2022[FR] download and unpack:
https://github.com/icsharpcode/ILSpy/releases/download/v6.2.1/ILSpy_binaries_6.2.1.6137.zip
https://github.com/sailro/Reflexil/releases/download/v2.5/reflexil.for.Reflector.2.5.AIO.bin.zip

copy Reflexil.ILSpy.Plugin.dll from reflexil.for.ILSpy.2.5.AIO.bin folder to ILSpy_binaries_6.2.1.6137 folder. Run ILSpy.exe
[sd] QooLiO Mar 7, 2021 @ 3:28am 
ILSpy_binaries_7.0.0.6372-preview3 does not work with reflexil.for.ILSpy.2.5 - only ILSpy_binaries_6.2.1.6137 does.
[sd] QooLiO Mar 7, 2021 @ 3:27am 
@Commander Shadow you forgot to put Reflexil.ILSpy.Plugin.dll into the folder where ILSpy.exe resides.