Viva Piñata: Trouble in Paradise Recompiled
You are viewing a potentially older version of this package. View Latest Version
Install

Details

Date Uploaded
2 days ago
Downloads
12
Size
87KB
Dependency string
Pixelated_Team-ExpandedCrates-1.1.0

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.
  • 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
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.