Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. Calfa
    3. Posts
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Posts made by Calfa

    • RE: Screeps, guía en español (Spanish Screeps Guide)

      It would be a pleasure for me to do that. I like translating.

      This guide i did was just a bunch of relevant information i thought would be useful to know for anyone thinking about buying Screeps, and also for anyone wondering how to play. However, to do a proper "official" guide i should be given a bunch of texts to translate.

      A good idea would be to also translate the official docs web, which is a lot of stuff but still it'd be a pleasure.

      Count on me if you devs want to do it.

      posted in General Discussion
      Calfa
    • RE: Steam Award nominations

      @estecka Of course you don't, because Roomba is alive too 😏

      posted in General Discussion
      Calfa
    • Screeps, guía en español (Spanish Screeps Guide)

      He decidido hacer una Guía en castellano para Screeps, pensando en los no iniciados en el juego y en especial en aquellos que no tengan acceso a la vasta cantidad información disponible en inglés. Dejo el enlace aquí y animo a cualquiera que lo desee a participar en ella.

      (I decided to write a guide to Screeps in spanish, thinking of people who don't know Screeps or are just starting to play. I know how hard is to find helpful information for Screeps unless you have a good level of english)

      posted in General Discussion
      Calfa
    • RE: I know nothing about programming...

      @kirbyhung Python? This game uses Javascript. I might be wrong and it might accept python, tho.

      posted in General Discussion
      Calfa
    • RE: I know nothing about programming...

      @kirbyhung To answer your question about it being viable, my answer is Yes! However, the game itself is to code all your behaviours, so a big requirement is that you find coding a funny thing (despite doing it better or worse). I'm a very noob programmer, for me it would be impossible at all to work at anything related to code, but i've learned a lot by playing this game and it's really funny to me to struggle with all the issues i find.

      Also, i've been pretty active at the forum with all my doubts and i've always had a very good response from the rest of the players, son don't be afraid to relay on the forum to help yourself. They know a lot and they are surprisingly helpful!!

      posted in General Discussion
      Calfa
    • RE: Steam Award nominations

      @keenathar Yeah! My creeps are alive!! ✊

      posted in General Discussion
      Calfa
    • RE: Steam Award nominations

      @wtfrank Shall we agree on one category, so we don't split votes? 🤭

      posted in General Discussion
      Calfa
    • RE: Refining the game start: A "claim room" button instead of a forced "place spawn"

      @mrfaul To have both options sounds good to me.

      posted in Feature Requests
      Calfa
    • RE: Local Server Stops from time to time

      @semperrabbit Thanks for the info!

      I've been trying to run it for a while. I tried few different ways with no success. Finally, i decided to install Ubuntu (over my Windows 10) and do it through it, and now i'm stuck at this point:

      alt text

      As you can see on the picture i'm already on the last step. I circled where it says "you can now connect from your Windows desktop...bla bla..." but if i click on the link i go back to the beginning of the guide which looks like a loop to me 😞

      P.S. I try to connect to 127.0.0.1:6379 from the Screeps Client and it won't connect.

      What am i doing wrong?

      posted in Help
      Calfa
    • Local Server Stops from time to time

      Hello,

      I'm using my local sever (the "official" one) to test my code, but from time to time creeps stop moving and i have to restart it. My computer power settings only turn screen off, it doesn't stop disks or sleeps, or anything else. Is it normal? Is there any way i can have it working for long peroids of time?

      posted in Help
      Calfa
    • RE: Superfluous ConstructionSites - Relocating structures

      @mrfaul You are right.

      The only benefit of doing this is that you destroy your old storage only when the new one is already built. The other way, first you destroy it and then, while the dropped resources are decaying you must build the new storage which takes some time, specially at low RCL.

      Anyway, your idea of being able to pull structures is a lot better, and would be great in my opinion.

      posted in Feature Requests
      Calfa
    • RE: Superfluous ConstructionSites - Relocating structures

      @mrfaul Pulling structures sounds awesome!! I'm terribly bad at planning colonies, and i often change structures' location. Storages with a lot of energy and spawns are the two cases where it becomes harder to change location. If we were allowed to pull them would be great!

      What about being able to build (in example) another storage and, as soon as it's built the other one gets destroyed?

      posted in Feature Requests
      Calfa
    • RE: Need some help improving my CPU usage

      @Flyasd1 @o4kapuk @ObamaLlama Yes...i save some objects in the memory. This is how i started doing it until i had an error, and then started saving their ids only (but older code remained the same because it works).

      I'll rewrite as many code as i can to save only ids or any other important info. Thank you guys 😕

      P.S. I don't use JSON.stringify anywhere

      posted in Help
      Calfa
    • RE: Need some help improving my CPU usage

      I keep improving my code trying to reduce CPU consumption, and this is where i am at this moment...(4 rooms CL7 and 5 rooms remote mining)

      [23:28:50] [shard3]
      calls		time		avg		function
      13100		3282.8		0.251		Creep.travelTo
      11058		2307.0		0.209		Creep.move
      8347		1693.2		0.203		Creep.harvest
      5820		1292.5		0.222		Creep.upgradeController
      105958		1195.1		0.011		Room.toJSON
      240191		640.4		0.003		RoomPosition.getRangeTo
      2025		435.6		0.215		Creep.reserveController
      12808		376.6		0.029		RoomPosition.findInRange
      47712		338.7		0.007		Room.find
      8240		309.1		0.038		Creep.toJSON
      398		292.8		0.736		RoomPosition.findClosestByPath
      12002		168.3		0.014		RoomPosition.findClosestByRange
      655		165.0		0.252		Creep.transfer
      696		151.1		0.217		Creep.repair
      441		103.4		0.234		Creep.withdraw
      34968		49.1		0.001		RoomPosition.inRangeTo
      24086		43.0		0.002		RoomPosition.isNearTo
      139		31.7		0.228		Creep.pickup
      14384		30.4		0.002		RoomPosition.getDirectionTo
      13578		25.1		0.002		Game.getObjectById
      33		17.2		0.520		Spawn.createCreep
      4958		8.9		0.002		Structure.toString
      4106		5.5		0.001		RoomPosition.isEqualTo
      Avg: 21.51	Total: 21471.22	Ticks: 998
      

      I tried to find information about stuff like Room.toJSON or Creep.toJSON but haven't found anything helpful. Can you please explain to me what is this?

      Thanks in advance!

      posted in Help
      Calfa
    • RE: Local server - Insane amounts of dropped energy

      @tigga @MrFaul Thanks guys, i didn't know that and thought it was just some kind of bug.

      posted in Technical Issues and Bugs
      Calfa
    • RE: Local server - Insane amounts of dropped energy

      Yes! I did this:

      storage.db['rooms.objects'].update({ type: 'constructionSite' },{ $set: { progress: 99999 }})

      Found here

      posted in Technical Issues and Bugs
      Calfa
    • Local server - Insane amounts of dropped energy

      Hello!

      Which shard is affected?

      • Local Server - No mods

      What happened?

      • I have a single room with controller level 4 (now 5) in my local server. On sunday, I found a few creeps with carryCapacity around 100 which were carrying 200k ~ 300k energy. When they died, this energy remained on the ground.

      What should have happened?

      • These amounts shouldn't have existed

      How can we reproduce this?

      • No idea, sorry.
      posted in Technical Issues and Bugs
      Calfa
    • RE: Room blueprint feedback

      @keenathar It's a nice tool! I've been playing with it too 😄 Your design look awesome, probably better than mine, but just in case it inspires you in some way here it is

      alt text link

      posted in Help
      Calfa
    • RE: How can i store all my extensions/spawns in order?

      I got something! Tomorrow i'll try my refiller to follow this route to see what happens, but in the meantime i'd like to show you what i came up with

      let roleRouter = {
          run: function(creep){
              //Initialize Route
              if(!creep.memory.route){
                  creep.memory.route = [];
              }
              //Number of structures added to the route
              if(!creep.memory.currentStructures){
                  creep.memory.currentStructures = 0;
              }
              //Get number of extensions + spawns
              if(!creep.memory.totalStructures){
                  creep.memory.totalStructures = creep.room.find(FIND_MY_STRUCTURES, {
                      filter: function(s){ return (s.structureType == STRUCTURE_SPAWN || s.structureType == STRUCTURE_EXTENSION); }
      
                  }).length;
              }
              //If i haven't added to the route as many elements as spawns + extensions
              if(creep.memory.currentStructures < creep.memory.totalStructures) {   
                  //Look for a structure not added to the route yet
                  let nextStructure = creep.pos.findClosestByPath(FIND_MY_STRUCTURES, {
                      filter: function(s){
                          return ((s.structureType == STRUCTURE_SPAWN || s.structureType == STRUCTURE_EXTENSION) && !_.includes(creep.memory.route, s.id));
                      }
                  });
                  if(nextStructure){
                      //add structure to the route
                      creep.memory.route.push(nextStructure.id);
                      creep.memory.currentStructures ++;
                      //Now if i'm not near to the structure above, move towards it
                      if(!creep.pos.isNearTo(nextStructure)){
                          creep.travelTo(nextStructure);
                      }
                      //And now that i'm next to it...
                      if(creep.pos.isNearTo(nextStructure)){
                          //Look for nearby structures that are not included yet
                          let nearbyStructures = creep.pos.findInRange(FIND_MY_STRUCTURES, 1, {
                              filter: function(s){
                                  return (s.structureType == STRUCTURE_SPAWN || s.structureType == STRUCTURE_EXTENSION) && !_.includes(creep.memory.route, s.id);
                              }
                          });
                          //And now add these structures to the route
                          if(nearbyStructures && nearbyStructures.length > 0){
                              for(let i in nearbyStructures){
                                  creep.memory.route.push(nearbyStructures[i].id);
                                  creep.memory.currentStructures ++;
                              }
                          }
                      }
                  }else{
                      console.log('You are fucked!');
                  }
              //If the route is complete, store it in the room's memory
              }else{
                  creep.room.memory.route = creep.memory.route;
              }
          }
      }
      module.exports = roleRouter;
      

      So far, there's no errors and the number of elements in the route is 41 (40 extensions and 1 spawn) so it looks like a pretty good start.

      posted in Help
      Calfa