ERR_NO_PATH from room E6S16 to E7S16



  • Hey there,

    My creeps keep getting stuck when trying to path between the mentioned rooms. Spent a good chunk of time trying to troubleshoot but I just can't get Creep.moveTo to return anything but -2 (ERR_NO_PATH) when the creep is at certain spots in E6S17 and the moveTo target is in E7S16.

    My creeps who avoid this room seem to have no issues.



  • Some creeps who path through the room don't have issues (and they're running the same code).


  • Dev Team

    Do you use ignoreCreeps: true in your code?



  • Sorry for the late reply; not sure why I didn't see an e-mail about your question.

    I don't use ignoreCreeps: true, but I use the avoid option and pass in 5x5 boxes of RoomPositions around each source keeper in a SK room.

    https://gist.github.com/ChuckMayo/0aff99f631d45364b354

    (I know this isn't very optimized, that's on my list).

    Pretty much every creep who navigates the wilderness uses this code. It only breaks recently and only in certain source keeper rooms.



  • Before you ask, the boxes of room positions shouldn't be obscuring paths in the rooms where the creeps are getting stuck. I can provide an example using the room history player (I've pulled out of the two rooms that were causing problems).