
You are viewing a potentially older version of this package. View Latest Version
ExpandedCrates
Overrides how many items fit in cratesExpanded Crates
Overrides how many items fit in crates. The default is 32, But you can set CrateCapacity in the F4 menu if you need too, setting it to 0 makes the mod use the default number.
How it works:
Crates size their storage from the selected class data, which is where the usual limit of 4 comes from when selecting pinata. The mod hooks entityAvatarPinataCrateGetStorageSlot and rewrites maxObj in the moment before the crate allocates its storage buffer. The game then uses maxObj to know when to stop letting you select items, Since we already set it to the new amount the game will let you pack up to that limit.
Known Issues:
- Only applies to new crates.
- If the CrateCapacity is set too high you might cause heap corruption.
- Should be fixed: Pinata Central crates would expect increased input too, mod no longer applies to any crates with a starting max capacity of 1 (quick fix)
- Set FixCrate variable to 1 to retroactively fix this - Don't have any other crates out when you do this
Credit:
- All Credit goes to SolarCookies
- For any help creating your own mod, check out the VP Modding Discord