You are viewing a potentially older version of this package. View all versions.
Ageous27-NoAutoPickup-0.1.2 icon

NoAutoPickup

Turns auto-pickup off near campfires, hearths, tames, and Item Drawers so tossed loot stays on the ground.

Date uploaded 2 hours ago
Version 0.1.2
Download link Ageous27-NoAutoPickup-0.1.2.zip
Downloads 15
Dependency string Ageous27-NoAutoPickup-0.1.2

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 icon
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.2350

README

NoAutoPickup

Client-side Valheim mod. Turns auto-pickup off near campfires, hearths, tamed animals, and Item Drawers so tossed items stay on the ground (drawers can vacuum them, tames can eat). Walking out of range restores auto-pickup to whatever it was before.

The vanilla AutoPickup hotkey (default V, or the controller JoyAutoPickup combo) can turn it back on while you are still in a zone. When the mod changes the flag, it shows the same AutoPickup: On / AutoPickup: Off HUD message as the game.

Why

In co-op, people dump loot for Item Drawers to swallow. With auto-pickup on, the nearest player becomes the vacuum instead. Same problem when you toss food for a tame and walk back.

Range

Uses the largest of:

  • Valheim default auto-pickup range (2)
  • Live Player.m_autoPickupRange (BiggerPickupRadius and similar)
  • Item Drawers DrawerPickupRange from kg.ItemDrawers.cfg

On the current pack that is typically 20 m because drawers are set to 20.

Install

Client only. Requires BepInExPack Valheim. Does nothing useful on a dedicated server.

Install with a Thunderstore mod manager, or drop NoAutoPickup.dll into BepInEx/plugins (a subfolder is fine).

Config

Generated at BepInEx/config/Ageous.NoAutoPickup.cfg after first launch.

CHANGELOG

Changelog

0.1.2

  • Auto-pickup is only forced off when you enter a fire / tame / drawer zone. The default game bind (V, or whatever AutoPickup is mapped to) can turn it back on while you stay there.
  • When the mod itself flips the flag, it shows the vanilla AutoPickup: On / AutoPickup: Off HUD message ($hud_autopickup:).

0.1.1

  • Access Player.m_enableAutoPickup through Harmony FieldRef so Unity no longer throws FieldAccessException every AutoPickup tick.
  • Skip vanilla Player.AutoPickup while you are inside an exclusion zone. Manual E pickup is unchanged.

0.1.0

  • Initial client auto-pickup guard for Valheim 1.0.
  • Turns auto-pickup off near campfires, hearths, tamed animals, and kg Item Drawers, then restores the previous setting when you walk away.
  • Exclusion range is the largest of vanilla 2 m, live Player.m_autoPickupRange, and Item Drawers DrawerPickupRange.