@hyramgraff Wow. Thank you! That did it.
Posts made by stillstate
-
RE: ERR_NO_PATH when creep moveTo flag in another room
-
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.
-
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)}`); }
-
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.
-
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.
-
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.