LookAt not working
-
whenever I type
"Game.rooms['sim'].lookAt(new RoomPosition(25,25, 'sim'))" or "Game.rooms['sim'].lookAt(25,25)" it returns this error, it does the same in ptr(I did change the room names)
"TypeError: Cannot read property '25' of undefined at N:2:176609 at Object.lookAt:2:168406 at _console1521126049290_0:1:15760 at eval:3:4 at Object.r.runCode:2:144628"
I Don't know what I'm doing wrong, any help would be appreciated, thanks.
-
Apparently nothing?!
Just seems broken... can somebody else confirm that too?Very odd...
-
.lookAt()
returns that error in sim regardless of what I input for it..lookForAt()
works just fine.
-
But in ptr?
-
This directly relates to SIM as in https://screeps.com/a/#!/sim
Not sure what PTR has to do with it. It works just fine on live.
-
Have you also tested it on PTR?
It throws the same error on PTR for me which is odd.
I tested it on live too where it works fine.If this is an actual bug it mustn't be carried over to the live realm.
-
It might relate to the tombstones not existing in some part of
findAt
-
The sim is fixed, thanks for reporting.
-
I'm also getting this error in PTR, given lookAt(14,24) which is a normal position in the room:
TypeError: Cannot read property '24' of undefined at _lookSpatialRegister (:14286:77) at Object.lookAt (:14380:9)
This is with IVM enabled