
I wrote this function so that I had 1 call to creep.moveTo which looked up my custom cost matrixes and could be modified later on with any other path finding improvements I wanted to make.
SCREEPS ROOM UPDATE
With this respawn things are little quite on the code front so it’s a perfect time to read through and update everything. Utils contains helper functions that are not in use by all my code and for now, I’ve been updating code as and when I needed to. Once you set the room name you will get that rooms terrain map loaded into the planner. You can use the room planner over on dissi’s screeps tools. You can now see the coordinates of your cursor and the rooms terrain makes building plans a bit easier. Dissi was kind enough to put the source of the planner on GitHub which let me open a couple of pull requests with some new features. I found getting the position for buildings right, editing the JSON to get things in the right place.

With a little extra code the room planner will drop a green flag on the first spawn in a room which means that from me placing the purple flag to claim the room its completely automated. I have a plan for each room at each control level which means that when a room levels up all the required construction sites get placed straight away and if a building gets destroyed it will be replaced automatically. These plans are a javascript object with all the buildings and their positions. Room Planningĭissi has an awesome tool for creating room plans. It has been the same for a few months and it is a bit plain. I already had an active safe mode in the fifth room I had claimed which was stopping me from using another in my main room.Īfter being wiped in a couple of rooms I decided to respawn closer to the other Overlords. The DEFCON system puts towers at the top of the energy supply list which after a prolonged engagement means that my spawning energy gets depleted with no refills. Of course, another one came along 10 minutes later and destroyed a tower and then the whole room. My ramparts put up a good fight and in one of my rooms, I did defeat the invader. Once they downed a tower in my room that was it, a single tower could not out damage the healing of the creep and the room gets wiped. So yeah, fighting tier 3 boosted creeps did not go well. This is part 17 of my Screeps story, you can read the whole story here. I can only assume, at this stage, that this is telling the creep to move to the closest Room Controller, as opposed to the Controller of the current room.Ĭan anyone point me in the right direction here?įull role code for reference: module.2017 Screeps Screeps Part 17 – Room Planning
SCREEPS ROOM UPGRADE
The Creep is told to upgrade the controller, and if not in range, move to wards it, using the code creep.moveTo() Now common sense makes me feel like this is an issue with "targeting". The builders finished the road and moved back to the main room.

The first few that did so i changed to builders, and put in a road. It didn't happen straight away, they first upgraded my Room Controller to level 2, but I left for a bit and came back to this: Then they just sit there, slowly dying because they can't upgrade it. My Upgrader's are travelling to the adjacent room and surrounding the unclaimed Room Controller. I've been following along with th_pion's tutorials successfully so far, however I've come across an issue, which i feel is probably based on the layout of my room. I'm a Scripting, Javascript and Screeps newb.
