Scrap Mechanic

Scrap Mechanic

Expanded Inventories (1,010 Slots)
27 Comments
TheGoldNinja101  [author] 9 May @ 9:30am 
@hollOwsquire You haven't been reading the comments. You might be a new modder in Scrap Mechanic. Feel free to use the Official Scrap Mechanic Lua API References [scrapmechanic.com].

If you've been reading the comments here and that you're new to Scrap Mechanic Lua scripting, you might be confused on what "game.defaultInventorySize" is. It's the only thing that can be added to Game class, which you can set an integer of up to 1024 slots in all survival based inventories.

GameExample = class()
GameExample.defaultInventorySize = 1010
holl0wsquire 9 May @ 3:00am 
did some more testing and then i stopped and reverted everything back to normal and then i had just laoded up a world with your mod and it didnt work for me at all, maybe i meseed up somewhere or maybe the mod is just outdated now, not sure but if you find any more info yourself, please do keep my posted on it, much appreciated if you do
holl0wsquire 9 May @ 2:23am 
im just trying to customize it myself because i just wanna add about 20 slots and im trying to figure out where you added that code to so i can modify it myself for my survival world, please do respond because i am curious and ive been stressing myself out trying to find it and figure it out, i appreciate it very much g
Lab V3 27 Mar, 2024 @ 6:30am 
Ok thanks.
TheGoldNinja101  [author] 26 Mar, 2024 @ 3:56pm 
If you mean creating B+P variant, then no with this code. The Pocket Dimension Bag may help with that. This code only works in Custom Games (even those that you've downloaded). You're welcome to try. If anyone managed to create Extended Inventories (quite literally compared to this Custom Game), then I'll put that to that collection.
Lab V3 26 Mar, 2024 @ 9:45am 
@TheGoldNinja101
Is it possible to modyfy the Survival Game files with:
Game.defaultInventorySize = 1010 ?
TheGoldNinja101  [author] 18 Jan, 2024 @ 7:22pm 
The Pocket Dimension Bag is something that I came up with, an alternate way to expand a player's inventory since I can't expand a player's actual inventory in Blocks and Parts.
TheGoldNinja101  [author] 12 Jan, 2024 @ 11:14am 
Have you seen comments from the last page?
Eric/(PhatBallz) 12 Jan, 2024 @ 3:02am 
how do i find the file for the inventory size. i dont wanna change my other files
Funtime Gabe 2 Jan, 2024 @ 3:51pm 
well maybe you can find someone to help code it
TheGoldNinja101  [author] 1 Nov, 2023 @ 7:01pm 
Description is updated due to many wanted the Blocks and Parts variant.
Funtime Gabe 1 Nov, 2023 @ 8:46am 
can you make this into a mod for those who want a different base for the custom game and have this in?
ROBOTRON 7 Oct, 2023 @ 3:48am 
my inventory is full...:ds_badcup:
Gaff 20 Aug, 2023 @ 2:41pm 
This is not a mod, but custom game
TheGoldNinja101  [author] 23 Dec, 2022 @ 10:50am 
Sorry, but for Blocks and Parts version, It's just straight up impossible for me to expand the player's inventory.
Spoodwer 3 Dec, 2022 @ 4:19pm 
can you make a mod version please
The Dark-Angel 20 Nov, 2022 @ 8:56am 
Imganed Useing the Dupe glich to hold A bunch of Metal 3
RudAwy 13 Nov, 2022 @ 4:42am 
Gut
LoganInnit 1 Sep, 2022 @ 1:22am 
if possible can you make a mod version of this pls
The One 4 Aug, 2022 @ 12:26pm 
Lol this only took 5 minutes to make
TheGoldNinja101  [author] 3 Jul, 2022 @ 6:10pm 
Yup, The only secret of Expanded inventories is simply add 1 line of code to Game.lua:
Game.defaultInventorySize = 1010

Literally, the Scrap Mechanic Lua References [scrapmechanic.com] contains that code in Game Class
AgentCryo 3 Jul, 2022 @ 4:28pm 
@THEGOLDNIJA101 your a modder?
TheGoldNinja101  [author] 3 Jul, 2022 @ 12:20pm 
Experimental results: I typed in "1030" and when I tested it, it goes to 1,024 slots. That's it's maximum maximum length too.
TheGoldNinja101  [author] 3 Jul, 2022 @ 11:44am 
I'm Sorry, I did try to put items with chest attribute at 2,000 slots. It's gone up as much as 1,024 slots. so I hit a near maximum value. I'll experiment with that anyways.
#ffdb00 Trollge 3 Jul, 2022 @ 4:59am 
hey make another one but instead 1,010 make as big as 2147483647 of 32_bits of it lets see how much limit we can hit
TheGoldNinja101  [author] 1 Jul, 2022 @ 2:14pm 
I tried that too. It's ultra crazy.
8BitBunnie 1 Jul, 2022 @ 2:01pm 
This mixed with your item overstack is crazy