So I have this creep role called storer that is supposed to go fetch energy from containers and bring it to the storage. However, currently, it finds the container closest by Path and with an energy level greater to a certain threshold so that it doe...
The memory seems to still be reading and writing correctly, but the memory tab always shows the initial state, as though there were no creeps or spawns in the room. It wasn't like this a couple days ago. What do I do? The problem exists in Firef...
So i have been trying this to automatically spawn Creeps in percentage to total living creeps. however when i run this, it just keeps on spawning harvesters, completely ignoring the conditions even though console.log returns the expected results ....
I've tried to program healer creep. Simple task:    find damaged creep. heal damaged creep.  if no damaged creeps were found, return home (hardcoded Spawn1)   Here is my code (I also tried option with Game.CREEPS but it gave same effect):  module...
In the tutorial I'm seeing: Game.HOSTILE_CREEPS  var targets = creep.room.find(Game.HOSTILE_CREEPS);   No where in the docs do I see anything that tells me this is possible. Where would I find out more about these constants?...
So I wanted to start rewriting my code from Screeps using Typescript. But for some reason instead of generating a Javascript code, it generates the same typescript code. Am I missing something from tsconfig.json file?  Left Typescript, right suppose...
In Screeps, I this code doesn't work:  var sources = creep.room.find(Game.FIND_SOURCES_ACTIVE);   It says this:  Cannot read property 'find' of undefined   I have been looking around and cannot find ANY other way to find sources.  Also I&...
I have this object              Memory.creepsConf = {             //The role by which we will refer to the creep             roles: {                 harvester: "Harvester",//Harvests energy and gives it to the spawn                 upgrader:...
I want to make a creep that heals it self, but the code below doesn't seem to work. Any suggestions?  module.exports = function(creep) {     var targets = creep.room.find(Game.HOSTILE_CREEPS);         if(targets.length) {             creep.ranged...
With the following in memory: (this can be copy/pasted directly into the Memory tab and committed)      {     "creeps": {},     "spawns": {},     "DEBUG": true,     "q": {         "[spawn Spawn1]": [...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.