MC-U-Team / Useful-Backpacks

This mod adds three new backpacks to the game which enhance your gaming experience
https://u-team.info/mods/usefulbackpacks
Apache License 2.0
24 stars 20 forks source link

[1.19.2] Quark inventory sort/handling buttons incompatibility #199

Open thomyka opened 1 year ago

thomyka commented 1 year ago

Detailed description of the feature

I used the mod with the Quark in 1.16.5 version, the buttons for inventory handling (lock, load, unload, sort, filter) were present there. I set up the 1.19.2 version recently; in this version the Quark buttons are not present for the backpacks. Could the backpacks registered like another inventory or chest, or should be the problem solved in the Quark mod? I checked different versions both for Quark and Useful-Backpacks. Couldn't find a pair where the buttons are present.

useful-backpack_quark_incompatibility_1 19 2

Verify feature request

KnightCa commented 1 month ago

Quark's built in version of inventory tweaks does not seem to recognize portable storage items by default, but a close look at the configs showed me that there was a built in solution, it just required a couple extra steps on my part. So, here is the config to make Quark's inventory sort buttons and scroll in/out work with Simply Backpacks.

If you have problems with the buttons not showing up on other inventories, you'll have to take the extra steps to add them to the configs yourself. Note I've only tried this in 1.12. This option is about half way down the quark config file.

"chest buttons" {
# Set this to true to print out the names of all GUIs you open to the log. This is used to fill in the "Forced GUIs" list.
B:"Debug Classnames"=false

# GUIs in which the chest buttons should be forced to show up. Use the "Debug Classnames" option to find the names.
S:"Forced GUIs" <
com.flanks255.simplybackpacks.gui.BackpackGui
>

You have to set the debug classnames to true in the config file, start the game, open any inventories you need to fix, quit the game, look at the newest launcher log file, then copy the classnames into the Quark config file (and set the debug classnames back to false)