Project Zomboid

Project Zomboid

86 hodnocení
JB Max Capacity Override
2
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Velikost souboru
Přidáno
Aktualizováno
570.611 KB
25. bře. v 16.36
5. zář. v 19.24
Poznámky ke změnám (13) – zobrazit

Klikněte na „Odebírat“ pro stažení položky
JB Max Capacity Override

Popis
Pure Lua Max Capacity Override (v1.1)
🚀 Now with 98.355% less jank!

Compatible ONLY with Build 42 — does NOT work with Build 41.



📝 Summary
This mod provides a pure Lua MAX_CAPACITY override without needing any Java mod installations. It works on:
  • "Equipable" Bags
  • Crates / Containers
  • Truck beds / Trunks
  • Sprite containers (with some limitations)



Regarding the "require=\StarlitLibrary" line in the mod.info: As of Build 42, the backslash is required. https://pzwiki.net/wiki/Mod.info



⚠️ This mod does nothing on its own. It’s intended for your friendly neighborhood modder.



Requires Starlit Library by albion for correct tooltip capacity display.



🆕 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
❌ Mod data override not yet compatible with trunks (WIP)



⚒️ Current To-Do List
  • [ ] Add equipped weight override
  • [ ] Handle right-click grab bug
  • [ ] Consider player inventory capacity override (probably not)
  • [ ] Fix transfer times for heavy items in world context (borked right now)



📌 Side note: The World Object Context Menu can eat me.



💨 Performance Boost
Includes Nepenthe's speed fix from Remove Bag Slowdown (used with permission).

💌 Drop likes and awards on Nepenthe’s workshop:
https://gtm.steamproxy.vip/id/drstalker/myworkshopfiles/

⚠️ This fix does NOT bypass the “Heavy Load” moodle slowdown.



🧪 Argument Structure (for addContainer)
("type", capacity, preventNesting, _equippedWeight, _transferTimeSpeed)

type | string | Container type (use getType() to find it)
capacity | number | Max weight container can hold
preventNesting | boolean | Prevents nesting same type containers
_equippedWeight | number | (optional) Weight of equipped container
_transferTimeSpeed | number | (optional) Transfer time override

✅ Error checking included for capacity and preventNesting.
❓ Equipped weight and transfer speed are optional — defaults to nil.

📦 How To Use
[ ] Create a new Lua file
[ ] Add and customize the following code:

local JB_MaxCapacityOverride = require("JB_MaxCapacityOverride")

JB_MaxCapacityOverride.addContainer("Bag_ShotgunDblSawnoffBag", 125, true, nil, 30)
JB_MaxCapacityOverride.addContainer("militarycrate", 180, true)
JB_MaxCapacityOverride.addContainer("TruckBedOpen", 500, false)

[ ] Add to your mod.info: require=\JB_MaxCapacityOverride

[ ] Upload to the workshop



🐛 Found a bug? No you didn't. Really? Aight, report it here please:
🔗 https://github.com/mikej1977/JB_MaxCapacityOverride




Workshop ID: 3452113500
Mod ID: JB_MaxCapacityOverride
Populární diskuze Zobrazit vše (1)
15
před 2 hodinami
Players Inventory
Flexible Games
Počet komentářů: 86
Flexible Games 6. zář. v 22.55 
Love that your keeping this updated! I phase in and out of my play with PZ and hate when I return and stuff is out of date. So major kudos! One of my mods just straight up disappeared and I don't know which as the ID no longer exists.
jbdiablo  [autor] 5. zář. v 19.26 
Added logic so y'all can 'place' your giant bags almost anywhere, Cheers!
Achille12345 1. zář. v 5.24 
I'm using steam version yeah.
jbdiablo  [autor] 31. srp. v 10.58 
actually, the creator of Starlit had the idea, I'm just asking it.
jbdiablo  [autor] 31. srp. v 10.58 
@Achille12345 I just had a thought - are you using this mod without steam or with the -nosteam option?
Achille12345 31. srp. v 3.38 
Yeah there was an typo or something in the mod.info file requirement \StarlitLibrary I changed it to StarlitLibrary and now I can activate the mod.
neobenmike 15. srp. v 22.56 
No worries, already got it working, thanks
jbdiablo  [autor] 15. srp. v 20.33 
@neobenmike - which version of 42 are you running?
neobenmike 15. srp. v 18.11 
Can't enable mod due to requirement typo: \StarlitLibrary instead of just StarlitLibrary
jbdiablo  [autor] 31. čvc. v 10.58 
Re-uploaded the mod data enhancement. See description on how to use it and the limitations.

Thank you Eizen for the inspiration and testing!