Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. Rad-Inf-Sama
    3. Topics
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Topics created by Rad-Inf-Sama

    • Problems Harvesting...
      Help • • Rad-Inf-Sama

      2
      2
      Posts
      3344
      Views

      the problem is that the console is not that great when it comes to showing arrays and objects... the lookFor function returns an array.. so you have to use the first element to harvest.   http://support.screeps.com/hc/en-us/articles/203079201-RoomPosition#lookFor
    • Technical Issues with Rooms
      Help • • Rad-Inf-Sama

      2
      2
      Posts
      4290
      Views

      Because memory is serialized any objects you put into it lose their prototype, so the next tick when you pull that position out, its no longer a RoomPosition. One of the checks involved in throwing the error you are getting is _.isPlainObject which would return false if the object has no prototype.One of several ways you can work around this is to pass the attributes you have stored in memory into the RoomPosition constructor to make a new RoomPosition object whenever you pull it out of memory. `let myNewPosition = new RoomPosition(myMemoryPosition.x, myMemoryPosition.y, myMemoryPosition.roomName);` Also if you havent already, check out this link http://chat.screeps.com/ to get signed up for the https://screeps.slack.com/ slack team.There is a #help channel there where you can get pretty quick answers to questions like this.
    • Technical issues with a road builder
      Help • • Rad-Inf-Sama

      4
      4
      Posts
      5727
      Views

      Your script can only see rooms you have "visibility" in.  IE You have a creep in, or you have a building in that you own.  So send a 1MOVE part scout in the room you need visibility in and handle it there.
    • Feature: RAM & BUCKET buildings
      Feature Requests • • Rad-Inf-Sama

      7
      7
      Posts
      7490
      Views

      IMO the CPU limit is an important catch-up mechanic for competitive players. Giving entrenched users the ability to further solidify their advantage against someone who has to respawns just widens the existing military gap between low and high GCL players.
    • [SOLVED ]Intelligent Building placement
      Help • • Rad-Inf-Sama

      7
      7
      Posts
      10635
      Views

      How can that be possible..........  //if valid count up else reset the counter if(invalidTile){ new RoomVisual(room).drawCross(gridX + tx + area[0],gridY + ty + area[1],{color: '#ff0000'}) counter = 0; //skip to the position after the invalid tile (couse scanning through the area between invalid tile and start point is pointless couse it would always return invalid) console.log(gridXkey+" -> "+Object.keys(scan[gridYkey])[txScanKey]); gridXkey = Object.keys(scan[gridYkey])[txScanKey]; } else { counter++ new RoomVisual(room).drawCross(gridX + tx + area[0],gridY + ty + area[1],{color: '#00ff00'}) }