Yo Zamiell I have a suggestion to add the ability to toggle the auto organize with a keybind, and if you want I can send you some code with it as an already functional feature, no credit needed.
What is the vanilla way that chests organize? A mod changes how chests organise when the button is clicked but this mod overrides it and undo it when I add or remove an item. So I want to try to have the other mod closer match to vanilla sorting, but I can't find out vanilla organises
Can't confirm this. I'm always using Automate and this Mod together. The only issue I have: I don't understand how the game decides to sort items. ^.^' Also I would love an option wheather a specific chest (Type) should Auto Organize or not, but as the code seems to be quite simple (alongside other mods, not that I could have done this ;-) ) it's not the original intention of Zamiell.
Might be good to (optionally?) exclude hoppers. I like to prioritise using one stack of items before another, which isn't possible without control over inventory order
I made the change by adding this to your if statement:
I use also use Better Sort and it changes how things are sorted. You can even configure left, right, and middle clicks to sort differently. Right now Always Organize Chests does a different sort than my right click or my left click. Is it possible to call the sort click in a way that would trigger Better Sort and perhaps have that as an option?
I don't think so, since you can see in the code I am just calling `ItemGrabMenu.organizeItemsInList(e.Chest.Items)`. You should contact the authors of Better Sort and make them use Harmony so that they use the same function that the game does.
20 comments
I have a suggestion to add the ability to toggle the auto organize with a keybind, and if you want I can send you some code with it as an already functional feature, no credit needed.
Tell me what you think about it :)
The only issue I have: I don't understand how the game decides to sort items. ^.^'
Also I would love an option wheather a specific chest (Type) should Auto Organize or not, but as the code seems to be quite simple (alongside other mods, not that I could have done this ;-) ) it's not the original intention of Zamiell.
Might be good to (optionally?) exclude hoppers. I like to prioritise using one stack of items before another, which isn't possible without control over inventory order
I made the change by adding this to your if statement:
/* ... */ && e.Chest.SpecialChestType != StardewValley.Objects.Chest.SpecialChestTypes.AutoLoader
I use also use Better Sort and it changes how things are sorted. You can even configure left, right, and middle clicks to sort differently. Right now Always Organize Chests does a different sort than my right click or my left click. Is it possible to call the sort click in a way that would trigger Better Sort and perhaps have that as an option?
Either way, thanks for the mod!