glitchassassin / screeps-cartographer

Cartographer is an advanced (and open source) movement library for Screeps
29 stars 8 forks source link

Cannot convert undefined or null to object #29

Closed mkaulfers closed 1 year ago

mkaulfers commented 1 year ago

Not 100% sure what caused this. I was able to snap a SS before it was "Poof".

image

glitchassassin commented 1 year ago

Looks like Game.map.describeExits returned null because it didn't recognize the room from your creep's creep.pos. There's probably some condition in your code where creep.pos.roomName might not be a valid room. Not sure without seeing it.

mkaulfers commented 1 year ago

@glitchassassin yeh that's probably true, I'd say don't worry about looking into this one just yet. Rouge and I looked at it and we think we know a proper fix for it. We just placed it here for the sake of tracking purposes. We intend to isolate it and figure it out, if we get something from carto, we'll put up a PR. We haven't seen it since we did some cleanup so that's entirely possible.

glitchassassin commented 1 year ago

Sounds good!