Welcome!

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

Sign up now!
RuneMate will permanently shut down on August 7, 2026
due to events outside our control. You can continue using RuneMate until this date after which it will no longer be available. Thank you to everyone that contributed to RuneMate's success and to the community for the opportunity to serve you all these years.

  • Learn about RuneMate Vault and how its zero knowledge local encryption already protects your sensitive information.
  • Edit or delete your RuneMate account from your Account Settings.
  • All account upgrade subscriptions have been cancelled. No action required.

Resolved Failing to find gameobject

Author of MaxiBots
Joined
Dec 3, 2013
Messages
7,468
RS3. Unable to find the tree's if i start the bot logged out. When i start it logged in it has no issues.
If i start logged in and then log out, it has no issues either.

@Cloud
 
More specifically, if you store the query builder while logged out or in the lobby it never finds a tree. If you store the query builder after logging in, it works fine. @Cloud
 
Author of MaxiBots
Joined
Dec 3, 2013
Messages
7,468
Code:
final Tree tree = activity.treeProperty().get().getLeft();
final TreeArea area = activity.areaProperty().get();
new WoodcutterContext(tree.toString(), area.getArea(tree));

public WoodcutterContext(String treeName, Area treeArea) {
    setQueryBuilder(treeName, treeArea);
}

public void setQueryBuilder(String treeName, Area treeArea) {
    this.treeArea = treeArea;
    builder = GameObjects.newQuery().names(treeName).actions("Chop down", "Chop").surroundingsReachable().within(treeArea);
}
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,121
Code:
final Tree tree = activity.treeProperty().get().getLeft();
final TreeArea area = activity.areaProperty().get();
new WoodcutterContext(tree.toString(), area.getArea(tree));

public WoodcutterContext(String treeName, Area treeArea) {
    setQueryBuilder(treeName, treeArea);
}

public void setQueryBuilder(String treeName, Area treeArea) {
    this.treeArea = treeArea;
    builder = GameObjects.newQuery().names(treeName).actions("Chop down", "Chop").surroundingsReachable().within(treeArea);
}
@Cloud the issue is that surroundingsReachable() calls (and caches) Players.getLocal() which isn't available when not logged in.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
@Cloud the issue is that surroundingsReachable() calls (and caches) Players.getLocal() which isn't available when not logged in.
It doesn't cache Players.getLocal() since it returns a null value, and since it returns a null value it can't determine what's reachable.
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,121
Caching a null value is still caching. :p Regardless we should be able to fix it with a callable.


Sent from my iPhone using Tapatalk
 
Top