PTR bug with lookForAtArea


  • Culture

    I'm getting this error-

    TypeError: Cannot read property 'push' of undefined at keys.forEach.key (/opt/ptr/engine/dist/game/rooms.js:658:75) at Array.forEach (native) at _lookAreaMixedRegister (/opt/ptr/engine/dist/game/rooms.js:649:18) at Room.lookForAtArea (/opt/ptr/engine/dist/game/rooms.js:765:9) at RoomPosition.lookForAround (extend_position:294:36) at RoomPosition.lookInRange (extend_position:344:20) at program_outpost:312:36 at Array.forEach (native) at Group.forEach (class_group:174:17) at sosProcess.extended_processes.manageCreepGroup (extend_sosprocess:52:12)

     

    Also, it appears that the CSS is broken on this support site- typing this message out was painful as it's black text on a very dark grey background


  • Culture

    The reply CSS is working, lets see if I can make that error look better-
     
    TypeError: Cannot read property 'push' of undefined
         at keys.forEach.key (/opt/ptr/engine/dist/game/rooms.js:658:75)
         at Array.forEach (native)
         at _lookAreaMixedRegister (/opt/ptr/engine/dist/game/rooms.js:649:18)
         at Room.lookForAtArea (/opt/ptr/engine/dist/game/rooms.js:765:9)
         at RoomPosition.lookForAround (extend_position:294:36)
         at RoomPosition.lookInRange (extend_position:344:20)
         at program_outpost:312:36 at Array.forEach (native)
         at Group.forEach (class_group:174:17)
         at sosProcess.extended_processes.manageCreepGroup (extend_sosprocess:52:12)

  • Dev Team

    What is the exact code sample to reproduce this bug?


  • Culture

    Type this into the console and it'll report back with an error-

    > Game.rooms['W5S29'].lookForAtArea(LOOK_RESOURCES, 19, 4, 21, 6)

     


  • Dev Team

    Thanks, fixed.