Navigation

    forum

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

    Fisubus

    @Fisubus

    7
    Posts
    1004
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Fisubus Follow

    Posts made by Fisubus

    • New point for profile

      I think need new point for profile.
      In this point show language for this person.
      Because when i chat with some players we chat at eng but our real lang was rus.

      posted in General Discussion
      Fisubus
    • RE: How i can control second room?

      I do not understand it 😢

      posted in Help
      Fisubus
    • How i can control second room?

      When i level up to 2 gcl. I think about control second room. But how i can control creeps in second room? Duplicate code or how? 😐

      posted in Help
      Fisubus
    • RE: Lost role's in memory

      i havent got any code for delete some in memory

      posted in Help
      Fisubus
    • Builder don't upgrade walls and ramparts

      Hello guy's!
      I need help. When i know about screeps i want play in this game but idk js and then i study it. Now i make script and it work i test about 1-2 days in offlane and then try in online. I have error with builder they dont upgrade walls and repair ramparts. 😞
      This cycle to push walls and ramparts:

      for(var id in structuresAll){
          if(structuresAll[id].structureType == "constructedWall"){
              constructedWall.push(structuresAll[id]);
          }
      }
      
      for(var id in structures){
          if(structures[id].structureType=="rampart"){
              constructedWall.push(structures[id]);
          }
      }
      
      allMyStructures.push(constructedWall, storage, extensions);
      
      var increaseHits = true; 
      var needRepair = [];
      var maxHits = 100;
      if (!Memory.maxHits) Memory.maxHits = maxHits;
      else maxHits = Memory.maxHits;
      for (var i = 0; i < constructedWall.length; i++){
          if(constructedWall[i].hits < maxHits) {
              increaseHits = false;
              wallNeedBuild.push(constructedWall[i]);
          }
      }
      if(constructedWall.length > 0){
          if(maxHits < needHits){
              if(increaseHits){
                  maxHits+=100;
              }
          }
      }
      if(maxHits == 20000){
          for(var i = 0; i < constructedWall.length; i++){
              if(constructedWall[i].hits < 20000){
                  needRepair.push(constructedWall[i]);
              }
          }
      }
      if(spawn.hits < 5000){
          needRepair.push(spawn);
      }
      
      Memory.maxHits = maxHits;
      

      and this part logic of builder's

                      if(builds){
                          creep.moveTo(builds);
                          creep.build(builds);
                      }
                      else{
                          if(needRepair){
                              creep.moveTo(needRepair[0]);
                              creep.repair(needRepair[0])
                          }
                          else if(wallNeedBuild.length > 0){
                              creep.moveTo(wallNeedBuild[0]);
                              creep.repair(wallNeedBuild[0]);
                          }
                      }
      

      Please help me and sry for my bad English!

      posted in Help
      Fisubus
    • RE: Lost role's in memory

      It's spawn with empty object wtf

      posted in Help
      Fisubus
    • Lost role's in memory

      Some times my creeps just lost role's in memory and then just stay! 😞

      posted in Help
      Fisubus