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

Resolved ViewportPath failing to step

Discussion in 'Developer Support' started by Arckos, Jun 21, 2017.

  1. Arckos

    Joined:
    Nov 18, 2013
    Messages:
    126
    Likes Received:
    26
    Hi,

    I've just started running into an issue with the ViewportPath#step returning false and not moving. Haven't changed any of my code and it worked fine, so not sure what's going on. Hopefully someone might have some insight. Thanks

    Code (Text):
    1.  
    2. final BresenhamPath path = BresenhamPath.buildTo(tile);
    3. if (path != null) {
    4.  
    5.     ViewportPath screenPath = ViewportPath.convert(path);
    6.  
    7.     if (screenPath != null) {
    8.  
    9.         System.out.println(screenPath.getVertices());
    10.         System.out.println("PATH NOT NULL");
    11.         if (screenPath.step()) {
    12.  
    13.             System.out.println(":)");
    14.         } else System.out.println(":(");
    15.     } else {
    16.  
    17.         System.out.println("PATH NULL");
    18.     }
    19. } else System.out.println("PATH IS NULL");
    20.  
    Code (Text):
    1.  
    2. [Coordinate(3207, 3222, 1), Coordinate(3206, 3222, 1)]
    3. PATH NOT NULL
    4. :(
    5.  


     
  2. Best Answer:
    Post #3 by Arckos, Jun 21, 2017
  3. awesome123man

    awesome123man Go check out new bots and give helpful feedback.

    Joined:
    Jan 31, 2016
    Messages:
    5,413
    Likes Received:
    1,662
    Believe a pathing change cloud is working on may be the culprit, but it should be really temporary
     
  4. Arckos

    Joined:
    Nov 18, 2013
    Messages:
    126
    Likes Received:
    26
    Thanks for letting me know :)
    --- Double Post Merged, Jun 21, 2017, Original Post Date: Jun 21, 2017 ---
    Looks like it's working correctly again :D
     
    awesome123man likes this.

Share This Page

Loading...