terewhour.blogg.se

Screeps safe mode
Screeps safe mode




screeps safe mode
  1. #Screeps safe mode update
  2. #Screeps safe mode code

  • I have setup the main routine to call the creeps.manager process once every 5 game ticks.
  • This is beacause of the next change and wanting to do the defender role to run with every clock tick.
  • I removed the defender role from creeps.manager.
  • It will build on every available spawn in a room now.
  • I can now be building 2 creeps at the same time in one room.
  • It looks for dangerous creeps first, then buildings, controllers, etc. All the roles are exactly the same, that way you can be reserving 3 rooms per one of your rooms. They all will go to a room and reserve the controller of a room.
  • There are 3 new roles called reserve, reserve2 and reserve3.
  • So long I am not sure I can remember everything that has changed.

    #Screeps safe mode update

    It has been a long time since I put an update out. This will also be like a diary as to what I was thinking so in the future I can look and see why did some of the stupid things I did. I am going to start putting details about my changes I upload here instead of in the commit messages. I do not have much spare time so it will take a while but will be good for me too as this is getting more and more complicated. I am going to start creating a wiki in my spare time that details all of the roles, functions, etc.

    screeps safe mode

    It will be called walkthrough.md and will be part of the package you get from github. I will e writing it as I start new on a private server so it will take some time. I am going to start working on a step by step walkthough of starting from a new account and new room using these scripts. That is where I am adding things as I think about them. TODO Listįor the latest to do list look at the top of the main.js file.

    #Screeps safe mode code

    The ultimate goal is to be able to create a room, drop this code and let the room grow on it's own with you only needing to put construction items when and where needed. This code is very very ugly, once I get it all figured out I want to re-write it in Classes or at a minimum restructure and make it pretty. There is still much automation yet to create, more than I even know of. It is interesting to look through how far the code has advanced since the first upload. I am new to screeps but want to put my code in case it helps anyone else.






    Screeps safe mode