Useful Backpacks

Useful Backpacks

20M Downloads

[1.19.2] Quark inventory sort/handling buttons incompatibility

thomyka opened this issue · 2 comments

commented

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

  • I have checked that this is not a duplicate feature request and the feature does not yet exist in the latest version
commented

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)

commented

Heureka, it seems I found the problem! The backpack related part is already in the config file; there are simply 2 typos in the class name:
current (incorrect): "info.u-team.useful_backpacks.screen.BackPackScreen"
the correct version (one underline instead of a dash in u-team and a not capital P character in BackPackScreen):
"info.u_team.useful_backpacks.screen.BackpackScreen"
Sorry for the late response, I haven't touched the game in the last few months.