GenesisProject-zzzGenesisItemStacks icon

zzzGenesisItemStacks

Genesis Item Stacks is a highly configurable Valheim mod that lets you customize stack sizes and weights for all stackable items in the game โ€” including both vanilla and modded items.

CHANGELOG

๐Ÿ“œ Changelog - Genesis Item Stacks

All notable changes to Genesis Item Stacks will be documented in this file.


[2.1.0] - Version Checks

  • Fixed critical errors for use in server with version check

[2.0.0] - ๐Ÿ—‚๏ธ The Category Revolution

๐Ÿš€ Major Features

  • ๐Ÿ—‚๏ธ Item Category System - Items are now automatically categorized into 16 different types!

    • Ores, Woods, Stones, Foods, Potions, Ammunition, Trophies, Valuables, Jewelry, Materials, Tools, Weapons, Armor, Seeds, and Crops
    • Smart detection using ItemType and name patterns
    • Supports both vanilla and modded items
  • ๐Ÿ“ˆ Category-Based Multipliers - Apply stack and weight multipliers by category!

    • Ore Stack Multiplier (Default: 1.0x) - Double your ore stacks!
    • Wood Stack Multiplier (Default: 1.0x) - Carry more wood!
    • Food Stack Multiplier (Default: 1.0x) - More food for your adventures!
    • Potion Stack Multiplier (Default: 1.0x) - Double your meads and potions!
    • Ammunition Stack Multiplier (Default: 1.0x) - Triple your arrows!
    • Trophy Stack Multiplier (Default: 1.0x) - Stack those trophies!
    • Valuable Stack Multiplier (Default: 1.0x) - More precious items!
  • ๐Ÿ” Enhanced Item Detection

    • Valuables: Detects Amber, Ruby, Coins, Pearls, Crystals, Gems, and even Do or Die valuables (Eitr, Remnants, Spirit items, etc.)
    • Jewelry: Detects Necklaces, Rings, Amulets, Pendants, Bracelets, and Circlets
    • Crops: Vanilla crops (Carrot, Turnip, Onion, Barley, Flax), Mistlands crops (Jotun Puffs, Magecap), and common modded crops (Wheat, Corn, Potato, Tomato, etc.)
    • Tools: Now includes Torches as tools!

๐Ÿ› ๏ธ Technical Improvements

  • ๐Ÿ›ก๏ธ Enhanced Null Safety - All potential NullReferenceExceptions eliminated

    • Triple-layer protection for ItemData, ItemDrop, and Prefabs
    • Null-safe operators (?. and ??) used throughout
    • Safe Dictionary access with TryGetValue
    • Smart string handling with fallbacks
  • ๐Ÿ—ƒ๏ธ Organized Code Structure

    • New dedicated ItemCategories.cs for category logic
    • Helper methods: IsCropItem(), IsValuableItem(), IsJewelryItem()
    • Cleaner main file with better separation of concerns
  • ๐Ÿงพ Better Logging

    • Category distribution summary in debug mode
    • Null m_itemData tracking
    • More detailed item detection logs

๐ŸŽฎ Gameplay Impact

  • โš–๏ธ Flexible Configuration Priority
    1. Global Multipliers (highest priority)
    2. Category Multipliers (medium priority)
    3. Individual Item Configs (lowest priority)

๐Ÿ› Bug Fixes

  • Fixed potential crashes from null m_itemData
  • Fixed potential crashes from null m_name in item detection
  • Fixed potential crashes from null prefab names
  • Improved item detection accuracy for modded items

[1.1.1] - 2024 - ๐Ÿ›ก๏ธ The Stability Update

๐Ÿ› Bug Fixes

  • Fixed rare crashes during item scanning
  • Fixed config file corruption issues
  • Improved error handling in ObjectDB patches
  • Fixed items not applying changes on server join

๐Ÿ› ๏ธ Technical Improvements

  • Better handling of malformed item data
  • Improved config file validation
  • Enhanced logging for troubleshooting
  • Optimized item scanning performance

[1.1.0] - 2024 - ๐ŸŒ The Multiplayer Update

๐Ÿš€ Major Features

  • ๐Ÿ”„ ServerSync Integration - Full server synchronization!
    • Server enforces configuration on all clients
    • "Lock Configuration" setting for server admins
    • Automatic config sync when joining servers
    • Version checking for compatibility

โœจ New Features

  • ๐Ÿ”’ Configuration Locking - Server admins can lock settings
  • โ™ป๏ธ Live Config Reload - Changes apply immediately without restart
  • ๐Ÿงฉ Network Compatibility - Everyone must have the mod (enforced)

๐Ÿ› ๏ธ Technical Improvements

  • Improved config change detection
  • Better handling of server/client sync
  • Enhanced logging for multiplayer sessions
  • Config validation on server join

[1.0.0] - 2024 - ๐ŸŒŸ The Genesis

๐Ÿš€ Initial Features

  • โœจ Global Stack Multiplier - Multiply all item stacks at once!
  • โœจ Global Weight Multiplier - Adjust all item weights globally!
  • โœจ Individual Item Configs - Fine-tune each item separately
  • โœจ Automatic Config Generation - Scans all items and creates configs
  • โœจ Vanilla/Modded Detection - Separate control for vanilla and modded items
  • ๐Ÿงช Debug Logging - Optional detailed logging for troubleshooting

๐ŸŽฎ Gameplay Features

  • Stack size customization for every stackable item
  • Weight customization for every item
  • Two separate config files:
    • item_stack.cfg - Stack sizes
    • item_weight.cfg - Item weights
  • Affects only stackable items (MaxStack > 1)

๐Ÿ› ๏ธ Technical Features

  • Harmony Patching - Non-intrusive mod architecture
  • BepInEx Integration - Standard Valheim modding framework
  • Jotunn Compatibility - Works with Jotunn mod framework
  • ObjectDB Hook - Scans items after all mods load
  • Player Spawn Hook - Re-applies changes on player spawn

๐Ÿ”— Compatibility

  • Works with vanilla Valheim
  • Compatible with modded items
  • Toggle vanilla/modded items separately
  • Safe to add/remove from existing saves

๐Ÿ—บ๏ธ Legend

  • ๐Ÿš€ Major Features - Big new functionality
  • โœจ New Features - Gameplay additions
  • ๐Ÿ› ๏ธ Technical Improvements - Under-the-hood enhancements
  • ๐Ÿ› Bug Fixes - Problem solutions
  • ๐Ÿ”— Compatibility - Mod interaction improvements
  • ๐Ÿ›ก๏ธ Stability - Crash prevention and safety
  • โšก Performance - Speed and optimization
  • ๐Ÿ—‚๏ธ Organization - Code structure improvements

๐Ÿ™ Credits

  • Valheim Community - For feedback and testing
  • BepInEx Team - For the modding framework
  • Jotunn Team - For the amazing mod library
  • ItemStacksRewrite - For inspiration!

๐Ÿ“„ License

This mod is released under the MIT License.


๐ŸŽ‰ Enjoy your enhanced inventory management! ๐ŸŽ‰

For support, bug reports, or suggestions, visit our GitHub repository or Thunderstore page.