Project Zomboid

Project Zomboid

1,368 ratings
Dynamic Backpack Upgrades [ B42/B41 ]
3
2
4
2
2
3
4
3
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
453.390 KB
30 Jun, 2023 @ 3:57pm
27 Jan @ 1:35pm
20 Change Notes ( view )

Subscribe to download
Dynamic Backpack Upgrades [ B42/B41 ]

Description
Are you tired of backpacks being too small?
Have you ever spent 3 hours digging around looking for a decent bag only to get stuck with the school bag?
Do you want a backpack upgrade mod that works with all modded backpacks?

This is the mod for you!

Introducing Dynamic Backpack Upgrades!
The only backpack upgrade mod that can upgrade EVERY inventory container item in the game!

Upgrade Mechanics Explanation

Each container item will now have 1 or 2 Upgrade Slots. Containers that can be worn on your back get 2 slots. all other containers get 1.

To add an upgrade you will need the upgrade item you want to add, a sewing needle, and at least 1 unit of thread.
To remove upgrades you will need a pair of scissors.

At level 10 tailoring, you can add an additional upgrade to any bag.
Upgraded bags retain their upgrades until the item is destroyed or the upgrade is removed. This means you can add an additional upgrade to other people's bags if you have level 10 tailoring.

Obtaining/Crafting Upgrade Items

All upgrade items can be looted in the world, and all but the best ones can be crafted.

The stats for each upgrade and spawn rates for each tier of item can be changed in the Sandbox settings.
These stats are always displayed as part of the Upgrade Items tooltip and changes dynamically based on the sandbox settings of the world.

Military upgrades cannot be crafted, but you can convert Military upgrades into their opposite type if you have level 10 tailoring. (Meaning you can turn a Military Capacity upgrade into a Military Weight Reduction upgrade)

Capacity Upgrades

Bag capacity upgrades have 2 components to them. Flat Bonuses and Multipliers.
The Bonus will add a flat amount of capacity regardless of what kind of bag its attached to.
The Multiplier will add a percentage bonus to the bags existing size, rounding to the nearest whole number.

Example; a 10% bonus for the duffel bag would increase its capacity from 18 to 20. the bonus from the multiplier is +1.8, rounded up to to a +2.

Formula; Capacity = math.ceil((BaseCapacity*(1+SumMultiplierBonus))+SumFlatBonus)

Container Capacity is still affected by the Organized and Disoragnized traits. This leads to some pretty insane bag capacities with modded backpacks. (Brita's)

Default values for Capacity upgrades;
Type
Multiplier
Bonus
Crafting Requirements
Cloth
+10%
+1
Tailoring 3
Denim
+20%
+1
Tailoring 5
Leather
+25%
+2
Tailoring 7
Military
+35%
+2
Loot Only

Weight Reduction Upgrades

Weight reduction upgrades only have 1 component, their Weight Reduction Efficiency bonus.
This value is not a flat bonus to the weight reduction of an item, and the math is fairly complicated compared to the capacity bonus.
The weight reduction increase is a bonus based on the difference between its current value and 100%.
Simply put, increasing a bags weight reduction efficiency by 50% will cause the items in the bag to weigh half as much as they did before. Increasing the efficiency by 25% will make the items in the bag weigh 25% less than they did before. and so on.

Example 1: the Big Hiking Bag has an 80% weight reduction value. giving it a 50% bonus adds an even 10% bonus (20*0.5) bringing it up to a 90% reduction.
Example 2: the Duffel bag has a 65% weight reduction, giving it a 35% bonus results in a bonus of 12.25, rounded to 12% totaling a 77% reduction
Example 3: the Military Backpack has a 87% weight reduction, giving it a 20% bonus would add 2.6 (13*0.2), rounded up to 3%, totaling 90%

Formula; Weight Reduction = 100-( (100-BaseWR)*ProductEfficiencyBonus )

Type
EffiencyBonus
Crafting Requirements
Cloth
+15%
Tailoring 3
Denim
+25%
Tailoring 5
Leather
+35%
Tailoring 7
Military
+50%
Loot Only

Is this mod compatible with Inventory Tetris?
Yes and no, I've never used inventory tetris so i don't know how it works. I've been told in the vanilla game it segments the bags into various compartments. and that does break with modified inventory size values. turning it into quote "one big box" but otherwise I've been told it does work functionally.

I can't pick up my backpack / My backpack is stuck in a container
Yeah.. this is an issue caused by the 50 weight hard limit on every character. The game will not let you pick up an item that would put your character's total weight over 50. This hard limit completely ignores strength or modified carry weight. (pack mule)
With that in mind, Weight reduction also doesn't apply until you have the bag equipped, and since you have to pick up the bag before you can equip it, there's a period of time where you have to be able to carry the full weight of the backpack. for most normal bags this isn't an issue.
But, when dealing with upgraded or modded bags, its possible to fill a bag so much that picking it up would put you over that 50 weight hard limit, which prevents you from picking it up in the first place.
Since the bag is probably equipped when you fill it, its actual weight wont be applied to the character. But if you drop the bag or put it in a container. it now weights the full weight which can prevent you from picking it back up.

To fix the problem, move the bag to the floor directly if its not already there. Once the bag is on the floor you can access its inventory like any other container and take some stuff out to reduce the weight, then you can pick up the bag and put it on, then put the stuff back into the bag from the floor. Its an awkward fix, but there's no way to fix it without pseudo-permanently changing the weight of items manually, which could cause tons of other issues.

Crafting Upgraded Items Warning
When you upgrade an item with this mod, that upgrade info is saved as part of the items Mod Data. If you use the upgraded item to craft another item, it will be deleted and the upgrades will be lost.
This isn't too likely, as very few mods use backpacks as crafting ingredients, but it's worth a warning anyway.

Known Issues
This mod has text clipping issues with pretty much any other mod that adds custom Tooltips.

Sometimes items have their stats reset.
Upgraded items will not automatically fix their stats by default. This was done to hopefully avoid conflicts with other mods that change item stats. If an item has unexpected stats then an option to Fix Upgrades will appear in the context menu for that item.

Translations;
Traditional Chinese ( CH ) by Roc Tseng
Russian ( RU ) by Fleshka and Arikahika
Simplified Chinese ( CN ) by LotharioSun
German ( DE ) by Kandlo
Spanish ( ES ) by Pela667
Portuguese ( PTBR ) by Consagradu
Turkish ( TR ) by Uyesta


I'm usually pretty active on my workshop pages comment sections but i also have a discord.
If you'd like to help translate one of my mods or just need help sorting something out feel free to join the discord and message me.
https://discord.gg/FgvW5vDyYV

Workshop ID: 2996978365
Mod ID: LazoloDynamicBackpackUpgrades
Popular Discussions View All (13)
4
9 May @ 3:42pm
Opening transfer liquid UI sometimes lead to errors
Polawris
3
18 Jul @ 4:55pm
Bags pushing capacity over 50.
Valkerion™
7
4 Dec, 2023 @ 3:10am
Tradisional Chinese translation
Roc Tseng
454 Comments
Dr. Lalaoz  [author] 27 Jan @ 2:07pm 
i've been told that a lot recently, i think the devs might have added a hard cap to the capacity of bags, just like the carry capacity of the player. i'll do some testing tomorrow
Wasabi Fighter 27 Jan @ 1:54pm 
I also tried adding more bags to the backpack and it is also only limiting 50 limit capacity.
I tired to auto fix and manually fix but would not work.
I am on Build 42. :(
Dr. Lalaoz  [author] 27 Jan @ 10:07am 
Loot tables are something i have to redesign in B42 because of the distribution changes. thats not something i'll be able to do for a while.
If you'd like to give me some concrete data then tell me which type of building you're finding what upgrades in and how many.
Parathorn 27 Jan @ 7:57am 
Seems no matter how low the drop chance I'm finding 2-5 upgrades in every other house. Unfortunate because otherwise a great mod.
Beathoven 24 Jan @ 10:55am 
could you update the DE translation the Ä,Ö,Ü are just "?"
paterashu 23 Jan @ 7:45pm 
same issue with @qwertysparrow i tried only this mod yet it limits the max capacity 50
OgnirRats 23 Jan @ 11:22am 
@Art Tippet
I am using both and it seems to be working fine. There might be issues if you upgrade a level in the Authentic Z backpack tiers and you have upgrades (strap, cloth from this mod) in the way that you can lose them but I am unsure if its consistent.
Art Tippet 22 Jan @ 3:01pm 
Can this be used in combination with the Authentic Z mod expansions?
qwertysparrow 22 Jan @ 2:57am 
I have two military upgardes to my military backpack but it sets a hard limit at 50 and not 79. I dont know how to fix this
Art Tippet 19 Jan @ 7:29am 
Ciao! @Dr. Lalaoz
I translated your mod into Italian, thanks for your work and for sharing it with the community!