ckforgame-Valheim_ItemInfiniteStack icon

Valheim ItemInfiniteStack

Eliminates item stack limits while strictly preserving 1-item-per-slot for equipment, durability items, and quality gear. Includes clean UI numbers, split wheel controls, and stack consolidation.

CHANGELOG

Changelog

All notable changes to Valheim.ItemInfiniteStack will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[1.0.1] - 2026-09-25

Fix bugs

[1.0.0] - 2026-09-25

Added

  • Infinite Stack System:
    • Eliminates item stack limits for materials, resources, consumables, arrows, and valuables.
    • Safe maximum bound of $999,999,999$ preventing 32-bit signed integer overflow.
    • Optional GlobalStackMultiplier to scale vanilla stacks instead of a flat limit.
  • Intelligent 1-Per-Slot Protection Engine:
    • ProtectDurabilityItems: Strictly preserves 1 item per slot for weapons, armor, tools, and torches with durability.
    • ProtectQualityItems: Preserves 1 item per slot for items with upgrade tiers ($>1$).
    • ProtectEquipment: Preserves 1 item per slot for all combat and utility equipment types.
    • PreserveVanillaOneStack: Maintains vanilla 1-stack size for unique non-stackable items.
    • CustomBlacklist & CustomWhitelist comma-separated configuration options.
  • Performance & Overflow Protection:
    • 64-bit safe arithmetic in Inventory.CanAddItem and Inventory.FindFreeStackSpace.
    • Batch chunk-based adding in Inventory.AddItem, replacing vanilla's $O(N)$ 1-by-1 increment loop.
  • Clean UI & Display Formatting:
    • Replaces vanilla {0}/{1} (15/999999999) text with clean AmountOnly or Compact (e.g. 1.5k, 25M).
    • Zero-allocation string caching for small numbers.
    • Automatic hiding of count for 1-stack items and single items.
  • Split Dialog Usability:
    • Mouse scroll wheel support for split slider.
    • Precision modifiers (Shift for $10\times$, Ctrl for $100\times$).
    • Quick keys: Home (Min: 1), End (Max: N), H / Space (Half: N/2).
  • Stack Consolidation:
    • One-key consolidation hotkey (Delete) to merge fragmented duplicate stacks into single slots.
    • Optional EnableAutoConsolidateOnOpen to merge stacks automatically upon opening chests.
  • Weight Scaling:
    • Configurable weight multiplier for stackable items (0.0 to 1.0).
  • Documentation:
    • Complete architecture, concept philosophy, technical specifications, and configuration guides in docs/.