Mods / Sonito's Backpack Ground Access
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 Identifier | For Game version | Downloads | Released | Changelog | Download | 1-click mod install* |
|---|---|---|---|---|---|---|---|
| No releases found | |||||||
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.
I really missing this mod 😢
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
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
Can report the same issue as FatherSarge. I play solely on a single player world.
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
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
@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 :'(
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
Welp , one step forward x) , sorry about that and thanks for the feedback , so far all my testing has been on solo
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.
I can see DanaCraluminum adding this to DanaTweaks!
This is so good it should be vanilla!
Absolutely fantastic mod that makes you wonder why it isn't part of the vanilla game
if you want, i can be a tester for multiplayer for this mod.
@Vanra
You ask I make =D
I'll try to work on that this week for sure
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
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
stuff that should be vanilla
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
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.
@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?
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.
Will fix it soon , im working on it right now
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
i'm useing ludicrous backpack capacity, so seeing if this works with the edits that mod does to all the storage bags
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.
@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
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.
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
Is this compatible with CarryOn?
@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
@TheBride Thanks for the feedback,That's a major issue , damn, i'm gonna test and fix it right now
Breaking the backpack makes it non-interactable. So make sure you pick it up instead or you'll lose anything you stored in there
Awesome work, have wanted this for a long time! Works well so far!
Awesome mod! +1
KUDOs! This is an awesome plug of a logical gap in gameplay!
Sonito You can use stack.Collectible.GetCollectibleInterface();, because all bags have HeldBag behavior, but not all of them have backpack attribute
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
WoW this looks amazing!
We can use baskets as chests now hahahah
Could you upload source code to github?
awesome!!! this mod should be in vanila
You made it! Amazing!! ^^
Loving the idea, will definitely try it to see if replacing chests with modded backpacks would work for storage :))
Hi do you have any idea how to resize the main inventory window?
Yes it worked with my modded bag , as long as it has an attribute category as "backpack" , which it should
Does this work with modded / modified bag sizes?