SonicChestFilters
Filter and sort open chests, and find items in nearby containers.
About this mod Author’s original text
Sonic Chest Filters
Valheim BepInEx mod for chest filter controls on nearby containers.
Identity
| | |
| --- | --- |
| Author | SonicDM |
| Plugin name | Sonic Chest Filters |
| Plugin GUID | com.sonicdm.valheim.sonicchestfilters |
| Assembly | SonicChestFilters.dll |
| Version | 1.0.1 |
| Config file | BepInEx/config/com.sonicdm.valheim.sonicchestfilters.cfg |
Features
- Filter: a live Jötunn Valheim-styled text box on the open chest. Occupied slots that do not match the query are hidden; empty slots stay usable for deposits. Matching uses * wildcards and substring search on localized names, tokens, and prefabs.
- Clear Filter: shows every slot again and clears the box.
- Sort: one button. Merges compatible stacks, then orders items by type, localized name, and quality. Click again to reverse. Requires chest ownership; does not sort while an item is being dragged.
- Find items: console/chat command locate glows nearby eligible chests (same matching rules as the filter). Examples: locate Resin, locate (held item), locate clear.
When Nearby Crafting Forked is installed, this mod’s locate command is not registered. Use NCF’s nearby / locate instead. Filter and Sort still work.
Filter is visual-only and resets when the chest is closed. Sort writes the new layout into the container inventory.
Configuration
The configuration file is generated at:
BepInEx/config/com.sonicdm.valheim.sonicchestfilters.cfg
Settings can also be changed through a compatible mod-config interface (for example Official BepInEx Configuration Manager).
Config groups:
- [General] Enabled, AutoReloadConfig, DebugLogging
- [Containers] range and eligibility used by item locate
- [UI] EnableFilterBox, EnableSortButton
- [Item Locate] Enabled, MaxHighlights, DurationSeconds, GlowColor (Enabled is ignored while Nearby Crafting Forked is loaded)
Installation
Mod manager (r2modman)
- Install Jötunn (and BepInExPack) then Sonic Chest Filters, or import the local package into the profile.
- Launch once so the config file is created.
Recommended r2modman plugin layout (same pattern as other managed mods):
BepInEx/plugins/SonicDM-SonicChestFilters/
SonicChestFilters.dll
manifest.json
README.md
CHANGELOG.md
icon.png
Manual
- Install BepInExPack for Valheim.
- Place SonicChestFilters.dll in BepInEx/plugins/ (or a subfolder as above).
Credits
- Author: SonicDM
Build (developers)
Build against a local folder of Valheim / BepInEx managed DLLs. Pass that folder with -LibDir (do not commit those refs)..\build.ps1 -LibDir "path\to\ValheimRefs".\build.ps1 -LibDir "path\to\ValheimRefs" -Package.\package.ps1 -LibDir "path\to\ValheimRefs".\package.ps1 -SkipBuild
package.ps1 builds a -compatible zip under dist/ per package docs:
- manifest.json, README.md, icon.png (256×256), optional CHANGELOG.md, and SonicChestFilters.dll at the zip root
- Validates manifest fields, UTF-8 readme, and icon dimensions before packing
Release (developers)
GitHub-hosted Actions cannot compile this mod (Valheim Managed DLLs stay local). Releases are cut from your machine:
- Bump PluginVersion, csproj `, and manifest.json version_number` together.
- Add a ## X.Y.Z section to CHANGELOG.md.
- Package locally (.\package.ps1), then publish:.\release.ps1 -SkipPackage # use existing dist\SonicChestFilters-X.Y.Z.zip
or.\release.ps1 # package then release
release.ps1 validates versions, tags vX.Y.Z, pushes, and creates a GitHub Release whose body is the matching CHANGELOG section, zip attached. The Release workflow on tag push refreshes those notes if the tag lands first.
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.
Install these first, or the mod will not work: