Auto Stack - Proper

Мод Auto Stack - Proper для DayZ. Сейчас на 8 серверах RiseOfServers.

RDM_AutoStack - Auto Stacking Done Proper

You know when you're looting around, picking up ammo one bullet at a time and your inventory looks like a bomb's hit it? Yeah, that's sorted now.

100% Original RDM Work
This mod is built from scratch by RDM. Every line of code, every config option, every ounce of trial and error.

Due to recent theft, with fake devs claiming this work as their own and reuploading it obfuscated, the licensing has been tightened. This mod is still free to use and free to learn from. But it is NOT free to reupload, repack, or pass off as your own. If you see this mod on the workshop under any name other than RDM_AutoStack, it's stolen. Subscribe here for the real version with proper updates and support.

What's it do?
Pick up stackable items > they automatically stack with whatever's already in your gear.

Pants, jacket, backpack, vest, doesn't matter. It finds the stack and sorts itself out. Simple as.

Features

[*] Auto stacks ammo, bandages, rags, nails, if it stacks, it stacks
[*] Searches your ENTIRE inventory across every container, not just the slot you dropped into
[*] Works in storage containers too, barrels, tents, crates, the lot
[*] Smart Target stacking, tops up the closest-to-full stack first to reduce wasted space
[*] Health Level Matching, Pristine bandages won't merge into Damaged stacks (toggleable)
[*] Skip Item In Hands, items currently equipped never get pulled into stacks mid-action (toggleable)
[*] Ammo count override compatible, works with count=100 type configs (RDM_BulletBalance, ZenAmmo, etc)
[*] Custom stackables supported, modded items using varQuantityMax or varStackMax work out the box
[*] Container Blacklist, exclude trader storage, quest caches, safezones, anything you want untouched
[*] Item Blacklist, exclude specific classnames from auto-stacking entirely
[*] Blacklist Prefixes, blanket-exclude entire item families with a single entry (e.g. "Mag_" skips every magazine)
[*] Reorganising your own kit won't trigger stacking, move stuff between vest and backpack without it vanishing
[*] Splitting still works, we're civilised here
[*] Debug toggle, clean logs in production, verbose when troubleshooting
[*] Auto-updating config, new fields appear on version bump, your existing settings preserved
[*] Verify-after-merge safety net, items never silently disappear during stacking
[*] Event-driven architecture, zero CPU cost when nothing's happening, instant response on pickup
[*] Fully configurable via JSON
[*] Server-side, lightweight, no client faff
[*] 1.29 compatible

Configuration
Config auto-generates on first boot at:
YourServerProfile/RDM_Configs/AutoStack/config.json

When the mod updates and adds new settings, your config is automatically refreshed on next boot. New fields get sensible defaults, your existing values stay exactly as you set them. No manual JSON merging required.

SettingDefaultDescription
EnablePlayerAutoStacktrueAuto-stack when looting to player inventory
EnableStorageAutoStacktrueAuto-stack when putting items in barrels, tents, crates
OnlyStackNewLoottrueOnly stack on new pickups, not when reorganising your own kit
EnableSmartTargettrueFills closest-to-full matching stack first, reduces leftover stacks
MatchHealthLeveltrueOnly merge items with matching health (Pristine/Worn/Damaged/etc)
SkipItemInHandstrueNever auto-stack the item currently equipped in hands
EnableDebugfalseVerbose RPT logging for troubleshooting
EnableCleanuptruePeriodic cleanup of internal tracking data
StackCooldownMs2000Milliseconds between stack attempts per player
SplitCooldownMs10000Milliseconds after splitting before item can stack again
StackDelayMs300Delay before merge attempt (lets inventory settle)
CleanupIntervalMs60000How often to clean stale tracking entries
Blacklist[]Exact classnames that will NEVER auto-stack
BlacklistPrefixes[]Classname prefixes to exclude entire item families
ContainerBlacklist[]Container classnames that will NEVER trigger auto-stacking

Blacklist Example
"Blacklist": ["RDM_Crystal_Frag_1", "RDM_Crystal_Frag_2", "SomeQuestItem"]

Blacklist Prefixes Example
"BlacklistPrefixes": ["Mag_", "AmmoBox_"]

Container Blacklist Example
"ContainerBlacklist": ["TraderStorage_Base", "QuestCacheContainer"]

Raising Stack Caps for Bones, Worms, Food, Ammo
AutoStack respects whatever stack caps each item defines in its config. To raise vanilla caps (e.g. make Bones stack to 50 instead of 10, or ammo to 100), you need a small server-side config mod that overrides the count, varQuantityMax, and varStackMax properties for the classes you care about.

A working example mod is included in the download under the Optional folder. It comes with:

[*] A ready-to-deploy packed PBO for Bones (50), Worms (30), and 762x39 (100)
[*] The unpacked source so you can study, copy, and adapt the pattern
[*] A detailed README explaining how DayZ stack max properties work and how to pack your own

You do NOT need this mod for AutoStack to work. It's there as a reference and starting point for admins who want to raise specific caps without writing a balance mod from scratch.

Tuning for Fast Looters
If your players loot rapidly and feel stacking is "missing" pickups between rounds, drop StackCooldownMs from 2000 to 500 or 1000. No stability concerns at lower values, just less aggressive throttling. StackDelayMs (300ms) controls the merge delay after pickup and is also fully tunable. All timings live in JSON, no code edits needed.

Architecture
RDM_AutoStack is fully event-driven via DayZ's native EEItemLocationChanged hook. The mod ONLY runs when a pickup or location change actually happens, and only on the player or container affected. No timers, no polling loops, no background scanning eating CPU when your server is quiet. On a busy server this scales with player activity, not player count, so even at 60+ players the overhead stays minimal.

Mod Compatibility
Works with modded stackable items too. If your mod uses the standard stacking system (count, varStackMax, or varQuantityMax), this picks it up automatically.

Tested compatible with Expansion, BBP+, LBmaster, RDM_BulletBalance.

Installation
Server-side mod. Drop the RDM_AutoStack folder contents into your server mods folder and you're done.

Need help? Jump in the Discord and tag @Vanilla

Usage & Permissions
This mod is free, but it is NOT yours.

YOU CAN

[*] Run it on your server, no questions asked
[*] Read the code, learn from it, study how DayZ inventory hooks work
[*] Suggest improvements via Discord
[*] Reference techniques in your own ORIGINAL work (a credit and link back is appreciated)

YOU CANNOT

[*] Reupload this mod to Steam Workshop under any name
[*] Obfuscate, repack, or rebrand it as your own
[*] Strip the RDM author tag and pass it off as original work
[*] Bundle it into paid mod packs or sell access to it
[*] Distribute modified versions outside of your own server

This mod is shared so the community can learn and benefit, not so chancers can copy paste it, run it through an obfuscator, and

Источник: Steam Workshop

Серверы с этим модом