Mods / RedSpecsAreaUnload

Tags: #Storage
Author: RedSpecsGaming
Side: Both
Created: Oct 5th at 8:18 PM
Last modified: Oct 25th at 10:39 PM
Downloads: 506
Follow Unfollow 42

Recommended download (for Vintage Story 1.21.5):
RedSpecsAreaUnload-v1.21.5-r1.0.5.zip  1-click install


Tired of Putting Things Away One Container at a Time?


Now you dont have to! Pre-seed containers with the items you want in those containers and from then on, you can empty your backpack into those containers at a push of a button! (defaults to the N key but can be rebound). This mod will search all containers within a 10 block radius (configurable in the config file) and move each item stack in your backpack first to any containers that have the same item within them. It will attempt to fill existing stacks first before making a new stack. This will add to multiple containers if it runs out of room in the first container it finds.

 

Want to protect slots from getting emptied?

 

You totally can do that! Make sure there is an item in the slot you want protected and then press the middle mouse button on that stack. The slot should turn white and that means the slot is now protected from being emptied. You can move the items out of the slot yourself and the slot will remain protected until you put something back in that slot and press middle mouse button on that slot to toggle protections off. Protected slots should save and load to persist across play sessions.

 

Protecting Chests Against Other Players 

 

System uses the vanilla locking system to protect chests from other players items ending up in container. Craft a plumb and square, reinforce the container and then apply a padlock to lock as indiviual or lock as a team. Then only allowed players to that container will be allowed to dump items into that container. I have added a new copper padlock variant to the mod to make crafting padlocks cheaper.

 

Please back up your server/world before adding this mod! I am not sure how well this might interact with other mods and what edge cases I may not have found. Please let me know below if you run into a problem and provide what details you can. Thanks!

Mod Version For Game version Downloads Released Changelog Download 1-click mod install*
1.0.5 159 Oct 25th at 10:39 PM RedSpecsAreaUnload-v1.21.5-r1.0.5.zip 1-click install

Fixes cases where devs have accidentally given multiple items the same ID.

1.0.4 146 Oct 11th at 12:32 PM RedSpecsAreaUnload-v1.21.2-r1.0.4.zip 1-click install

Fixes transfers to BlockEntityDisplay containers to respect the stacksizes of slots in those displays and to force a visual refresh of those blocks when transfers are made to those containers.

1.0.3 35 Oct 10th at 11:25 AM RedSpecsAreaUnload-v1.21.2-r1.0.3.zip 1-click install

Container search now respects individual and group locks to filter out allowed chests. Adds in new copper lock for less expensive option.

1.0.2 54 Oct 9th at 6:54 PM RedSpecsAreaUnload-v1.21.2-r1.0.2.zip 1-click install

Fixes one time crash for anyone who had the mod prior to the save data change being added. (v 1.0.1)

1.0.1 26 Oct 9th at 2:30 PM RedSpecsAreaUnload-v1.21.2-r1.0.1.zip 1-click install

Adds in saving of protected slots.

1.0.0 86 Oct 5th at 8:21 PM RedSpecsAreaUnload-v1.21.2-r1.0.0.zip 1-click install

First relase


20 Comments (oldest first | newest first)

💬 RustleOfWind, Nov 7th at 2:52 PM

The mod tries to put things into ANY containers.
This includes:
fruit press bucket storage (resulting in 5 buckets and 5x as many liquid output with the same input, so that's a dupe)
On-ground storage both vanilla and from More Piles mod, breaking the piles by adding 65th and more items to the same pile
cooking pots and firepits in general, breaking the distribution of items for correct meals/alloys etc.
Barrels, unsealing already sealed barrels by adding more stuff to them

And so on. It causes a lot of unintended behavior and things breaking both in vanilla and modded game.
It'd be wise to limit containers to storage options only (chests, vessels, reed chests etc.), because including all containers breaks a lot of stuff that only expects direct user input.

💬 Slikkelas, Nov 6th at 4:08 PM

RedSpecsGaming I have come to find it super annoying that firepits are counting as a storage option. Would it be an easy fix to maybe having a config to disable/enable firepits? :D

💬 Stas, Oct 26th at 2:52 PM

Thanks for the fix, but I'm afraid it's not enough. Some items have the same name. I recorded a video (link) where I demonstrate the issue. In developer mode, if you hold Shift you can see additional info about the block, there is a “type” field — and this one is different. Maybe you could use that to identify identical items. Also in the video I show that manual transfer of items with Shift held does not cause this problem. Maybe you could look into the game source code (if that part is open) to see how this process works, or replicate it in your mod?

💬 OktoberTheYeen, Oct 26th at 5:57 AM

Amazing mod, glad to see something like this being added!

💬 RedSpecsGaming , Oct 25th at 10:42 PM

Stas thanks for the report. Sorry for the delay. Been recovering from a surgery this week.

Looks like the devs have accidentally assigned both of those objects the same id. I added in an additional name check to fix those edge cases. Should work correctly now. Let me know if you see anything else.

💬 Stas, Oct 17th at 5:12 PM

When using quick item distribution, items of type «clutter» turn into other «clutter» items that are already in chests.

Game version: 1.21.5
Mod version: 1.0.4
Mod installation: from this page using the «1-click install» button
Mod manager: none

How to reproduce:
1. Take «Scribe table (with accessories) [Clutter type: table-long-with-accessories]» into your inventory.
2. Put «Metal barrel [Clutter type: barrel-metal4]» into a chest.
3. Use the hotkeys for quick item distribution.

Result: «Scribe table (with accessories) [Clutter type: table-long-with-accessories]» is removed from the inventory, and the chest now contains two «Metal barrel [Clutter type: barrel-metal4]».

Notes: This doesn’t happen with all items — for example, paper or lectern-type clutter doesn’t transform.
I tested this in several worlds, with all other mods disabled, and on different containers (backpack, basket) — the bug is reproducible.

P.S. Thanks for this mod, it looks very convenient.

💬 RedSpecsGaming , Oct 11th at 12:35 PM (modified Oct 11th at 12:36 PM)

TrippyTheO thanks for that report. Was able to diagnose and fix that with this mornings release (1.0.4). Transfer should now respect the stack sizes in "display" containers and it should also update the display's visual to show changes after. I tested this against vanilla shelves, Better Crates mod and the Food Shelves mod. As always please let me know if you find any issues.

💬 TrippyTheO, Oct 10th at 9:19 PM

Howdy boss. Enjoying the mod so far, found a bug. It's easy for me to reproduce but I do have a number of mods installed so hopefully they're not causing this problem.

When I hit the key to send items to storage, my Ceramic Jug is sent to a shelf that has other jugs. This would not be a problem but it does not show up on the shelf and even over-fills the shelf, so that I can actually have five jugs upon one shelf, which should only be able to hold 4 items. Breaking the shelf returns the items.

💬 RedSpecsGaming , Oct 10th at 6:23 PM

Yeah I had made a rookie mistake by loading the save data directly into the class that tracks the protected slots, but in the case of someone not yet having save data, it made that class null which basically broke the whole system. What I should have done, and what I did in the 1.0.2 version was load into a temp instance of the class and verify I got any save data first. It was a rookie mistake because the first rule of gamedev (13 years in the industry) is to always do a full test from start to finish with a clean save because development itself will leave you in a weird state that either never works or works when it shouldnt. Either way its fixed now.

 

As for the mods you listed Paradoxical I have tested against them all and things seem to still work as they should on my end. So again I suggest a clean save file with no mods to verify if the mod itself does not work for you for some reason and then try to narrow down which of your mods might be clashing. I will be happy to figure out why they are clashing if you can identify which mod its clashing with.

💬 herrcaptain, Oct 10th at 5:16 PM

Just to add to any troubleshooting going on:


I also ran into the issue of the mod not working on version 1.0.1. I could lock inventory slots, but pushing the N key didn't actually move anything to storage as it was supposed to. It had been fine on 1.0.0.

Whatever you did on 1.0.2 seemed to fix the issue for me (just about to try 1.0.3.). I had deleted my config file for the mod, as I generally do when updating mods. However, it doesn't look like you changed anything about the config at all so I doubt that had anything to do with it. As such, Paradoxal must be having some sort of complication with another mod. Of the mods they listed I also use CarryOn and Food Shelves, so I doubt it's either of those causing the issue. I also use Sortable Storage, so can confirm to anyone else who may be wondering that the mod works fine with that.

💬 Paradoxal, Oct 9th at 9:37 PM

RedSpecsGaming

 

Tried patch, still doesn't work.

💬 RedSpecsGaming , Oct 9th at 7:10 PM

Paradoxal Give the lastest version I just put up a test. I found a bug in this mornings version which I addressed in the last one (1.0.3) If it still does not work I recccomend trying it in a new test game with all other mods disabled and then slowly adding them back one at a time to see if it stops working. I will do some testing around those other mods you mentioned when I have some spare cycles but if you find out which mod specifically is clashing, let me know here and that will speed up me working out a way to be compatible with that mod.

💬 Paradoxal, Oct 9th at 6:40 PM

RedSpecsGaming

 

  1. No, only singleplayer.

 

2. I was from 1 to 5 blocks from the chest.

 

3. looks at my 200 mods installed     I will do my best. 

BackPackPlusExpanded 1.21.1

Better Crates _v1.9.0

CarryOn 1.2.1_v1.12.1

CrateBulkInput_VS1.19.8_net7_v1.0.0

foodcrate_1.3.2

foodshelves_2.3.1

 

Not sure if some of those count, but i thought id add them since they contain storage items.

💬 RedSpecsGaming , Oct 9th at 6:21 PM

Paradoxal several questions.

  1. Are you playing on a server and does the server have the mod installed?
  2. Are you within the block range of the chests as set in the config file? (default is 10 blocks)
  3. Do you have any other mods installed that add/change containers and/or backpacks? If so please let me know what they are.
💬 Paradoxal, Oct 9th at 4:12 PM

Doesn't work for me at all. I'm in version 1.2.4. 

The controls appear in the controls menu setting, but it won't send anything to the nearby chest I have.

💬 Sonito, Oct 9th at 2:35 PM

Great work as usual

 

💬 RedSpecsGaming , Oct 9th at 2:31 PM

ProtectedSlot saving released to version 1.0.1. Excluding specific chests will be the next item I tackle for the next version.

💬 RedSpecsGaming , Oct 6th at 10:47 AM

Not a bad idea. I could probably add a sentinal item to the gam that could be crafted and would exclude the chest it is in from being added to.

💬 JupiterAugust, Oct 6th at 5:49 AM

it'd be cool if we could also blacklist certain chests somehow. I'm not sure how though! Maybe something like "put this item in the first 2 slots to exclude the chest from the search" or "click the first slot of the chest with the middle mouse button to mark that chest as excluded". It'd be really helpful for shared bases where multiple people might have their chests nearby another player's. Just a suggestion! No pressure or rush, cuz I'd definitely focus on the slot saving thing before anything else.

💬 RedSpecsGaming , Oct 5th at 8:23 PM

Please note that at this moment the slot protections do not save and must be set each session. I will be working on trying to find a way to put this into the save file later if possible.

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом