subpocket

subpocket

51.9k Downloads

1.18 - Cannot left-click items in / out of subpocket

unilock opened this issue · 8 comments

commented

I cannot click on anything within the subpocket UI.

I can pick up an item in my inventory in the UI (via left-click), but clicking with it in the subpocket box does nothing.
I can shift-click items from my inventory into the subpocket, but I can't retrieve them once they're in there.
Hovering the cursor over the items in the subpocket (inserted by shift-clicking) shows no change - the items are not highlighted. It's as if the cursor isn't hovering over them at all. (Holding ALT makes no difference.)
Clicking on the items in the subpocket regardless does nothing.

I can, however, add / remove items to / from the subpocket via the provided commands. (/subpocket <add|remove>)

Testing environment:

  • Minecraft 1.18.2
  • Forge 40.2.0
  • subpocket 8.0.1.1
commented

Oh wow alt making no difference is interesting..
What about right-click?
If you put like stone in the subpocket and then have one stone on you, try middle-clicking on the one in your inv

When you hold ~ do the shapes of items show or is it just white?

commented

Right-clicking does nothing.

Middle-clicking a stack in my inventory refills the stack with whatever of the same item is in the subpocket, which I assume is the intended behavior.

While holding ` / ~, all items in the subpocket completely disappear. No icons nor numbers.

Oh wow alt making no difference is interesting..

It might be relevant that I'm using a MacBook and thus "option" instead of ALT, but hopefully that has nothing to do with it, since platform-specific bugs are the worst...

commented

Ugh it might be the mac after all..
To check if alt is pressed I use whatever minecraft uses, so you'd expect it should work on macos 🤷
Also try /subpocket help debug (which adds a whole ton of items to the subpocket) and see if anything changes (no silhouettes when holding ~ etc)

commented

Oh wait - hold tab and click the lowest thing to set it to constant alt-picking mode without holding alt - to test if the alt-detection is broken for you or is it something else

commented

/subpocket help debug fills the subpocket with items, as expected.
While holding ~, all of those items disappear, as had happened in my previous comment :/

Holding TAB and turning on "constant alt-picking mode" makes no difference; hovering the cursor over the items still does nothing.

I'm now testing on 1.19.3, by the way. No difference :(

What's weird is that I remember the mod working on my previous MacBook; sometime last year IIRC...

commented

Alt-mode not working at all puts me off, I can guess that silhouette shader might not work on like the apple silicon stuff, but alt-mode is a very simple bbox-check, wtf

Ok first of all - when pressing ~ did the field become white? Because if you never moved a mouse over it it indeed looks like the items just disappear, lol 😅
It's a debug thing anyway.

So move the mouse over it and if the little debug popup appears move the mouse in top-left and bottom-right corners and tell me the coords, should be close to [0, 0] and [160, 70], also what is the scale factor, and also try moving around and see if color under mouse changes to anything that's not [255, 255, 255] and tell me.

If the field didn't become white previously and now it does - you should (hopefully) see black-bluish silhouettes of items as well

commented

I've made a terrible discovery.

Screen.Recording.2023-02-02.at.12.36.42.PM.mov

While holding ~:

2023-02-02_12 40 46

Changing the GUI scale has no effect. (the above screenshot has the GUI scaled down)

Attempting to put items into the subpocket (while it's empty) shows no change in the UI, but the items do seem to have been placed in the subpocket, since /subpocket remove (player) (item) (number of items) reports that x amount of items were removed.

My guess is that, for some accursed reason, items are placed into the subpocket at the location of the cursor (in this case, outside the bounds of the UI), but are detected and picked up from a field at a -x, -y offset from the UI.

Like this:

subpocket-hell

(the listed coords are those of the "actual" field)

(i am aware that the illustration is terrible but hopefully it gets the point across)

EDIT: If the cursor were positioned at (30, 30), it would place an item at (30, 30) of the "actual" field - but subpocket would highlight and only allow picking up the item at (1, 1) instead.

commented

I've just discovered that this bug does not occur when the game is in fullscreen mode.

Maybe subpocket isn't properly scaling its UI...? IDK.