Project Zomboid

Project Zomboid

JB Max Capacity Override
Visualizzazione di 1-10 elementi su 14
< 1  2 >
Aggiornamento: 15 ott, 9:36

added patches for CC, SOTO and True Smoking to defer whichever function won the loading war

Aggiornamento: 5 set, 19:24

When using "Place Item" with a big ass bag, the weight is the lesser of 49 or the actual bag weight so y'all can make your bases all pretty

Aggiornamento: 31 lug, 18:14

Fixed ItemContainer.getEffectiveCapacity patch to return the correct capacity. Did a little more tidying up.

Aggiornamento: 31 lug, 10:53

🆕 07/31/25
Re-added mod data override for single containers. Example usage:
yourContainer:getModData()["JB_MaxCapacityOverride"] = { capacity = 75 }

✅ Works if the container type exists in the lookup table
✅ Compatible with bags and sprite containers
❌ Not yet compatible with trunks (WIP)
⚠️ Mod data will be lost if a sprite container is moved

left an errant test print that I'll remove soon...

Aggiornamento: 29 lug, 17:05

I broke it

Aggiornamento: 29 lug, 14:50

Added mod data capacity override for single containers. To use:

yourContainer:getModData()["JB_MaxCapacityOverride"] = { capacity = 75 }

It still checks if your container type is in the lookup table first.

Also tightened the code a bit.

Aggiornamento: 11 apr, 20:08

yea, so I uploaded the right version this time

Aggiornamento: 11 apr, 20:01

didn't really get anything else done this week, except:
fixed returning a longgggggggggggg float in ItemContainer_getEffectiveCapacity
thanks for pointing that out Skimble Shanks!

Aggiornamento: 6 apr, 17:55

1) Added a check "if containerType exists" before calling Nepenthe's fix to cut down on errors in the logs
2) Re-did the transferTime function to be more friendly
3) Vehicle Mechanics UI now shows the correct "trunk" capacity
4) Vehicle damage affects trunk capacity
5) Changed hard-coded message to the RD text "You can't do that!" so there will be no translation files today, satan
6) Got rid of check if "container type exists" in addContainer because really, it did nothing important

Aggiornamento: 3 apr, 20:51

Changed the formula for transfer time. but I'm not happy with it, so it will be improved.
Implemented Nepenthe's speed fix from "Remove Bag Slowdown" with permission.