Navigation

    forum

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

    Posts made by xoposhiy

    • RoomPosition.lookFor("flag") is broken

      Run this line in Console several times and get different results:

      > new RoomPosition(32, 40, "W12S28").lookFor("flag")
      < [flag Flag24]
      new RoomPosition(32, 40, "W12S28").lookFor("flag")
      <
      

      I have the flag Flag24 ontop of the link in this position. But sometimes (~ once every 5-10 ticks) lookFor cant find it.

      posted in Technical Issues and Bugs
      xoposhiy
    • Custom mode simulation is broken
      1. Open new incognito tab (in Chrome 46.0)

      2. Open screeps.com. Click Simulation. Click Custom mode

      3. Open screeps console tab, write Game. Output:

      ReferenceError: Game is not defined
          at _console1445359080394_0:1:191
          at eval:3:4
          at Object.c.runCode:6:7516
      

      No errors in Browser dev tools console.

      1. Type _.keys(global) in screeps console tab. Output:
      global,Reflect,caches
      
      posted in Technical Issues and Bugs
      xoposhiy
    • RE: I think the game pathing between rooms just broke

      Was it fixed?
      I dont see this bug any more.

      posted in Technical Issues and Bugs
      xoposhiy
    • RE: How MOVE part work๏ผŸ

      See http://screeps.wikia.com/wiki/Creep#Movement for details

      And play screeps body calculator: http://codepen.io/findoff/full/RPmqOd/

      posted in Help
      xoposhiy
    • RE: Renaming creeps
      for(var name in Game.creeps){
        var creep = Game.creeps[name];
        if (creep.memory.role == 'harvester') { ... }
        else if (creep.memory.role == 'builder') { ... }
        ...
      }
      
      posted in Help
      xoposhiy
    • RE: Renaming creeps
      • sight = sign
      posted in Help
      xoposhiy
    • RE: Renaming creeps
      1. You can't rename creep. Usually it is easier to wait until it ages and die and born another one with the right name.
      2. You can't access creep with '-' in the name that way (because it is minus operation sight in JavaScript), but you can do it like Game.creeps['B-0']
      3. It is better not to use creep names in your logic. Use creep.memory instead.
      posted in Help
      xoposhiy
    • Bug: findClosestByPath(exit) returns structure as a result

      I log every time findClosestByPath(exit) returns not a RoomPosition.
      And constantly receive messages like these:

      [16:32:24] WTF, [room W13S28 pos 46,0].findClosestByPath(exit = 1) -> [structure (extension) #5609b3d15b98a02a0fa80610]
      [16:32:35] WTF, [room W13S28 pos 46,0].findClosestByPath(exit = 1) -> [structure (extension) #5609b3d15b98a02a0fa80610]
      [16:33:00] WTF, [room W13S28 pos 46,0].findClosestByPath(exit = 1) -> [structure (extension) #560748bd98fe6b9220df94e2]
      [16:33:05] WTF, [room W13S28 pos 46,0].findClosestByPath(exit = 1) -> [structure (extension) #560748bd98fe6b9220df94e2]
      [16:33:10] WTF, [room W13S28 pos 46,0].findClosestByPath(exit = 1) -> [structure (extension) #560748bd98fe6b9220df94e2]
      [16:33:15] WTF, [room W13S28 pos 46,0].findClosestByPath(exit = 1) -> [structure (extension) #5609b3d15b98a02a0fa80610]
      

      Can you please fix this bug? ๐Ÿ˜•

      This is the same issue I think:
      http://support.screeps.com/hc/communities/public/questions/201504051-pos-findClosestByPath-flags-returns-not-a-flag

      posted in Technical Issues and Bugs
      xoposhiy
    • RE: pos.findClosestByPath(flags) returns not a flag

      And doublet queries behave that way:

      Game.rooms['W12S23'].getPositionAt(49, 42).findClosestByPath(3)
      Game.rooms['W12S23'].getPositionAt(49, 42).findClosestByPath(3)
      [room W12S23 pos 49,42]
      [room W12S23 pos 49,42]
      Game.rooms['W12S23'].getPositionAt(49, 42).findClosestByPath(3)
      Game.rooms['W12S23'].getPositionAt(49, 42).findClosestByPath(3)
      [structure (extension) #5610f4e97232cb0022417b4c]
      [structure (extension) #5610f4e97232cb0022417b4c]
      Game.rooms['W12S23'].getPositionAt(49, 42).findClosestByPath(3)
      Game.rooms['W12S23'].getPositionAt(49, 42).findClosestByPath(3)
      [room W12S23 pos 49,42]
      [room W12S23 pos 49,42]
      
      posted in Technical Issues and Bugs
      xoposhiy
    • RE: pos.findClosestByPath(flags) returns not a flag

      reproduce in console:

      Game.rooms['W12S23'].getPositionAt(49, 42).findClosestByPath(3)
      [9:03:09] [room W12S23 pos 49,42]
      Game.rooms['W12S23'].getPositionAt(49, 42).findClosestByPath(3)
      [9:03:10] [structure (extension) #5612f7dcb3c550e1219a1da9]

      posted in Technical Issues and Bugs
      xoposhiy
    • RE: [Replay] An epic battle Rumatah versus Vision

      Oh! Happy end!

      peace

      posted in General Discussion
      xoposhiy
    • RE: pos.findClosestByPath(flags) returns not a flag

      Still observe this error:
      findClosestByPath somethimes returns object with wrong type.

      findClosestByPath(FIND_EXIT_RIGHT) may return extension or flag for example.

      posted in Technical Issues and Bugs
      xoposhiy
    • RE: [Replay] An epic battle Rumatah versus Vision

      Like! ๐Ÿ™‚

      posted in General Discussion
      xoposhiy
    • Leaderboard sorting is broken

      screenshot

      .
      posted in Technical Issues and Bugs
      xoposhiy
    • pos.findClosestByPath(flags) returns not a flag

      Just received notification from this code:

          var flags:<Flag[]> = ...;
          var flag = <Flag>creep.pos.findClosestByPath(flags);
          if (flag && !(flag instanceof Flag))
                  Game.notify("among flags " + flags + " the closest is " + flag, 1);
          }
      

      notification:

      among flags [flag mine-1] the closest is [source #55db326cefa8e3fe66e051a0]
      

      Here flag mine-1 is positioned on the source #55db326cefa8e3fe66e051a0.

      Usually this code works well and does not send me notifications. But sometimes sends.

      posted in Technical Issues and Bugs
      xoposhiy
    • Wall between novice sector and other world

      Is it forever?
      Or once it will be removed?
      Or we should break it ourselves (but 2.0B hits...)?

      posted in Help
      xoposhiy
    • RE: Game.map.findRoute bug. Again!

      Oops, you markdown is strange.

      Game.map.findRoute("W12S30", "W11S30")
      -2
      
      posted in Technical Issues and Bugs
      xoposhiy
    • Game.map.findRoute bug. Again!
      Game.map.findRoute("[W12S30](https://screeps.com/a/#!/room/W12S30)", "[W11S30](https://screeps.com/a/#!/room/W11S30)")
      -2
      

      Why?!

      posted in Technical Issues and Bugs
      xoposhiy
    • Start to receive email notification of other user

      Today I started receiving emeil notifications of other user.
      My email: xoposhiy@bk.ru

      Notification content:

      20  Script execution has been terminated: CPU limit reached
      58  Your rampart #560b25af13e4575b1b4b1fdc in room E8N18">E8N18 is under attack!
      35  Your rampart #560b25af13e4575b1b4b1fdc in room E8N18">E8N18 is under attack!
      25  Your rampart #560b24e5ccf6f2114dc4628e in room E8N18">E8N18 is under attack!
      25  Your rampart #560b24e5ccf6f2114dc4628e in room E8N18">E8N18 is under attack!
      25  TypeError: Cannot read property 'createCreep' of undefined
          at main:80:25
          at Object.runCodeCache.(anonymous function).globals.require (/opt/engine/dist/game/game.js:334:20)
      
      25  TypeError: Cannot read property 'spawning' of undefined
          at Object.factory.canSpawn (factory:109:19)
          at Object.factory.spawn (factory:67:18)
          at main:10:9
          at Object.runCodeCache.(anonymous function).globals.require (/opt/engine/dist/game/game.js:334:20)
      
      25  TypeError: Cannot read property 'room' of undefined
          at main:64:34
          at Object.runCodeCache.(anonymous function).globals.require (/opt/engine/dist/game/game.js:334:20)
      
      25  TypeError: Cannot read property 'createCreep' of undefined
          at module.exports (scout:21:50)
          at GameController.utils.extend.doScout (controller_game:59:25)
          at main:9:4
          at Object.runCodeCache.(anonymous function).globals.require (/opt/engine/dist/game/game.js:334:20)
      
      25  TypeError: Cannot read property 'room' of undefined
          at Object.module.exports.loop (main:3:21)
          at __mainLoop:1:52
      
          Your Controller in room W12S28">W12S28 has been upgraded to level 6.
          Script execution has been terminated: CPU limit reached
          Your average CPU is climbing, and may error out soon : Current Setting: 50 Measured: 51.70206596391585
      7   Your rampart #560b25af13e4575b1b4b1fdc in room E8N18">E8N18 is under attack!
      

      My current CPU limit is not equal to 50.

      And the owner of E8N18 room is Adpist, not me.

      posted in Technical Issues and Bugs
      xoposhiy
    • RE: Functional Roles

      @Blade exaclty. Actually the only strategic control is the priority of roles ๐Ÿ™‚

      posted in General Discussion
      xoposhiy