Questions tagged [screeps]

Screeps is a JavaScript based, programmable web browser MMO RTS.

Screeps is a JavaScript based, programmable web browser massively multiplayer online real-time strategy game.

139 questions
0
votes
2 answers

Screeps private server configuration init.d

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…
Joseph Cota
  • 205
  • 1
  • 11
0
votes
2 answers

screeps room memory seems to reset every tick

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…
0
votes
1 answer

Screeps Issue with saving custom object under spawn to memory

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…
JoBaxter
  • 710
  • 2
  • 12
  • 23
0
votes
2 answers

How do I search for a structure by name?

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…
Douglas Gaskell
  • 9,017
  • 9
  • 71
  • 128
0
votes
1 answer

Strange survival mode only error

if(creep === Game.creeps["Worker0"]) { var sources = creep.pos.findClosest(Game.SOURCES); creep.moveTo(24,29); creep.harvest(sources); creep.transferEnergy(Game.creeps["Transport0"]); } if(creep === Game.creeps["Worker1"]) { var…
Aequitas
  • 2,205
  • 1
  • 25
  • 51
0
votes
1 answer

Why won't my Creep stay still?

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…
Aequitas
  • 2,205
  • 1
  • 25
  • 51
0
votes
1 answer

Sequence of actions for screeps

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…
desudesudesu
  • 2,185
  • 1
  • 15
  • 20
0
votes
1 answer

Memory reset in Survival mode

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.
artch
  • 4,487
  • 2
  • 28
  • 35
0
votes
1 answer

Logical operators in the filter option

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…
Jbz797
  • 13
  • 2
0
votes
2 answers

Screeps getDirectionTo returning -2

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…
0
votes
1 answer

screeps: conditions won't work - clueless

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 .…
Kedros
  • 1
0
votes
1 answer

Energy Capacity Bug / Where To Post Bugs?

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…
user4293279
0
votes
1 answer

Suggestion for Screeps: Option to put the Console/Script-Editor to the left

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…
flkr
  • 13
  • 2
0
votes
2 answers

How to get amount of energy from extension structure?

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…
Kich
  • 33
  • 3
0
votes
2 answers

Screeps score/modules got reset

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;…
PascalVKooten
  • 20,643
  • 17
  • 103
  • 160
1 2 3
9
10