I am attempting to create an init.d script for my screeps private server. I am having issues with a couple of things.
I want to run screeps with a daemon user not root screeps-daemon
I want to make sure it is running in the correct working…
I'm trying to store link ID's in individual room memory, but it seems that the memory resets every tick. If I run:
Game.rooms.W45N28.memory.sourceLink = id
in the command line, and then immediately call Game.rooms.W45N28.memory.sourceLink, it…
I am attempting to save the source ID and the ID of which spawn is currently mining the source to memory under the current spawn in the room. Once I have that saved I can easily assign miners to each source without having to do FIND_SOURCES. Doing…
I just started and am trying to search for a structure by name. I've been looking through the API with no luck. I can't seem to find the name property on any structure objects, so I can't just loop through them all and find the one I want.
How can I…
I've commanded a bunch of creeps to certain positions but when I command this particular one it just keeps spazzing out. I've done nothing different from how I controlled the other creeps but it doesn't work the same. The other ones stay…
I've looked the web for info about what can I do in the current turn with my creep, and I found conflicting statements.
http://screeps.wikia.com/wiki/Creep -- from comments here, we can build and move at the same turn, or move then transfer…
How to reset the Memory object every time I start new Survival game? It is saved between games which might be unconvenient to track current game state.
How to use two arguments in a filter?
var source3 = Game.spawns.Spawn1.pos.findClosest(Game.SOURCES_ACTIVE, {
filter: function(object) {
return object.id != source1 && source2;
}
}).id;
Because my filter only considers the argument…
var enemy_creep = creep.pos.findNearest(Game.HOSTILE_CREEPS);
if (enemy_creep)
var enemy_direction = creep.pos.getDirectionTo(enemy_creep);
I'm trying to do something like this in screeps but this function just keeps returning -2. I don't see…
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 .…
Does anyone know where I should post bugs that I find? I noticed one issue.
When a creep's CARRY body part is destroyed, the energy capacity of that creep is reduced as expected. However, after healing the creep's CARRY body part, the carry…
This is a suggestion to improve the screeps experience for laptop users (or people with a "small" screen at about 17''). :)
It would be nice to have the option, to put the console to the left part of the screen. When I am using my laptop, the view…
In game each structures have property structureType that may be one of the following: spawn, extension, road, constructedWall, rampart. http://www.screeps.com/docs/Structure.php#structureType
So in the simulation we can see that the extension…
Yesterday I had a score of 1800 on the first map and now there is no more score. How could it be that this score was deleted? Furthermore, my scripts/modules were also deleted (I luckily saved them locally). Does it depend on cookies or something;…