createConstructionSite() on STRUCTURE_OBSERVER and STRUCTURE_POWER_SPAWN



  • I get -10 (ERR_INVALID_ARGS) in room.createConstructionSite because STRUCTURE_POWER_SPAWN isn't in the populated list it checks. (Thanks Hernanduer for the help with this).

    Also I don't know why STRUCTURE_OBSERVER doesn't work with this. I get returned a 0 when trying 

    new RoomPosition(10, 24, "E5N12").createConstructionSite(STRUCTURE_OBSERVER)

    but nothing appears. Trying the same spot with something else like 

    new RoomPosition(10, 24, "E5N12").createConstructionSite(STRUCTURE_ROAD)

    works just fine. Not sure if I'm messing something up here or something else is going on. Hope this helps.


  • Dev Team

    Thanks for reporting, fixed.