To further reduce the CPU cost, rather than executing the fill logic after every transfer, queens are assigned a single chained task object which represents an entire “manifest” of supply operations which can be done with the creep’s carry capacity. Each “quadrant” (group of contiguous buildings) in the bunker has a hard-coded fill order (illustrated in the above image) to minimize walking distance, and each queen gets assigned two quadrants and a “battery” (the top and bottom containers in the bunker, which serve as an energy buffer).
![reddit screeps reddit screeps](https://i.ytimg.com/vi/c07esP_ThBA/hqdefault.jpg)
If there are ramparts within range 3 of the anchor below their target hits, the manager will be spawned with 32 WORK parts and will fortify the ramparts when it is idling.Īlthough they share the same role name as the hatchery attendants in the classic layout, queens are run by a separate overlord in bunker-type colonies, which features a large number of hard-coded optimizations specific to the bunker layout. The most notable difference is that managers for RCL8 bunkers are immobile (a design choice enabled by some improvements to my creep spawning code), spending their entire life at the central “anchor” tile of the bunker. Managers are relatively unchanged in bunker colonies and are run by the same overlord as in the classic layout. Managers are stationary 16-CARRY 0-MOVE creeps that sit in the center of each bunker, connecting the storage, terminal, central link, and RCL8 structures. Queens are general-purpose base attendants which fill and empty structures requesting any type of resource. Here’s an annotated image of a fully-developed base:Įach bunker has three permanent attendants: a manager and two queens. The final design went through a lot of iterations, but I’m quite happy with how it turned out.
Reddit screeps how to#
Bunker assets have been sitting in the AI for a long time, but living next to everyone’s friendly neighborhood tiger forced me to prioritize their development one he figured out how to exploit the flaws of my previous layout. This design served this purpose well, but it suffered from two key defensive flaws: the tower spread reduces total tower damage at siege points, and the spawning rate can be limited by the hatchery link bandwidth.Įnter bunkers.
Reddit screeps full#
Having a physically separated “hatchery” (spawning block) and “command center” (storage block) allows for you to place the central dropoff point for resources closer to the ideal location that minimizes total path length to nearby sources without being constrained by the full bulk of the base. The classic “box and flower” layout (like the one in this post) was designed primarily with logistics in mind. While none of them were individually as technically challenging or original as the logistics system to warrant their own post, I figured I’d make this post a show-and-tell session for some of the new features I’ve been working on. Over the last few months since my last post, Overmind has evolved considerably as I’ve added a ton of new features to my bot (read: 22k new lines of code). Jerk sack of a thing.Most of my previous posts have focused on a single aspect of my bot development.
![reddit screeps reddit screeps](https://thumbs.gfycat.com/FriendlyHatefulAnnashummingbird-poster.jpg)
Autocomplete behaves like an annoying popup IMO anyway, particularly when it actually DOES autocomplete to something you didn't actually type. It auto-tidies when saving files, has the usual split-window features etc. I'm using VSCode with NO autocomplete functionality. Apparently not that many dudes are running W10 and Typings? But I'm getting errors from Typings that are stopping me from progressing. I'm at the stage where I have NPM and Typings installed. Reminds me so much of elitist rubbish instructions for anything linux. leads to the typescript declarations (also linked from the screeps helpfull links thread up top of these forums.not not that helpfull for NPM noobs like us.) Which are here: Ī bit of a mess. (like you've installed NPM, and already know how to import external packages etc. Most of the autocomplete instructions have a huge pile of assumptions. (check his noobie guide videos.they're worth it to kick off in screeps.