You are viewing a potentially older version of this package. View all versions.
Pixelated_Team-ExpandedCrates-1.0.0 icon

ExpandedCrates

Overrides how many items fit in crates

Date uploaded 4 days ago
Version 1.0.0
Download link Pixelated_Team-ExpandedCrates-1.0.0.zip
Downloads 10
Dependency string Pixelated_Team-ExpandedCrates-1.0.0

README

Expanded 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.

Credit:

  • All Credit goes to SolarCookies
  • For any help creating your own mod, check out the VP Modding Discord