Mods / Sonito's Backpack Ground Access

Tags: #QoL #Simplification #Storage
Author: Sonito
Side: Both
Created: Sep 14th at 4:33 AM
Last modified: Sep 14th at 4:33 AM
Downloads: 1357
Follow Unfollow 163



Currently fixing some major bugs , I've deleted the releases until then :D

This was my first and frankly most complex mode so i'm giving it another try and fixing all of it , can't say when but probably sooner than later  

What it dooo : 


Aim at a bag in Ground Storage and press your key (default B, rebindable in game control options).
to open a GUI for that specific bag.

It works with modded bags and backpacks as long as they have the attribute categoryCode as "backpack"
It will also preserve Storage Flags and Background color , Number of slots , basically it's the same item that you already had
The gui is autosized to the number of slots and can be moved same as any gui in the vanilla game, so all of the shortcuts in vanilla should be working with it
It closes if you are 4m away or more and you can't open multiple ones at the same time

 

Why it was made  :

Basically Why the heck not ?

it adds a pinch of immersion,its more straightfoward 
if you have a bunch of backpacks it helps to sort them , 

 


Personal Notes: 

Hi this is basically my first code mod ! There might be a couple things to iron out I will try to improve this ,
I can't manage for the love of god to add a tooltip to show what key to press on the backpacks, i've tried to override a lot of InteractionHelp functions in the same but none of them seem to do the trick,

Also haven't tested in multiplayer yet but it should work fine, I have put roadblocks against item duplication , so once i get hold of a friend or two I might test it later.

Please comment if you have any issues or suggestions , 
Thanks 

 


Support me on , I take requests =) : 

https://ko-fi.com/sunday_

 

 

 

 

 

 

 

 

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
No releases found

46 Comments (oldest first | newest first)

💬 TheBride, Oct 14th at 8:26 AM

Sorry for not following up on the bug report, I got busy with work. I think the only other mod I had active at the time was Carry On, though I haven't experienced this bug again. If it happens again, I'll follow up in a timely manner with a full overview of my modlist.

💬 El_Neuman, Oct 10th at 11:35 AM

I really missing this mod 😢

💬 Chillpants, Oct 6th at 4:08 AM

It's too bad that this wasn't working right. Hopefully you can get it straightened out without too much difficulty. It really is a great idea for a mod.

Kinda wish there was an easier way to keep up with mod updates so I can know when/if this gets updated in the future. :D

💬 Sonito , Oct 4th at 9:32 PM

Deleted all the bugged released,  i will do extensive testing before releasing my next release ,
Until then i don't want people to download these versions

 

💬 Slikkelas, Oct 3rd at 7:17 AM

Can report the same issue as FatherSarge. I play solely on a single player world. 

💬 NUCLEARDODO, Oct 2nd at 6:33 AM

it whould be nice if there was an option for this mod to disable the ablity to view the bags in your crafting menu  so you whould have to put the bag on the ground to view what was inside

💬 FatherSarge, Oct 1st at 12:37 AM

Sonito
Yes, I can throw together a test server instance and provide you access if you'd like.

As far as I can tell client side is just fine... its the interaction with the server that is the issue 😅

But yea let me know if/how I can help you figure out the issue and test

💬 Sonito , Sep 30th at 11:06 PM

@MRGOOSE

Yes please if you want we can set up a session if you have a server to test on , I can't host on my pc :'(

 

💬 Sonito , Sep 30th at 11:04 PM

FatherSarge have you had this happen to you on the last version? because i fixed a lot of stuff related to items duplicates on client side

 

💬 Sonito , Sep 30th at 8:33 PM

Welp , one step forward x) , sorry about that and thanks for the feedback , so far all my testing has been on solo 

💬 FatherSarge, Sep 30th at 6:55 PM

MP users beware

Sonito
Unfortunately, seeing a lot of issues on MP.

This includes items deletion.

To repeat:
Place a bag with items on the ground and access, items are there.
Pull items (some or all, doesn't matter), player gets the items, close the bag
Open the bag, item types have reappeared with 0 on them. Replace the items taken. Player no longer has the items. Close the bag
Open the bag, items have reverted to 0, items "deleted" but bag remembers the item types.

Picking the bag up does not do anything, items are gone on the server.

💬 eerino, Sep 30th at 9:51 AM

I can see DanaCraluminum adding this to DanaTweaks!

This is so good it should be vanilla! 

💬 Dirty_Wizard, Sep 30th at 1:14 AM

Absolutely fantastic mod that makes you wonder why it isn't part of the vanilla game

💬 MRGOOSE, Sep 29th at 3:50 PM

if you want, i can be a tester for multiplayer for this mod.

💬 Sonito , Sep 29th at 3:35 PM

@Vanra
You ask I make =D
I'll try to work on that this week for sure

💬 Vanra, Sep 29th at 1:08 PM

I would love to see posibility to set open on right click and pickup on crouch-click, that would be a lot more seamless and in line with Carry On interaction flow 

💬 Sonito , Sep 28th at 8:01 PM (modified Sep 28th at 8:42 PM)

Boopowoblororah
Phew its fixed, Cleaning & uploading soon , 


I was wondering , would you like if i override the current hotkey for pick up to open the bags on the ground directly with right click and only pick them up with shift right click?
I can put that behind a config as well

 

EDIT : It's up , I hope it's up to your standards,  do not hesitate to tell me if you want something other done 

 

 

 

💬 DUCATISLO, Sep 28th at 5:54 PM

stuff that should be vanilla

💬 Sonito , Sep 28th at 8:33 AM (modified Sep 28th at 9:12 AM)

all right thanks I just finished adding the world tooltips to backpacks but I'm gonna do some testing/ regular gameplay with 1.0.2 before releasing it, in the mean time if you can give the 1.0.1 (released a few hours ago) a test see if there's still issues I would appreciate 

EDIT : I just got your duplicate bug after a few minutes of gameplay and using backpacks exclusively as storage , it's rather random which makes it hard to reproduce/understand , but i'm definetly gonna fix it now , all i know is it's related to shift clicking

 

 

 

 

 

 

 

 

💬 Boopowoblororah, Sep 28th at 6:23 AM

Sonito The instance im talking about was:

i put a cooking pot full of food on a ground storage spot that had a bowl on it, but instead of the pot appearing on the ground next to the bowl, it "disappeared". Basically it was on ground storage where i put it, the tooltip at the top of the screen said the pot and bowl were both there, but the pot was invisible. When i picked it back up the pot fully vanished, the ground storage only had the bowl, no pot in the tooltip, and i had no pot in my hands. and when i went to pick up the bowl it left an invisible block called "empty pile", when is just an empty ground storage spot.

 

There were other instances where i'd go to eat food i gathered, but i couldn't actually eat it, and when i checked a hand basket i put on the ground there were duplicates of the food i was trying to eat, and when i picked the food up one copy of it would disappear.

I also had a case where i picked up gears from a chest, and then when i opened the chest again there was a duplicate of the gears i picked up, and i'd have double the amount. This happened twice, both in the chest where i first found them, and in the chest i store my gears in.

💬 Sonito , Sep 28th at 3:54 AM (modified Sep 28th at 4:09 AM)

@Coda_Vanistok

I Uploaded new version , I think it fixed the issue you were having

@Boopowoblororah
If you can give me more details I would appreciate,
I'm not sure what "sometimes i'll place a bowl or something and it'll be invisible on the ground, and when i go to pick it up it disappers and leaves an "empty pile" block which i have to break." means , do you place a bowl like a fire-bowl on ground storage and it dissapears next to the backpack?

 

 

 

💬 Coda_Vanistok, Sep 27th at 6:21 PM

Good luck and thank you for your work on the mod so far. I can't wait to re-add it to the server so our foragers and hunters can offload their haul at the tavern that much easier.

💬 Sonito , Sep 27th at 1:35 PM

Will fix it soon , im working on it right now

 

💬 Boopowoblororah, Sep 27th at 1:13 PM

Coda_Vanistok Sonito
I've been having the exact same issue, and i was worried it was this mod.

it's too good for me to wanna disable it, but this issue is incredibly annoying! I've also found that it sometimes happens even when i have inventory space, i'll pick something up and it'll just disappear. If i had to guess i'd say the game is treating it like i'm shift-clicking the item to move it into my bag inventory, and thinks one of my placed bags is still on me.
I'm not sure how to reproduce it on demand, it seems to happen at random. I haven't checked yet if everytime an item disappears it goes straight to the basket/bag and you can get it back immediately, or if it takes a minute, but i'm sure it's the former. 

it also affects putting items on the ground, sometimes i'll place a bowl or something and it'll be invisible on the ground, and when i go to pick it up it disappers and leaves an "empty pile" block which i have to break.

Hopefully this helps, and hopefully this can be fixed soon, this mod is invaluable
 

💬 jamescook, Sep 19th at 5:38 AM

i'm useing ludicrous backpack capacity, so seeing if this works with the edits that mod does to all the storage bags

💬 Coda_Vanistok, Sep 18th at 6:41 PM

Sonito

I specifically placed a vanilla inventory basket on the ground from my inventory, opened the menu, closed it, then proceeded to craft items that ended up taking more space than my current inventory could support item wise, I think I was cutting logs into planks specifically and then making a scavenger basket out of reeds. I later found some of my left over reeds and some boards had migrated to the basket on the ground without the inventory being open.

💬 Sonito , Sep 17th at 9:04 PM

@Coda_Vanistok
I'm curious to know how to reproduce that exactly if you don't mind telling me I will look into it eitherway

💬 Coda_Vanistok, Sep 17th at 8:51 PM

Sonito

For some reason, after opening and closing a backpack menu on the ground, items that overflow your inventory, or that are just looking for a place to go, will fall into the ground bag as if it's part of your inventory. It was rather interesting to magically lose a whole stack of reeds for 10 minutes until I picked the bag up and saw it in my inventory spaces the bag added.

💬 Sonito , Sep 16th at 9:32 PM (modified Sep 16th at 9:33 PM)

if by compatible with CarryOn you mean does it work without any issues with the mod? then yes
It doesn't add a carry on interaction to the backpack tho , So unless carry on implements that behavior for the items on ground storage, I don't see myself doing that 

 

💬 bkconn, Sep 16th at 8:58 PM

Is this compatible with CarryOn?

💬 Sonito , Sep 16th at 6:53 PM

@TheBride Sady I couldn't reproduce it , are you using other mods that touch backpack behavior? if you'd be so kind to give me your modlist if it's not too much bother 
But thanks to you I noticed a way of duplicating items if you press ALT then destroy the backpack yourself , the inventory is still open and that duplicates items, In anyways I'm making a fix for that 

💬 Sonito , Sep 16th at 6:38 PM

@TheBride Thanks for the feedback,That's a major issue , damn, i'm gonna test and fix it right now

💬 TheBride, Sep 16th at 6:29 PM

Breaking the backpack makes it non-interactable. So make sure you pick it up instead or you'll lose anything you stored in there

💬 FatherSarge, Sep 15th at 3:03 PM

Awesome work, have wanted this for a long time! Works well so far!

💬 Oweyan, Sep 15th at 1:14 AM

Awesome mod! +1

💬 B0bb0, Sep 14th at 6:08 PM

KUDOs!  This is an awesome plug of a logical gap in gameplay!

💬 DanaCraluminum, Sep 14th at 4:16 PM (modified Sep 14th at 4:17 PM)

Sonito You can use stack.Collectible.GetCollectibleInterface();, because all bags have HeldBag behavior, but not all of them have backpack attribute

💬 Sonito , Sep 14th at 4:07 PM

Thanks everyone :D I hope it works well , 
@SaltyWater thank you 😿
DanaCraluminum sure just gotta make an account for vintage story and make despaghettifiy the code a bit and it's all yours :D

 

💬 XurxoMF, Sep 14th at 3:58 PM

WoW this looks amazing!

We can use baskets as chests now hahahah

💬 DanaCraluminum, Sep 14th at 2:42 PM

Could you upload source code to github?

💬 Supdude, Sep 14th at 2:27 PM

awesome!!! this mod should be in vanila

 
💬 SaltyWater, Sep 14th at 1:58 PM

You made it! Amazing!! ^^

💬 Sneezingprince, Sep 14th at 10:36 AM

Loving the idea, will definitely try it to see if replacing chests with modded backpacks would work for storage :))

💬 adres4t, Sep 14th at 8:14 AM

Hi do you have any idea how to resize the main inventory window? 

💬 Sonito , Sep 14th at 6:46 AM

Yes it worked with my modded bag , as long as it has an attribute category as "backpack" , which it should

💬 XxXtremeAnime, Sep 14th at 6:42 AM

Does this work with modded / modified bag sizes?

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