Refined Storage

Refined Storage

77M Downloads

Please implement Inventory Tweaks sorting in the grid

hi-fox opened this issue ยท 16 comments

commented

Title, I know that AE2 for 1.7.10 used to have this option, and I'd love to see it brought here. Currently on 1.10.2, RS version 1.2.14.

commented

Incomplete. Define what "inventory tweaks sorting" is - exactly, please.

commented

Sorry, not sure how else to describe it. The mod "Inventory Tweaks" has a specific way of sorting items in an inventory.

https://inventory-tweaks.readthedocs.io/en/latest/
https://github.com/Inventory-Tweaks/inventory-tweaks/wiki

I would like to see this way of sorting items as an option in the Grid for RS, alongside "A-Z" and "Amount".

commented

How does Inventory Tweaks sort those items?

commented

I don't really understand the question, I'm not a developer so I don't have any knowledge of sorting algorithms etc, but I linked to the github of the mod which should contain all the documentation on how it works.

I asked the original question because if anyone uses this mod, and it's present in most big release modded packs, their inventories and chests are sorted via this mod and display the items in a certain order. I would like to see that order present in RS so I can choose to show my items in the order I have in my chests/inventory.

commented

Let me rephrase the question:

A-Z is sorted alphabetically, "amount" is sorted by item count, so how is Inventory Tweaks being sorted?

commented

It is some silly config file, no clue if the actual sorting method is exposed

commented

InvTweaksTree.txt

So I've checked the mod config folder and found this, looks like the sorting rules. Hopefully it's what you're asking after,

@way2muchnoise, there's no need to call something silly just because you don't agree with how it's done.

commented

yeah true. i actually don't mind having jnvtweaks sorting same as the original AE2.

commented

I don't understand that XML file, so if anyone is able to explain how InvTweaks exactly sorts, enlighten me.

commented

aha, thanks! I tried to set up a dev instance with InvTweaks but it kept crashing, but that should make it real easy to do.

commented

Ahh, the real reason mousewheel support couldn't be added...the dev environment kept crashing... Kappa

commented

Awesome guys, let it never be said you don't listen to your userbase. If this can be implemented easily enough then great stuff.

commented

I will look into this this week, but I first gotta try to launch MC with InvTweaks without crashing :D

commented

You two are indeed the best but then again you know that as I say it all the time! :)
And really surprised you get a crash with it as I add it to every single pack since 1.7 days and haven't seen an issue. Guess I have been really lucky.

I think the Cntrl-Shift click to move all like items/stacks into a chest is a killer feature that I think comes from InvTweaks and would be great to add as well. I keep trying that everytime I open a grid but we do have the MC default of picking up the item and shift double clicking to do a similar function.

commented

@choekstr I know you'd kill for that feature (and the mouse scrolling stuff) but I simply think that the InvTweaks API doesn't allow it. Then there is not much I can do.