Scrap Cleanup Station

Last updated for version `1.8.0-BETA-7`

*Main article:* Architect

Instead of using `scrapall` console command or various settlement scrapping mods and break pre-combined meshes and causing the game to lag at some point in the game, the "Scrap Cleanup Station" allows to cleanup and manage scrap in a settlement without destroying pre-combined meshes.

## Recipe

* Aluminum 2
* Steel 6
* Wood 8

## General

This is not supposed to be as thorough as `scrapall` console command works. Not all objects in settlements will be removed (on purpose) and thus leave no broken Navmesh behind.

Objects that are purposely not scrapped: Containers, Activators, Prefab Buildings (usually), objects that give complex scrap outputs. The cleanup process has a limited range, so in really large settlements the station may be moved to another place to scrap more objects.

Not all scrap yields are exactly the same as manually scrapping, but its close enough that it won't matter. Obviously in some cases some objects leftover will be floating in the air.

* Shrubs, leaves, and vines no longer give any scrap.
* The amount of Wood that many types of trees give is reduced, mainly because the player can scrap so many trees.
* Candles give Wax.
* Wild Plants, that weren't in vanilla scrap recipes, will give their appropriate item when scrapped.

### Scrapall

❗ `scrapall` is not recommended! Its known for destroying settler navigation points (Precombined Meshes) and scrap objects outside of a settlement. In rare cases it can lead to a CTD. By scrapping precombined meshes (navmeshes) the game is forced to re-render in real-time thus performance suffers especially with increased game progress.

### Scrap Everything

1.2.0:129
1.2.1:27
1.3.0:86
1.4.0:40
1.4.1:7
1.4.5:11
1.4.7:3
1.4.8:30
1.6.0:149

In early versions1.2.0:129 of Horizon, Scrap Everything (SE) was supported and almost required. Since Horizon 1.7.0:38, Scrap Everything is not required anymore. Patches were specifically tailored for Horizon's purpose; to be able to clean up settlements without the fear of accidentally deleting objects that probably shouldn't be deleted. Objects suchs as, roads, sidewalks, foundations, buildings, etc.

### PreCombines and PreVis

Many objects are PreCombined, PreVisibility objects and may cause serious performance problems over time when using `scrapall` and/or scrapping mods. Even Horizons **Scrap Cleanup Station** does touch PreCombined content! Its visible when checking the FormList records via FO4Edit. Static objects are almost exclusively Precombined objects and marked `[Placed Object]` in a Cell/Worldspace category.

Precombined objects are used to increase performance and load and make the game stable to some point. When these objects are touched in any way, overridden by another object, just copying the record to another plugin/mod already cause the cell/worldspace the object is attached to, become unstable. All the PreCombined objects are stored in the Cell records and are attached to the TimeStamp. As soon as the TimeStamp for such an object has changed, stuttering, FPS drops, Portals, distortion, etc. may be present ingame.

To say the game will brake because these objects are touched is not correct, but the chance it will, does increase. There is a difference between interior and exterior cells, while exterior cells are less fragile than interior cells.

## Settlement Salvaging

❗ Any items left on the corpses will be deleted. It is recommended to not leave the settlement until it finishes and to save the game before using.

### Hide/Show Workbench

This option allows to hide or show any workbench in any settlements. This feature replace some of the Control Panels located in some settlements, while expanding these features even further.

### Remove All Corpses

This option will remove NPC corpses only if they are actually dead, unlike manual scrapping.  Corpses not looted manually will remain in the settlement when "Remove All Corpses" is activated, vice versa, when looting corpses before using "Remove All Corpses", corpses should disappear appropriately.

### Hide Prefab Buildings

Allows to hide buildings that are normally blocked from manual scrapping. This feature replace some of the control panels located in some settlements, while expanding these features even further. There are no scrap materials given/required for hiding/showing prefabs. Allows to toggle 3 different layers, depending on the settlement's specific options;

* Hide Prefab Buildings (Main Layer)
* Hide Prefab Buildings (2nd Layer)
* Hide Prefab Buildings (3rd Layer)

"Hide Prefab Buildings" includes many buildings in various settlements (more info further below).

### Restore Prefab Buildings

"Hide Prefab Buildings" can be undo:

* Restore Prefab Buildings (Main Layer)
* Restore Prefab Buildings (2nd Layer)
* Restore Prefab Buildings (3rd Layer)

### Remove All Invisible Markers and Effects

NPC markers such as invisible furniture markers can be removed, no more hammering in Sanctuary Hills!

### Scrap All Categories Below

This will scrap everything tied to the category below:

* Scrap Shrubs, Plants, Vines, and Leaves
* Scrap Trees and small Rocks
* Scrap Debris and Garbage
* Scrap Candles, Decorations and Signs
* Scrap Junk Objects and some Furniture
* Scrap Structural Pieces and some Buildings

Not all object will be scrapped automatically by the station. Some Items still need some extre care and have to be scrapped manually, especially container objects.  Certain Scrap options will scrap more than said. Example: "Scrap Shrubs, Plants, Vines, and Leaves" will scrap trees also (e.g. the big tree in Sanctuary Hills).

## Gallery

* Menu
* Notification
* Red Rocket Vanilla
* Red Rocket Layer 1
* Workbench
* Workbench Removed
* Workbench Removed (Location)

## Technical Issues

🌀 *The content below transcludes to Technical Issues.*
* Scrapping settlement objects such as Leafs or Trees will yield to lag and FPS loss over time. Since those objects are "Static" objects which in turn are almost always PreCombined objects. The Scrap Cleanup Station and the Settlements Enhanced addon allow to scrap these objects which in turn decrease performance over time. Strictly speaking, both the Scrap Cleanup Station and the Enhanced Settlements cause FPS issues, performance issues, as long as those cells are not recombined.
* Certain settlements contain junk items that are not automatically picked up by the "Scrap All Categories Below" command. The player has to scrap them manually.
	+ Example: Home Plate (almost all container, etc.), ...
	+ Same applies to containers, or complex scrap (which cannot be removed on purpose).
* Strictly speaking, corpses are defined as "containers" by the game, and they also follow this logic. Thus corpses not looted manually will remain in the settlement when "Remove All Corpses" is activated, vice versa, when looting corpses before using "Remove All Corpses", corpses should disappear appropriately. Its possible to "Remove Corpses" when leaving the settlement cell and re-enter it though.
	+ Some corpses may not auto-scrap due to quest triggers1.8.0.BETA-1:237.
* Settlement objects scrapped by the station do not always have the identical scrap, that the player receives, when scrapping by hand. That's partly how it's meant to be.1.8.0.BETA-1:237
* The "Scrap Shrubs, Plants, Vines, and Leaves" selection will scrap sometimes more settlement objects than expected.
* "Scrap All Categories Below" may break navmesh (AI navigation points) thus AI seek cover behind scrapped trees, AI also wander around weirdly at day-/night-time and group at certain key points in a settlement.
* Sanctuary Hills: If the entire settlement is scrapped, the contents of the trash can containing the 2 grenades will disappear. This might be valid for other settlements. Needs testing.
* Sanctuary Hills: choosing: "Scrap Shrubs, Plants, Vines, and Leaves" will Scrap the big Tree also.

## See Also

* Architect
* Enhanced Settlement
* Guide/Settlement Building Limitations

## References

1. ↑ https://www.creationkit.com/fallout4/index.php?title=Category:Navmesh
2. ↑ https://steamcommunity.com/app/377160/discussions/0/2579854400736484264/
3. ↑ https://steamcommunity.com/app/377160/discussions/0/154643214753572566/#c154643249631641924
4. ↑ https://www.reddit.com/r/falloutsettlements/comments/jjejky/so\_for\_some\_reason\_my\_settlers\_constantly\_group/gacthut/?utm\_source=reddit&utm\_medium=web2x&context=3
5. ↑ https://steamcommunity.com/app/377160/discussions/0/1480982338943782629/#c3726075043715146084
6. ↑ https://www.nexusmods.com/fallout4/mods/5320
7. ↑ https://discord.com/channels/436824471295361025/436840778635935754/834886114342862898
8. ↑ https://www.nexusmods.com/fallout4/mods/46453
9. ↑ https://discord.com/channels/436824471295361025/436824471295361027/950725737499996200