JB Max Capacity Override [42 SP Only]
Изображение 1 из 2. Материалы автора из Steam Workshop.
О материале
«JB Max Capacity Override [42 SP Only]» — материал мастерской Project Zomboid. Карты, транспорт, оружие и моды для выживания. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
Pure Lua Max Capacity Override (v2.8)
Now with 99.79% less jank!
Compatible ONLY with Build 42.12+ SP — it does NOT work with Build 41.
Dear Players, I've added some patches for CC, SOTO and True Smoking but in the end, we're all trying to muck with the same core functions. This means that this mod may not work as expected when any of those mods are active.
Also, I hate to be the bearer of bad news but because this mod depends on overriding core java functions to work as intended, I doubt it will ever work properly in MP.
Dear Modders, I've added a late load to my functions that defers to the mods above if they're active. If I'm stepping on your toes, let me know and I'll get a patch in here to play nice.
Requires Starlit Library by albion for correct tooltip capacity display.
[b]Regarding the "require=\StarlitLibrary" line in the mod.info:[/b]
As of Build 42, the backslash is required.
[url=https://pzwiki.net/wiki/Mod.info]https://pzwiki.net/wiki/Mod.info[/url]
This mod does nothing on its own. It’s intended for your friendly neighborhood modder.
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)
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
-
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 some likes and awards on Nepenthe’s workshop: https://steamcommunity.com/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
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.