Fallout 76
0 of 0

File information

Last updated

Original upload

Created by

SureshotM6

Uploaded by

SureshotM6

Virus scan

Safe to use

Tags for this mod

About this mod

Adds stack weights to stash boxes, vendors, workbenches, vending machines, containers, player trading, etc. (anywhere the item trading interface is used). This will be displayed in brackets next to the per-item weight for any stack.

Permissions and credits
Changelogs
Displays the total weight of stacks of items in all trading interfaces.  This is extremely useful if you are running out of space in your stash, or want to check weights while trading.

If you also want stack weights in your Pip-Boy, install Better Inventory as well.

Note that this mod will very likely break when the game is updated, same as any other mod that modifies swf files.  With that being said, Bethesda has already announced they will soon be including this feature (at least for the Pip-Boy inventory) in the next official update, so this mod may not be needed for long.

Compatibility:
This mod is not compatible with any other mod that modifies securetrade.swf.  Notably, it has been pointed out that Save Everything and ItemExtractorMod are incompatible.

To install, either:

Use the Fallout 76 Quick Configuration tool and install as a "Separate *.ba2 file"

-or-

Edit Project76Custom.ini / Fallout76Custom.ini (in %HOMEPATH%\Documents\My Games\Fallout 76\) to append to sResourceArchive2List:

[Archive]
sResourceArchive2List = StashStackWeights.ba2

and place StashStackWeights.ba2 in your Fallout 76 game Data folder (%PROGRAMFILES%\ModifiableWindowsApps\Fallout 76\Data\ or %PROGRAMFILES%\Bethesda.net Launcher\games\Fallout76\Data\).


Development Info
If anyone wants to build upon this mod (with attribution) or is just interested in how this works, the following steps were used:
  1. Extracted Interface\securetrade.swf from Data\SeventySix - Interface.ba2 using Archive2
  2. Used JPEXS to open securetrade.swf file
  3. Opened scripts/SecureTrade.as
  4. Selected the UpdateItemCard function
  5. Manually edited the P-Code for this function to:
    • Detect the "$wt" (pre-translated "Weight") item info property
    • Get the count of the currently selected list entry
    • Compute the stack weight from this info for counts more than 1
    • Append the stack weight to the weight string being displayed (this eventually ends up as an ItemCard_Standard)
  • Saved and repacked to a new archive using Archive2