Project Zomboid

Project Zomboid

1,265 ratings
Dynamic Backpack Upgrades [ B42/B41 ]
2
2
4
2
2
3
4
3
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
453.390 KB
Jun 30, 2023 @ 3:57pm
Jan 27 @ 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
May 9 @ 3:42pm
Opening transfer liquid UI sometimes lead to errors
Lextella
2
Mar 27 @ 3:15am
Bags pushing capacity over 50.
Valkerion™
2
Jan 16 @ 7:44pm
Errors when clicking bags and many more when crafting, trying to troubleshoot.
Valkerion™
436 Comments
Jusluw May 4 @ 10:15am 
yo anytime i looked at transfer liquid stuff errors pop up
Tenebrous Apr 24 @ 7:37am 
When I click the fix upgrade thing nothing happens
Bumbullbee Apr 21 @ 10:55am 
Hey when I have the Knife Removes Upgrades option enabled, I get an error every time that I try to open the crafting menu. The crafting menu will fail to open at all with this option enabled. I'm on latest unstable build. took me forever to find this issue, since the error itself doesn't mention this mod, but says there's a Vanilla LUA issue. :deadweight:
진지사피언스 Apr 20 @ 9:30am 
It doesn't increase more than 50.
Noisy Koi Apr 18 @ 2:38pm 
also the upgrades seem to have a weird sprite surrounded by white pixels when the upgrades are placed on the ground or dropped
Noisy Koi Apr 18 @ 2:07pm 
it would also be really cool to be able to "upgrade" bag attachment slots onto bags tho probably with a few more upgrade slots for attachments as opposed to just one per bag, I know there are a few mods that add bag attachments but they seem to mostly require you to craft bags into new versions of themselves whereas I like how this one adds the slots to all modded backpacks as well, perhaps for compatibility's sake, most of the attachment slots could be placed on the shoulder straps? like a flashlight slot on the shoulder, tool slots on the chest (on the straps), bottle slot right behind the shoulder (a little clipping should be fine with most bag models so long as it looks like the bottle is close to the body to avoid it looking like its hovering)
Noisy Koi Apr 18 @ 2:03pm 
it seems the weight reduction upgrade doesn't effect bag attachments.
To be more specific, having a bedroll equipping on the bag slot gives it less weight reduction than having it inside the bag, tho it does still reduce its weight, just not nearly as much.
ethanw119w Apr 13 @ 11:07am 
SHOW ERROR. I unsubscribed this.
Lzhec Mar 29 @ 8:41pm 
Приветствую. Есть проблема. В настройках песочницы изменяю максимально количество слотов, но это не дает результата, на всех сумках так и остается 2 возможных слота для улучшения. Буквально 2-3 недели назад такого не было. В чем может быть проблема?

Так же, если я получаю возможность установки дополнительного слота через поднятие уровня навыка шитья, то в информации о предмете указывается что могу поставить больше улучшений, но фактически их можно установить не более двух.
Dr. Lalaoz  [author] Mar 26 @ 12:21pm 
It sounds like starlit opted to rewrite the tooltip code rather than saving it and running it later. but if they did it right it shouldn't have broken anything in theory. so i don't know. you'll have to ask them.