1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved "Failed to resolve atq"

Discussion in 'Developer Support' started by qverkk, Apr 12, 2016.

  1. qverkk

    Joined:
    Sep 22, 2015
    Messages:
    1,603
    Likes Received:
    381
    1. Spectre Version: 1.1.3
    2. Bind Version: 1.1.0
    3. Affected Games: RS3
    4. Code Used:


      Code (Text):
      1. public class CuttingHandler extends Task {
      2.     @Override
      3.     public boolean validate() {
      4.         Area treeArea = new Area.Rectangular(new Coordinate(3175, 3373, 0), new Coordinate(3154, 3422, 0));
      5.         return !Inventory.isFull() && treeArea.contains(Players.getLocal());
      6.     }
      7.  
      8.     @Override
      9.     public void execute() {
      10.         Coordinate treesCoord = new Coordinate(3167, 3410, 0);
      11.         GameObject tree = GameObjects.newQuery().names("Tree").filter(obj -> obj.isValid()).results().nearest();
      12.         Area treeArea = new Area.Rectangular(new Coordinate(3175, 3373, 0), new Coordinate(3154, 3422, 0));
      13.         if(treeArea.contains(Players.getLocal())) {
      14.             if (tree != null) {
      15.                 if(treeArea.contains(tree)) {
      16.                     if (tree.isVisible()) {
      17.                         if (Players.getLocal().getAnimationId() == -1 && !Players.getLocal().isMoving()) {
      18.                             if (tree.interact("Chop down", "Tree")) {
      19.                                 Execution.delayUntil(() -> Players.getLocal().getAnimationId() == -1, 5000);
      20.                             }
      21.                         } else {
      22.                             Execution.delayUntil(() -> Players.getLocal().getAnimationId() == -1, 5000);
      23.                         }
      24.                     } else {
      25.                         Camera.turnTo(tree, Random.nextDouble(0.300, 0.500));
      26.                     }
      27.                 }else{
      28.                     completeWalking(treesCoord);
      29.                 }
      30.             }
      31.         }
      32.     }
      33.     public static boolean completeWalking(Locatable location) {
      34.         WebPath q = Traversal.getDefaultWeb().getPathBuilder().buildTo(location);
      35.         if (q != null) {
      36.             q.step();
      37.         } else {
      38.             RegionPath q2 = RegionPath.buildTo(location);
      39.             if (q2 != null) {
      40.                 q2.step();
      41.             } else {
      42.                 BresenhamPath q3 = BresenhamPath.buildTo(location);
      43.                 if (q3 != null) {
      44.                     q3.step();
      45.                 }
      46.             }
      47.         }
      48.         return false;
      49.     }
      50. }
      ^ while cutting trees

    5. And the error would be:

      Code (Text):
      1. Failed to resolve atq
      2. [Debug] Unidentified GameObject of type atq on gamepack 2680a30cea88e0347e221b632956fc27991a2ac2.
      3. Failed to resolve atq
      4. [Debug] Unidentified GameObject of type atq on gamepack 2680a30cea88e0347e221b632956fc27991a2ac2.
      5. Failed to resolve atq
      6. [Debug] Unidentified GameObject of type atq on gamepack 2680a30cea88e0347e221b632956fc27991a2ac2.
     
  2. Best Answer:
    Post #2 by Cloud, Apr 12, 2016
  3. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124

Share This Page

Loading...