Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [screeps]

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

2
votes
0answers
53 views

What would cause a room to disappear in the game Screeps?

I spawned in room E62N94 on Shard 0 a few hours prior to posting this question. When I logged back in later the same day to check on my creeps, I found my room and most of the rest of the sector awash ...
0
votes
1answer
50 views

Can an invader spawn on an edge that leads to an owned room

Invaders randomly attack rooms that have a player in them. They seem to spawn on the edge of a room. Can such an invader spawn on an exit that leads to another room where I own the controller?
1
vote
0answers
62 views

Survival mode keeps freezing

Lately survival mode has kept freezing up on me. The animation of the spawn building (it grows and shrinks) keeps happening as well as the energy animation. I'm not getting any errors or anything ...
2
votes
1answer
235 views

Is picking up energy instant?

Is it instant to pick up any amount of energy from dropped enemy creeps? If it isn't I doubt how efficient it would be to not only program my creeps to pick it up but cost efficient having a creep ...
5
votes
1answer
491 views

How Do I Detect Swamps in Screeps

In screeps, I can see swamps using my browser window. However, I can find no way for my script to detect if the terrain is a swamp except for having my creeps walk around marking swamps they encounter ...
3
votes
2answers
219 views

My program works in simulation but fails in game mode

I've set up my code so that my main module consists of only the following: var main = require('main2'); main(); This works in simulation's survival training mode, where main is a function. However,...
3
votes
1answer
253 views

Simulation and Survival mode not equal?

I created a script in Simulation mode which runs great. Then when I want to execute it in survival mode it doesn't work anymore. It seems to have problems with the Memory hash in survival mode. ...
3
votes
1answer
848 views

Are any Actions of Screeps mutually exclusive to eachother?

I have designed a guard screep with ATTACK, RANGED_ATTACK, HEAL, and MOVE. My script executes each of these actions at valid targets (heal the guard next to me, while attacking the hostile creep in ...
5
votes
2answers
1k views

Can a creep commit suicide?

I am programming a script for my guards, if the guard can't move, make the guard commit suicide, so my system can spawn a new one again. But how do I do that? It's not listed in the docs. I am ...