Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug InterfaceMode

Joined
Aug 5, 2015
Messages
12
Attempting to detect the interface mode for the purpose of hud-based actions...

Code:
        if (InterfaceMode.LEGACY.equals(InterfaceMode.getCurrent())) {
            System.out.println("Legacy InterfaceMode.");
        } else if (InterfaceMode.MODERN.equals(InterfaceMode.getCurrent())) {
            System.out.println("Modern InterfaceMode.");
        } else {
            System.out.println("Unknown InterfaceMode.");
        }
Outputs:
(12:14:05) Modern InterfaceMode.
even in legacy mode...

This is a considerably large issue for me as I wish to produce something that is universal and I, myself, only use legacy when I can help it.

However, in addition to this issue, I'm presented with an additional issue which I've noticed has an affect on other developers' bots as well...
When using
Code:
        if (!ActionWindow.BACKPACK.isOpen()) {
            ActionWindow.BACKPACK.open();
        }
The inventory does not open...

Its possible that I'm doing something wrong, sure, but I believe this to be a bug... If I'm doing something wrong, please tell me..

Edit:
The second bug is not entirely a bug. I've found what was causing the issue and the interface is now opening. However, the custom ribbon on the ActionWindow causes the ActionWindow.BACKPACK.open function to fail...

Edit2:
This temporarily fixes my issue with legacy mode:
Code:
       if (!ActionWindow.BACKPACK.isOpen()) {
            ActionWindow.BACKPACK.open();
        }
        if (!LegacyTab.BACKPACK.isOpen()) {
            LegacyTab.BACKPACK.open();
        }
but I'd rather not use this indefinitely as I'm sure that I will, at some point, come into contact with other issues...
 
Last edited:
Joined
Aug 5, 2015
Messages
12
More info on the bug...
I'm not sure that I fully understand the output being the way that it is, but...

Started the client, Logged in and checked:
(07:34:31) InterfaceMode: Legacy
Remaining logged in, switched to modern:
(07:36:36) InterfaceMode: Modern
Remaining logged in, switched to legacy:
(07:38:48) InterfaceMode: Modern
Logging out and back in, testing again:
(07:43:50) InterfaceMode: Modern

To check, I didn't even take the chance of using any if statements as I was concerned that I would screw up as I'm half asleep, I used:
Code:
System.out.println("InterfaceMode: " + InterfaceMode.getCurrent());
 
Joined
Aug 5, 2015
Messages
12
e7cea4583f2dc2b07982e7e242b0eea2.png

^ When you click the button that's currently in the bottom-right corner. Editor ribbon or something like that.

Edit:
While I have your attention here, I would like to make a suggestion...
Something that's a nightmare for me, both as a user and as a dev, is the notification about the slim headers.. PLEASE set this up so that it has a "don't show again" option.. As a user and as a dev, this is highly irritating to see EVERY time a bot is started..
 
Last edited:
Mod Automation
Joined
Jul 26, 2013
Messages
3,053
e7cea4583f2dc2b07982e7e242b0eea2.png

^ When you click the button that's currently in the bottom-right corner. Editor ribbon or something like that.

Edit:
While I have your attention here, I would like to make a suggestion...
Something that's a nightmare for me, both as a user and as a dev, is the notification about the slim headers.. PLEASE set this up so that it has a "don't show again" option.. As a user and as a dev, this is highly irritating to see EVERY time a bot is started..
Approve, but I wouldn't advise ignoring that warning. It can result in some seriously undesirable behaviors. If they are game-breaking then I would NOT approve of this suggestion but that's for @Cloud to decide. If it is game-breaking then I would also encourage @Cloud to look into supporting it to make the issue moot.
 
Joined
Aug 5, 2015
Messages
12
Approve, but I wouldn't advise ignoring that warning. It can result in some seriously undesirable behaviors. If they are game-breaking then I would NOT approve of this suggestion but that's for @Cloud to decide. If it is game-breaking then I would also encourage @Cloud to look into supporting it to make the issue moot.

I run the game with small headers as I use legacy mode - its automatically enabled and cannot be disabled. In addition, it enables the hidden headers... Given this, I am still able to use the bots in legacy mode, EXCEPT that the Alpha collection has issues with its map usage (which there's points where it should be using ground walking anyway).... Outside of the Alpha series, I've seen no issues in using the small/hidden headers...
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
e7cea4583f2dc2b07982e7e242b0eea2.png

^ When you click the button that's currently in the bottom-right corner. Editor ribbon or something like that.

Edit:
While I have your attention here, I would like to make a suggestion...
Something that's a nightmare for me, both as a user and as a dev, is the notification about the slim headers.. PLEASE set this up so that it has a "don't show again" option.. As a user and as a dev, this is highly irritating to see EVERY time a bot is started..
That notification typically only appears on modern interface modes, but since the check is broken it was always showing. We're not going to suppress it because on modern interface mode it is essentially, well, essential to not use slim headers.

The InterfaceMode check has been fixed for the next release. In addition I'm looking into your ribbon complaints.

Edit: When using that minimized ribbon does it hover the button?
 
Joined
Aug 5, 2015
Messages
12
That notification typically only appears on modern interface modes, but since the check is broken it was always showing. We're not going to suppress it because on modern interface mode it is essentially, well, essential to not use slim headers.

The InterfaceMode check has been fixed for the next release. In addition I'm looking into your ribbon complaints.

Edit: When using that minimized ribbon does it hover the button?

No. The minimized ribbon is ignored.
In addition, I'd like to note that slim/hidden headers seems to work fine for me on the modern interface type as well.
 
This Code:
Code:
       SpriteItemQueryResults itms = Inventory.getItems(items); //This has been verified to be yielding results; the correct amount in addition
        SpriteItem itm = itms.first();
        itm.interact(itm.getDefinition().getInventoryActions().get(0));//This seems to be where the issue is...
Yields this result:
(Exhibit A occurs at a random point, no time guarantee)
883de87b7aed3b6dcf162a5698668696.png

(Exhibit B is an animated GIF)
fcb83cde7cf46fe0e094913540643ecd.gif
 
Top