r/screeps • • Jul 27 '16

Screeps is ridiculously expensive

0 Upvotes

15€ on steam + 80€ a year cheapest. Are they kidding us?

i ranted about this as well on steam:

http://steamcommunity.com/app/464350/discussions/0/353915309331719098/

this game is doomed in growth if they don't offer cheaper subscriptions. 80€ a year is just gross. also, i never used the CPU given to me, guess because i coded effectively. why should i then pay for the full amount? i rather waste the CPU to get the most for my money sigh ---


r/screeps • • Nov 27 '16

As a professional programmer, I resent the fact that this game starts me with zero workable code.

5 Upvotes

You want me to write some javascript from scratch, fine. I can do that.

You want me to use your framework, give me some patterns to follow. Make your documentation accessible inside the game, and start me with some basic code that works.

Please don't lead me through the tutorial and then take my code away. That's just mean.

Why not give new players the tutorial code to start out with? If I wanted to do something laborious I could go code for my employer and get paid. A game is supposed to be fun.

Edit: this was intended mostly as feedback for the game designers. I deal with the same BS day in and day out... if they are aiming this at programmers(which it looks like they are) it would seem prudent of them to provide us with the basics we need to play the game without making us go hunt for them. Scouring the Internet for tools and documentation is a tedious part of having a job as a programmer. This is a game. It should be fun.

Edit 2: the tutorial code is available after the tutorial is complete. The game just does a bad job of telling you this. Go to branches above the modules area on the left. Tut code lives there.


r/screeps • • Jul 10 '25

My spawn wont let me spawn a creep without i putting it a name forcefully

0 Upvotes

I was watching a tutorial, the guy can spawn creeps and the game puts the name itself, is it a mod or sth?


r/screeps • • Nov 10 '19

Is Shard3 still pay2win?

3 Upvotes

I looked at the game years ago -> realized it was pay2win (to a certain degree at least) -> ignored the game because of this.

Fast forward until a week ago when i started playing on shard3 because my main problem with the game seemed eliminated.

But now after diving in a little deeper i have the following question: Can't i just buy a subscription token -> sell it in game to get millions of credits -> use those credits on shard3 to buy +300% damage (or whatever) for all my creeps -> steamroll any opponent without a problem?

Am i missing something here? At least i can't see any error code like NOT_ALLOWED_ON_SHARD3 when i try a Game.market.deal() for a token ...


r/screeps • • Aug 30 '19

A screeps server

2 Upvotes

Yo. I made an unofficial screeps discord server. Its for people that wuld preffer discord rather than slack. Give it a shot! https://discord.gg/wZKGV4k


r/screeps • • Aug 15 '16

Screeps is endlessly frustrating.

2 Upvotes

I've spent the past 6-8 hours playing Screeps. I love the idea of it, but the API Reference contains few examples and nothing in the way of context for the content it does provide (for example, when we can expect 'creep' to return as undefined when it is used in an example, whether or not the console caches variables in memory, etc.). In addition, I've had a handful of known good scripts halt all creep activity and even cause the console to hang, not returning errors when you enter random text into it, etc.

I'd say this game has a long way to go but has potential, however it looks like this game has been out in some form or fashion for the past two years. It may be past its prime to work out some of these foundational quirks.


r/screeps • • Aug 04 '17

No actual support available for paying subscribers?

1 Upvotes

Are support requests just routed directly to someone's trash can?

I've been unable to play for 18 hours now, and in 18 hours have received nothing but an automated response to my support request.

I've been patient, I've tried to troubleshoot it on my own, I've provided them with all the steps I've taken. I've looked for help on slack, etc etc etc.

The community has been great, as always, the other paying subscribers of the game are always willing to spend their time helping each other out. But where is support? After 8 months playing and paying for the game, the first time I need to reach out and get some assistance, I get... nothing. Not so much as a "we'll look into it".

My creeps are long dead, my reservations expired. Containers and roads are decaying away. 13 room controllers ticking down as my empire slowly crumbles.

Is anyone out there? Does support even exist? Or do they just collect our $ and rely on the community to provide support for itself?


r/screeps • • Jul 10 '18

Summer sale?

1 Upvotes

To the devs, I have been wanting to buy the game from steam but I'm still waiting and am not sure if this game will go on sale?


r/screeps • • Apr 27 '17

Why do novice areas allow chained safemodes?

0 Upvotes

It gets a little ridiculous when a guy can sit there and ignore all defenses, instead simply spamming this arbitrary "safe mode" feature to counter everything. Why are we teaching noobs to completely ignore defense code while still allowing them to hard counter anyone who actually wants to expand?


r/screeps • • Feb 15 '17

Too poor to buy the game, but want to set up a server? Also a CPU question.

1 Upvotes

A friend just got me into this game, and I'm obsessed with thinking about it now. I'm gonna buy it eventually, but not right now.

Is it possible to set up and play on my own server without buying the steam client? There's the steam API thing, but it requires a web domain to do that, and I don't have one of those either.

A side question: How far can you get with just 10 CPU? I assumed CPU is literally "how long my script takes to execute", but in an archived thread here, I saw someone say there's specifically a 0.2 CPU cost to make a creep execute an action, regardless of what that action is.

So no matter how efficient I make my code, there's a theoretical, hard-coded 50 entity limit that my scripts can control without a subscription?


r/screeps • • Oct 03 '18

If you're hitting the CPU cap or want to reduce CPU usage

6 Upvotes

One of the biggest draws from CPU from the tutorial is their err code checking

if(creep.harvest(source) === ERR_NOT_IN_RANGE) creep.moveTo(source);

Every single one of your creeps that does this immediately pull 0.2 CPU. All actions that change the nature of the game draw 0.2, whether they fire successfully or not.

I use this instead:

if(creep.pos.inRangeTo(source, 1)) creep.harvest(source)

else creep.moveTo(source);

pos.inRangeTo(target, range) uses wayyy less than 0.2 CPU. So save yourself alot of CPU if you're constantlly calling for creep actions when they're not needed.


r/screeps • • Nov 23 '14

Proposed Etiquette for Live Game

0 Upvotes

I want to propose some etiquette for when we go Multiplayer. I've been thinking about it, and I think we could all use an unofficial rule of no ambushing people, no invading rooms without warnings.

We all want to write the best bots, and test our skills, and the main fun of multiplayer battles will be testing our automated scripts against someone elses. See if our screeps AI holds up. And I think we'd do well if these battles were planned. If, when you wanted to try to take over a Room, you sent a message to the player in that room at least 24 hours in advance, saying when you'll be coming in to kill them.

With this, when we attack we can test our screeps against other screeps that are actually prepared, and we don't have to worry about constantly being in fear of our neighbours. Instead, we can just focus on optimising our bots.

Thoughts people?


r/screeps • • Oct 06 '19

Question

4 Upvotes

Is there any way to play Screeps without buying anything? I do not think so but just checking if you could play on some unofficial server or something along those lines. Thanks in advance.


r/screeps • • Jun 03 '26

Efficient

Thumbnail
gallery
12 Upvotes

I am a pathing genius...


r/screeps • • Mar 14 '17

Couldn't​ Screeps utilize peer to peer networking?

1 Upvotes

Hi, from what I have read as to why you need a subscription is for the massive server requirements. Wouldn't P2P solve the majority of the issues? I was thinking P2P in the sense of how crypto currencies work. I realize this is not a perfect solution because of exploitation concerns. They could have it so you could pay a subscription or have a service in the background for P2P.


r/screeps • • May 18 '18

Lab Reaction solution

1 Upvotes

Hey all, I wanted to share my solution doing lab reactions. Hopefully it's readable, I put comments before most code.

This hasn't been tested yet, I'm working on getting a room to level 6 so I can start ironing out bugs. My question to all of you: is there any code in here that makes you cringe? Javascript isn't my first language, and all my code looks like this. I was wondering if there was any best practices I'm missing that would reduce the amount of code I'm utilizing. I will refactor it later once I know it works, but is there some key syntax I'm missing that would reduce alot of what I'm trying to do?

Anyways, feel free to use this if you like, but it's definitely not bug free

Creep.prototype.runLabTechLogic = function() {

/*Out of the 10 labs, there will be two input labs. They hold the two materials we are combining, and then the other 8 will run reactions each turn and deplete the input to create the output. The two input labs are at [x-1, y+3] and [x+1, y+3], compared to the spawn*/

/*At level 6, we will have just one output lab. At level 7 we have 4 output labs, and then finally 8 output labs at level 8. These labs are put into an object on room initialization at the beginning of the code.*/

/*The LabTech will be in one of 4 states during it's life time:

  Running reactions: the labtech just sits around until it's done

  Emptying out the labs: Once the reactions are done, the labtech empties out the labs into storage

  Figure out which reaction goes next: The storage is tested for contents to see which is next...if     
                                   there isn't enough to start a new wave of reactions, the 
                                   labtech rests until the market processes have built up the 
                                   storage

  Filling the labs: The labtech has figured out which minerals to load up...once the two labs are 
                loaded we will begin running reactions*/




//Our initial entry to get things running...we store this in room memory because of the transition //between labtechs when they die could mess things up

    if(!this.room.memory.runTheReaction && !this.room.memory.emptyLabs &&         
    !this.room.memory.testStorage && !this.room.memory.fillLabs)
             this.room.memory.testStorage = true;

//declare how much we want to store into storage and how much we want to begin reacting. Possibly //have this dynamic in the future
    const AMOUNT_TO_STORE = 500;
    const AMOUNT_TO_REACT = 100;

//If the storage is full and there's no reactions to run, go into rest mode...do a check every 100 //ticks to see if we need anything
    if(this.memory.rest){
        if(Game.time % 100 === 0){
            delete this.memory.rest
        }
        else{
            return;
        }
    }

    //If the labtech just spawned, we need to store the input labs into it's memory. Should only 
//happen once.

    if(!this.memory.inputLab1)
        this.memory.inputLab1 = this.room.lookForAt(LOOK_STRUCTURES, this.room.spawns[0].pos.x - 1, 
                            this.room.spawns[0].pos.y + 3)[0].id;
    if(!this.memory.inputLab2)
        this.memory.inputLab2 = this.room.lookForAt(LOOK_STRUCTURES, this.room.spawns[0].pos.x + 1, 
                            this.room.spawns[0].pos.y + 3)[0].id;

    this.inputLab1 = Game.getObjectById(this.memory.inputLab1);
    this.inputLab2 = Game.getObjectById(this.memory.inputLab2);

    this.outputLabs = [];

    //Grab the output labs from the room object. The output labs are the ones that aren't the inputs
    for(let i in this.labs){
        if(this.labs[i].id === this.inputLab1.id || this.labs[i].id === this.inputLab2.id)
            continue;
        this.outputLabs.push(this.labs[i]);
    }

//We are going to test first to see if our input materials are exhausted from the lab. If not, we //continue the reaction
    if(this.room.memory.runTheReactions){
        //If the labs aren't on cooldown
        if(!this.inputLab1.cooldown && !this.inputLab2.cooldown) {
            //run the reactions
            for (let i = 0; i < this.outputLabs.length; i++)
                this.outputLabs[i].runReaction(this.inputLab1, this.inputLab2);
            //Test our exit condition, which is that the labs are on their last reaction.
            if(this.inputLab1.mineralAmount <= outputLabs.length) {
                delete this.room.memory.runTheReactions;
                this.room.memory.emptyLabs = true;
                //Have the lab Tech start moving to empty out the labs
                return this.runLabTechLogic();
            }
        }
        //The labs are in a process and they're on cooldown, so we just wait.
        //Possibly code the labtech to empty labs as they run in the future
        return;
    }

    //Once the input materials are exhausted, we need to empty out the labs into the storage
    if(this.room.memory.emptyLabs) {
        //if we don't have a lab to empty out in memory
        if (!this.memory.target) {
            //get the closest non-empty research lab
            this.memory.target = this.pos.findClosestByRange(this.outputLabs, {
                                 filter: i => i.mineralAmount > 0}).id;
        }

        this.target = Game.getObjectById(this.memory.target);

        //If there is no more labs with anything in them and the lab tech is also not carrying 
    //anymore, we have our edge case and move on to the next scenario
        if(!this.target && _.sum(this.carry) === 0){
            delete this.memory.emptyLabs;
            this.memory.testStorage = true;
            return this.runLabTechLogic();
        }

        //Now we have our target or we have stuff inside the creep to dump into storage

        //If we have something inside us to dump into storage
        if(_.sum(this.carry) > 0){
            //attempt to dump into storage
            let result = this.transfer(this.room.storage, _.findKey(this.carry, i => i > 0));
            //if we're not in range
            if(result === ERR_NOT_IN_RANGE){
                //move to the storage
                this.travelTo(this.room.storage);
            }
            //if we've dumped the contents and there is another lab with stuff in it
            else if(result === OK && this.target){
                //move to the target
                this.travelTo(this.target);
            }
        }
        //if there is nothing inside the creep
        else if(_.sum(this.carry) === 0){
            //attempt to withdraw from the target
            let result = this.withdraw(this.target, this.target.mineralType);
            //if not in range
            if(result === ERR_NOT_IN_RANGE){
                //move towards the lab
                this.travelTo(this.target);
            }
            //if we've taken something out of the lab
            else if(result === OK){
                //move towards the storage
                this.travelTo(this.room.storage);
                //forget the target to acquire a new one later
                delete this.memory.target;
            }
        }
        return;
    }

//Once the labs are empty and the labTech is empty as well, we test the storage to see which //material needs to be made

    if(this.room.memory.testStorage) {
        if (this.room.storage.store[RESOURCE_ZYNTHIUM_KEANITE] < AMOUNT_TO_STORE) {
            this.memory.input1 = RESOURCE_ZYNTHIUM;
            this.memory.input2 = RESOURCE_KEANIUM;
        }
        else if (this.room.storage.store[RESOURCE_UTRIUM_LEMERGITE] < AMOUNT_TO_STORE) {
            this.memory.input1 = RESOURCE_UTRIUM;
            this.memory.input2 = RESOURCE_LEMERGIUM;
        }
        else if (this.room.storage.store[RESOURCE_GHODIUM] < AMOUNT_TO_STORE) {
            this.memory.input1 = RESOURCE_ZYNTHIUM_KEANITE;
            this.memory.input2 = RESOURCE_UTRIUM_LEMERGITE;
        }
        else if (this.room.storage.store[RESOURCE_GHODIUM_HYDRIDE] < AMOUNT_TO_STORE) {
            this.memory.input1 = RESOURCE_GHODIUM;
            this.memory.input2 = RESOURCE_HYDROGEN;
        }
        else if (this.room.storage.store[RESOURCE_GHODIUM_OXIDE] < AMOUNT_TO_STORE) {
            this.memory.input1 = RESOURCE_GHODIUM;
            this.memory.input2 = RESOURCE_OXIDE;
        }
        else if (this.room.storage.store[RESOURCE_UTRIUM_HYDRIDE] < AMOUNT_TO_STORE) {
            this.memory.input1 = RESOURCE_UTRIUM;
            this.memory.input2 = RESOURCE_HYDROGEN;
        }
        else if (this.room.storage.store[RESOURCE_UTRIUM_OXIDE] < AMOUNT_TO_STORE) {
            this.memory.input1 = RESOURCE_UTRIUM;
            this.memory.input2 = RESOURCE_OXYGEN;
        }
        else if (this.room.storage.store[RESOURCE_KEANIUM_HYDRIDE] < AMOUNT_TO_STORE) {
            this.memory.input1 = RESOURCE_KEANIUM;
            this.memory.input2 = RESOURCE_HYDROGEN;
        }
        else if (this.room.storage.store[RESOURCE_KEANIUM_OXIDE] < AMOUNT_TO_STORE) {
            this.memory.input1 = RESOURCE_KEANIUM;
            this.memory.input2 = RESOURCE_OXIDE;
        }
        else if (this.room.storage.store[RESOURCE_LEMERGIUM_HYDRIDE] < AMOUNT_TO_STORE) {
            this.memory.input1 = RESOURCE_LEMERGIUM;
            this.memory.input2 = RESOURCE_HYDROGEN;
        }
        else if (this.room.storage.store[RESOURCE_LEMERGIUM_OXIDE] < AMOUNT_TO_STORE) {
            this.memory.input1 = RESOURCE_LEMERGIUM;
            this.memory.input2 = RESOURCE_OXIDE;
        }
        else if (this.room.storage.store[RESOURCE_ZYNTHIUM_HYDRIDE] < AMOUNT_TO_STORE) {
            this.memory.input1 = RESOURCE_ZYNTHIUM;
            this.memory.input2 = RESOURCE_HYDROGEN;
        }
        else if (this.room.storage.store[RESOURCE_ZYNTHIUM_OXIDE] < AMOUNT_TO_STORE) {
            this.memory.input1 = RESOURCE_ZYNTHIUM;
            this.memory.input2 = RESOURCE_OXIDE;
        }
        else{
            this.memory.rest = true;
            return;
        }

        //if we have a reaction we need to do, but we don't have the minerals to do it, we need to 
    //go into rest and let our market processes work until we have enough for reactions
        if(this.room.storage.store[this.memory.input1] < AMOUNT_TO_REACT || 
       this.room.storage.store[this.memory.input2] < AMOUNT_TO_REACT){
            this.memory.rest = true;
            return;
        }
        //if we've passed both tests, then we move onto the next step
        delete this.room.memory.testStorage;
        this.room.memory.fillLabs = true;
    }

//Once we have selected a material, we have the labTech put the two materials into the input labs

    if(this.room.memory.fillLabs) {
        //if we have stuff in our holds
        if(_.sum(this.carry) > 0){
            //figure out if we're loading up inputLab1 or inputLab2

            //if the resource in memory for inputLab1 is the same as the resource in our hold that 
        //has more than 0
            if(this.memory.input1 === _.findKeys(this.carry, i => i > 0)){
                //we're going to inputLab1

                //attempt to transfer to inputLab1
                let result = this.transfer(this.inputLab1, this.memory.input1);
                //if we're out of range
                if(result === ERR_NOT_IN_RANGE){
                    //move to the inputLab1
                    this.travelTo(this.inputLab1);
                }
                //if we were successful in placing it in
                else if(result === OK){
                    //move towards the storage
                    this.travelTo(this.room.storage);
                }
            }
            else if(this.memory.input2 === _.findKeys(this.carry, i => i > 0)){
                //we're going to inputLab2

                //attempt to transfer to inputLab2
                let result = this.transfer(this.inputLab2, this.memory.input2);
                //if we're out of range
                if(result === ERR_NOT_IN_RANGE){
                    //move to the inputLab2
                    this.travelTo(this.inputLab2);
                }
                //if we were successful in placing it in
                else if(result === OK){
                    //move towards the storage
                    this.travelTo(this.room.storage);
                }
            }
        }
        else if(_.sum(this.carry) === 0){
            //check to see if we're done and ready to move on to the next step
            if(this.inputLab1.mineralAmount === AMOUNT_TO_REACT && 
               this.inputLab2.mineralAmount === AMOUNT_TO_REACT){
                //Once the input materials are in the input labs, we start running the new process
                delete this.room.memory.fillLabs;
                delete this.memory.input1;
                delete this.memory.input2;
                this.memory.runTheReactions = true;
                return this.runLabTechLogic();
            }
            //if we're not done, continue the loading

            //First we test to see if the inputLab1 is done
            if(this.inputLab1.mineralAmount < AMOUNT_TO_REACT){
                //attempt to withdraw the inputLab1's minerals from storage, but not too much
                let result = this.withdraw(this.room.storage, this.memory.input1, 
                                           AMOUNT_TO_REACT - this.inputLab1.mineralAmount);
                //if we're not in range
                if(result === ERR_NOT_IN_RANGE){
                    //move towards the storage
                    this.travelTo(this.room.storage);
                }
                //if we succeeded
                else if(result === OK){
                    //move towards the input Lab
                    this.travelTo(this.inputLab1);
                }
            }
            else if(this.inputLab2.mineralAmount < AMOUNT_TO_REACT){
                //attempt to withdraw the inputLab1's minerals from storage, but not too much
                let result = this.withdraw(this.room.storage, this.memory.input2,
                                           AMOUNT_TO_REACT - this.inputLab2.mineralAmount);
                //if we're not in range
                if(result === ERR_NOT_IN_RANGE){
                    //move towards the storage
                    this.travelTo(this.room.storage);
                }
                //if we're successful
                else if(result === OK){
                    //move towards the input Lab
                    this.travelTo(this.inputLab2);
                }
            }
        }
    }
};

r/screeps • • Oct 10 '19

Are there any good free clients for private servers?

0 Upvotes

Rather than getting the steam client, could I get an alternative for Win10 that is free so I can play on Screeps Plus?


r/screeps • • Sep 15 '16

Help with getting my people to spawn automatically

1 Upvotes

hey guys I have been working on my screeps code for quite some time now and i have made everything work except for being able to make some way to spawn automatically. The way I have kind of works but more often then not it just kinda breaks. My first big issue is that it will spawn my defensive/offensive people first... I would like to spawn some slaves/harvesters first to start working... I think this may be just an issue with how I put the code in and at what order the classes are checked and spawned at. My second issue which I would like to find a way to fix is that some times it just kind of breaks. For no apparent reason it will just stop working. I was wondering if any of you guys would post your way for making them spawn so that I could compare mine with yours, and find a way to improve mine.

Thanks Guys, Xofox


r/screeps • • Jul 25 '22

Help me with this pls!

Thumbnail
stackoverflow.com
0 Upvotes

r/screeps • • Nov 29 '20

Final Episode of Season 0 | S00 Ep09

Thumbnail
twitch.tv
5 Upvotes

r/screeps • • Feb 13 '17

Unable to store RoomPosition objects to memory

2 Upvotes

For whatever reason, when I store RoomPosition objects to memory, they get extracted as generic Objects and not RoomPosition objects. Is there any way to fix this other than by recreating every RoomPosition manually?


r/screeps • • Sep 27 '22

If you enjoy screeps, you're going to love this!

Thumbnail
youtu.be
13 Upvotes

r/screeps • • Jul 09 '20

CAN ANYONE ID THIS HIKER "MOSTLY HARMLESS" - Gamer or coder found deceased 07/23/2018 in SE Florida on the FL Trail.

Thumbnail colliersheriff.org
23 Upvotes

r/screeps • • Nov 03 '20

A Nameless Screeps Player and the Case the Internet Can’t Crack

Thumbnail
wired.com
44 Upvotes

r/screeps • • Nov 20 '14

MFW I checked this sub this morning hoping for the release...

10 Upvotes