Fallout 4
0 of 0

File information

Last updated

Original upload

Created by

pra

Uploaded by

pra

Virus scan

Safe to use

Tags for this mod

About this mod

Removes the weird mattress from the Workshop menu under Decorations, if Buffout4 is installed.

Requirements
Permissions and credits
If you use Buffout4, there is a duplicate recipe for the floor mattress in the Workshop menu under Decorations > Decorations. This mod simply modifies the recipe so it no longer appears. The main recipe (Furniture > Beds) remains unaffected.

Compatibility
This mod is not compatible or necessary if you use WorkshopRearranged, since it repurposes that recipe.


Technical Background
The Workshop menus "Furniture" and "Decorations" are FormLists, which contain, among others, Keywords for submenus. A ConstructibleObject will appear within such a submenu, if it has that same Keyword as it's category.
The very first keyword in such a FormList menu has a special purpose: it determines the menu's name and icon. For the icon, there must be an ArtObject with that keyword set up.
Now, the object WorkshopNpcBedGroundSleep01 "Mattress" [FURN:00020C40] has two ConstructibleObjects. One of them, workshop_co_BedMattress [COBJ:0005A0CE], has the category WorkshopRecipeFilterFurniture02Beds "Beds" [KYWD:00118F5A]. This is the intended one, appearing under "Furniture > Beds". The other one, workshop_co_SleepMattress [COBJ:00118F4A], uses WorkshopRecipeFilterDecor "Decorations" [KYWD:0006D5A3]. This keyword isn't supposed to be a submenu, it's purpose is only to give the the "Decorations" menu it's name and icon.
In the vanilla game, if a keyword is used to provide name+icon, it is ignored for submenu generation purposes. Therefore, COBJ:00118F4A is not visible.
Buffout4's workshop menu optimization code, however, does not have such an exception, so this faulty ConstructibleObject became visible.


Special Thanks
Glitchfinder, for making me realize that I'm indeed not the only one with this issue, and for providing the explanation.



This fix might or might not be superseeded by UFO4P in the future, see https://afktrack.afkmods.com/index.php?a=issues&i=32786

No workshop menus were harmed.