Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Tuneups
Small fixes for other mods. Adventure Backpacks: its backpack check runs thousands of times a frame; this skips normal objects. Server Devcommands: find measures from you, not from the world's middle.
By Einherjer
| Last updated | 35 minutes ago |
| Total downloads | 23 |
| Total rating | 0 |
| Categories | |
| Dependency string | Einherjer-Tuneups-1.0.1 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2351README
Tuneups
Small fixes for other mods. Each fix only switches on when the other mod's code is what the fix was made for, and never saves or changes anything in your world.
Adventure Backpacks: a faster backpack check
Adventure Backpacks (2.2.10) checks whether an object is one of its backpacks every time the game asks "is this PC in charge of this object?". It does that by reading the object's name, and the game asks that question constantly: at our base, about 6,600 times a frame. Each name read also leaves a little garbage behind for the game to clean up.
Measured at our base (1 player, 144 creatures, about 6,000 building pieces), the check alone cost 3.2 to 4.3 ms of every frame (out of about 28 ms, or 36 FPS) across four test runs. On top of that, the game ran a full memory clean-up 83 times in 2 minutes, a small hitch each time, and all those name reads add to what it has to clean up.
The fix: a backpack never has network data of its own (Adventure Backpacks stops its network setup on purpose). So any object that does have network data can't be a backpack, and it skips the name check. Objects without network data still get Adventure Backpacks' own check, unchanged.
Is it safe?
- Same answers. For every object the game gets the same answer as with Adventure Backpacks alone. Only the work to get there is skipped.
- Nothing is saved or changed. No world data, no backpack contents, no inventory. Backpacks open, carry, upgrade and save exactly as before.
- It checks before it starts. When the game starts, Tuneups reads Adventure Backpacks' check and its network setup skip. It only switches on if both are exactly the ones this fix was made for. If Adventure Backpacks updates and changes them, the fix does nothing and says so in the log.
- It watches while it runs. Every backpack Adventure Backpacks makes is looked at. If one ever has network data, the fix switches itself off at once and Adventure Backpacks' own check is back.
- Easy to undo. Turn it off in the settings (works while you play), or remove the mod. Nothing stays behind.
- Doesn't need to match between players. It only changes how fast your own game answers, so players with and without it can play together.
Server Devcommands: find measures from you
Server Devcommands' find command (find boar) lists what it finds with a distance and shows the closest first. On the game that hosts the world (playing on your own, or hosting for friends) it measured those distances from the middle of the world, near the start, instead of from you. It only adds your position when it sends the command on to a server, and forgets it when the command runs on your own game.
The fix: right before find runs, Tuneups adds your position the same way Server Devcommands does for a server. The distances are then from where you stand, and the closest to you come first. A position you type yourself (find boar 5 x,z,y) is left as it is. Only the find command is touched; nothing is saved or changed.
Settings (anwo.Tuneups.cfg)
| Setting | Default | What it does |
|---|---|---|
| 1 - Adventure Backpacks | ||
| Faster backpack check | true | Objects with network data skip Adventure Backpacks' backpack name check (can be turned on and off while you play) |
| 2 - Server Devcommands | ||
| Find distance from you | true | find measures from where you stand instead of from the middle of the world (can be turned on and off while you play) |
Check that it works
BepInEx/LogOutput.log says Adventure Backpacks fix on and Find distance fix on when the game starts. If it isn't used, the log says why (for example, Adventure Backpacks isn't installed, or its check has changed).
Compatibility
Works with Adventure Backpacks 2.2.10 and Server Devcommands 1.115.0. With any other version, the fix only switches on if that version's check is still the same; otherwise it does nothing. Without those mods it does nothing at all.
About this mod
Written with Claude (Anthropic's AI model) for a two-player server, and tagged AI Generated on Thunderstore. Built for Valheim 1.0.17 (Deep North) and BepInEx 5.4.2351. The slow check belongs to Adventure Backpacks, and this mod is only a stopgap until it's fixed there.
Found a bug or a clash with another mod? Report it on the mod's Thunderstore page and include your BepInEx/LogOutput.log.