Project Zomboid

Project Zomboid

1,466 ratings
Auto Loot B41
8
5
9
4
6
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
311.583 KB
17 Aug, 2021 @ 5:48pm
1 Jul, 2023 @ 11:34am
52 Change Notes ( view )

Subscribe to download
Auto Loot B41

In 3 collections by Tchernobill
PZ Build 41
27 items
Taste of Vanilla B41
35 items
Automate Series B41
9 items
Description
With this mod looting is done automatically.
With this mod store your loot in one click.

So you are here ?
Ah.. you're bored of spending your life looting dead corpses and searching through furnitures..
You've come to the right place.

How to access your loot selection
You can (and should) change your configuration.
You can access the configuration page:
  • Whenever, by pressing the key selected under options >> key bindings tab >> UI >> Auto Loot Config (default key is NONE).
  • From Game, press escape >> select options >> select mods tab >> under Auto Loot part >> click on Change Configuration tick box.
  • From Main Menu, select options >> select mods tab >> under Auto Loot part >> click on Change Configuration tick box.


How to modify your loot selection
On the configuration page, you have tools to help you change your configuration quickly:
  • Filter on unique ID.
  • Filter on displayed name.
  • Filter on category through a combo box.
  • Filter on display category through a combo box.
  • Green and red buttons apply on current filter.
  • Double click on an item for individual selection.
See this video for a full exemple of the configuration interface.
Alternatively -I do not recommend but- you can add/remove an item type through contextual menu.


Toggle ON / OFF


How to store your loot ?
This functionnality is an evolution of the great mod SmartStack.
By clicking on Store All icon/button, all items that are not equipped or favorite will be spread onto any reachable container that already has an instance of the same item.


Annex functions
  • ModOptions allows to tune the mod a lot.
  • Sandbox option Loot Mode allows select one single mod for the whole server.
  • Sandbox options allows to deactivate bag priority option (if you find the function useless and do not wanna clog your contextual menu).
  • Sandbox options allows to deactivate bag filter option (if you find the function useless and do not wanna clog your contextual menu).
  • Sandbox options allows to deactivate bag activation/inhibition option (if you find the function useless and do not wanna clog your contextual menu).
  • Sandbox options allows to deactivate item type add/remove option (if you find the function useless and do not wanna clog your contextual menu).
  • You can permanently inhibit Auto Loot on a furniture or vehicle through a contextual "Inhibit/Activate" toggle.
  • Inventory tooltip is added to Item List (both for the vanilla Debug and for the Autoloot configuration).
  • Inventory icon of modded item is corrected in the Item List (for the Autoloot configuration).
  • Inventory weight overlap is corrected.


You have questions ?
  • Works in solo and multiplayer.
  • Can be added / removed mid game.
  • The mod still works, it will be tagged obsolete otherwise.
  • Check the tutorial video.
  • Any other question should be answered in the FAQ.


Tips & Limitations
  • Keep default settings (except loot configuration) for a vanilla friendly experience.
  • Set Auto Loot OFF in order to not plunder your own carefully ordered base.
  • KeyRing has the highest priority: "1" and cannot be changed.
  • If you wanna use Necroforge mod without Necroforge breaking the Vanilla Item List, activate AutoLoot mod after Necroforge mod. Moveables are mostly deactivated.
  • In case of mismatch between client and server in multiplayer, Follow the steps here[theindiestone.com].

Credits

That's it.

Why are you still here ?
What ? You also wanna loot burnt Zs before they are consumed with their precious loots while being chased by a horde of runners ?
I guess if you play with runners I can give you a secret.. you can activate the Instant Loot mode through ModOptions.. but beware ease is a close friend of boredom.

Workshop ID: 2577903374
Mod ID: AutoDrop
Popular Discussions View All (6)
2
26 Feb @ 3:43am
AutoLoot stopped working for some reason
Unamelable
2
25 Jan, 2024 @ 9:49am
I translated/localized your mod into russian language. Will you add it to the mod if I post the localization/translation (code) in Discussions?
sudo rm -rf /*
2
1
22 Aug, 2021 @ 6:14am
You wonder what this mod is for ? Then there is no point for you on using it.. now.
Tchernobill
633 Comments
Lu5ck 1 Jul @ 7:06am 
There is a bug, a dupe exploit for MP where if you auto loot a container within another container, the item only disappear from the client view in that said container but on the server side, the item continue to exist. The duped item will appear and stay in the client bag. I think the mod is missing `transmitCompleteItemToServer` for syncing.
Tchernobill  [author] 6 Jan @ 1:43pm 
This version is for B41.
Check this other mod for B42 .
All questions that are not answered below will be answered by the community on the Official Project Zomboid Discord [discord.gg] mod_support channel.
Riko the Plush 20 Dec, 2024 @ 12:17am 
I want to drop every item from every corpse in range to the ground, can i do that with this mod, tried, but i dont know how to setup config to do what i want
yusuduku 12 Dec, 2024 @ 10:59am 
it only took me 2hours of try and error trying to get it work in my world... that was a painfull time with the easiest fix...
yusuduku 12 Dec, 2024 @ 8:43am 
Man i love you for this
Selly 2 Dec, 2024 @ 6:11pm 
Okay, so it actually does this with everything dropped via vehicle salvage - Wires were just the only thing I had configured to autoloot. (Bless the ability to add/remove things from the Autoloot list via context menu.)
Selly 2 Dec, 2024 @ 6:07pm 
What I did find was that this is only a problem with boxes on the ground. If I pick them up manually with autoloot off and then put them into a container or vehicle; it'll pull them out of those just fine.

I'll keep poking around the files in the other mod; but there are a looooot of files.

Sidenote: It also does this with Electric Wires dropped from salvaging a vehicle. Actually, that gives me something to check...
Selly 2 Dec, 2024 @ 6:07pm 
@Tchernobill Checking that in-game was kind of inconclusive; but if I knew what to look for in the scripts/lua, I could probably find out! I did make my original post pretty late and worded some things badly, though - and I did do some more testing this morning.

So, basically: I have one (or more) lootboxes on the ground; if I walk over them with autoloot on, it'll display the icon and show them in my inventory - though the ground boxes remain on the ground. As soon as I walk off of the ground boxes - or try to move the inventory versions into another bag - the copies in my inventory disappear. The debug log shows lots of spam of:

[AutoDrop] AutoLoot_DisplayOnRender itemToRender Base.AccessoriesBoxZ.
[AutoDrop] AutoLootIcon:render drawTextureScaled 620 308.11 40 40 0.63 1 1 1.
Tchernobill  [author] 2 Dec, 2024 @ 11:19am 
@Selly I guess this means the mod creating the loot boxes optimize the creation process by re-using the same box instance id. this (if correct) induces you should never have 2 instances of boxes at the same time.
You can invalidate that theory by removing the box from autoloot list and doing the pick-up manually. if then you can get 2 boxes at the same time in your inventory, that theory is incorrect.
Selly 2 Dec, 2024 @ 4:42am 
There's a weirdly specific interaction with the Escape from Kentucky mods that I've been wracking my brain over. Basically, those mods have 'loot boxes' that have a chance of spilling onto the ground whenever you kill a zombie.

When you walk over them, AutoLoot will put them in your inventory - but the boxes now exist both in your inventory and on the floor; and if you trigger another loot event on them, it'll remove the ones from your inventory.

Do you have any clues as to what might cause this kind of behavior? I want to try and patch it - but I'm finding any actual errors in the debug log; just lots of event spam whenever I try and loot them.

(You can just not put them in the AutoLoot list and pick them up manually, so it's not exactly mod-breaking - but it is a pain, and I'm not sure which end it's on.)