Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. stillstate
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    stillstate

    @stillstate

    8
    Posts
    1574
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    stillstate Follow

    Posts made by stillstate

    • RE: ERR_NO_PATH when creep moveTo flag in another room

      @hyramgraff Wow. Thank you! That did it.

      posted in Technical Issues and Bugs
      stillstate
    • RE: ERR_NO_PATH when creep moveTo flag in another room

      @sandgrainone Thank you for the suggestion. I have tried many points within the room. Tried moving to a flag position and to several hardcoded positions.

      posted in Technical Issues and Bugs
      stillstate
    • RE: ERR_NO_PATH when creep moveTo flag in another room

      So using this code, my creep will exit the room in which it was spawned, and then once it's in the other room get -2 for moveTo() and an empty array [] result from findPath. I've had a ticket open with support for a couple days. No reply yet though.

        var targetPos = new RoomPosition(23, 48,'E49N34');
        var result = creep.moveTo(targetPos);
        console.log(`Result of creep.moveTo(new RoomPosition(23, 48, 'E49N34')): ${result}`);
        if(result == -2) {
          const path = creep.room.findPath(creep.pos, targetPos, { maxOps: 10000 } );
          console.log(`Path result was: ${JSON.stringify(path)}`);
        }
      posted in Technical Issues and Bugs
      stillstate
    • RE: ERR_NO_PATH when creep moveTo flag in another room

      Okay. Shard1.

      var result = creep.moveTo(new RoomPosition(23, 48, 'E49N34'));
      

      That's about as simple as it gets. I am given -2 for the result every time. I see my creep popping between my room (to the south) and the target room (E49N34) repeatedly.

      posted in Technical Issues and Bugs
      stillstate
    • RE: ERR_NO_PATH when creep moveTo flag in another room

      In this case, my creep exits my room and has an unobstructed path to the flag in the other room. It then turns around and returns to its home room, then turns around and returns to the flag room. Could be a bug in my code, but I found several unsolved cases like this on the interwebs. Too bad the sim is 1 room only. I guess my next step is testing on a local server.

      posted in Technical Issues and Bugs
      stillstate
    • RE: ERR_NO_PATH when creep moveTo flag in another room

      Did you ever find a solution to this? I am getting the same result.

      posted in Technical Issues and Bugs
      stillstate