been getting this error



  • TypeError: object is not a function
    at Object.findRoute (/opt/engine/dist/game/map.js:74:18)
    at Object.findExit (/opt/engine/dist/game/map.js:103:24)
    at Room.findExitTo (/opt/engine/dist/game/rooms.js:750:25)
    at RoomPosition.findPathTo (/opt/engine/dist/game/rooms.js:796:26)
    at Array.forEach (native)
    at RoomPosition.findClosest (/opt/engine/dist/game/rooms.js:861:24)
    at Room.getMyTrainTransfer (room:78:34)
    at Object.module.exports as train

    room:78 calls RoomPosition.findClosest() with an array of creeps



  • I am also getting the same error a lot, it happens when moving to a target in a different room:
    creep.pos.findPathTo(creepInAnotherRoom)
    It is very intermittent, sometimes couple of hours goes by without it and sometimes it fails every 3 minutes, never consecutively.



  • Is it possible to move to another room in a different way?