Navigation

    forum

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

    Topics created by DarkTrooper7

    • Selling G, GH and GH2O minerals
      General Discussion • • DarkTrooper7

      2
      2
      Posts
      2883
      Views

      hehe, lovely idea
    • New player zone wall
      Feature Requests • • DarkTrooper7

      9
      9
      Posts
      8912
      Views

      > Amadox, you are wrong, once again I am checking Power Bank inside the room.  And as you said yourself, that can be done with findPath. > Requires a very expensive FindPath function ( for example from my observer to powerbank in E20 it takes 40 CPU ) Exactly. which is why you don't do it every tick, but every 10k or so, like I suggested, and store the results (a list of rooms that are accessible or unaccessible, however you wanna go, or even a list of all rooms with a bool value determining if it's currently accessible or not) in memory. Then cost really doesn't matter if you only do it that rarely. A few high-CPU ticks every 10k ticks shouldn't really hurt.   Once you have that list in memory, you can use it every tick with no cost. Only downside is it takes up to 10k ticks to update once the newbie walls come down or new newbie walls are put up.   That being said, an API way to check if a certain room is protected and or part of a newbie zone even without having visibility to that room would indeed be very useful.
    • WTT any mineral for K
      General Discussion • • DarkTrooper7

      1
      1
      Posts
      2431
      Views

      No one has replied

    • Invaders and reservations
      Help • • DarkTrooper7

      2
      2
      Posts
      2943
      Views

      Tha aggression timer is counting all the time, even while the room is fully protected. However, invaders will not spawn immediately, the spawning script is executed every 5 minutes, so you have some time to restore your reservation. 
    • Is something going to be done about degrade/upgrade mechanic?
      General Discussion • • DarkTrooper7

      4
      4
      Posts
      4868
      Views

      I hope this pushes for a little more interaction then just conquer and be conquered when PTR is release. We'll have to wait and see.
    • Overview graphs per tick
      Feature Requests • • DarkTrooper7

      1
      1
      Posts
      2522
      Views

      No one has replied

    • Pointless rooms
      Help • • DarkTrooper7

      5
      5
      Posts
      6091
      Views

      Good question, I was wondering the same thing and if it had anything to do with future changes to the game.
    • Initial CPU usage
      Help • • DarkTrooper7

      6
      6
      Posts
      6991
      Views

      This initial value of the used CPU does not have anything to do with the Game object creation (which is never taken into account in players' CPU calculation), but with the main module parsing. Once in several tens ticks, when runtime servers reset their condition, there is a necessity of repeated compiling of all your modules. While required extra modules are compiled only upon the require call, the main module is compiled instantly after the script run. If it has a lot of code, the delay for compilation can also be rather big. To verify this, you can move all the main module contents into another module, for example main2, and do the following from main: console.log(Game.getUsedCpu()); require('main2'); In this case, the displayed CPU should always be close to zero.
    • require occasionally takes up a lot of CPU
      Technical Issues and Bugs • • DarkTrooper7

      3
      3
      Posts
      3910
      Views

      I have noticed this behavior as well and I think it is because of the javascript files being compiled, as I detailed in my answer in this post
    • Is there a way to check available or used memory
      Help • • DarkTrooper7

      3
      3
      Posts
      3883
      Views

      Just for completeness: JSON.stringify(Memory).length / 1024 But seriously, there should be an option for it. You honestly don't want to serialize your Memory Object each time just to know your consumption.
    • Construction site in unoccupied room
      General Discussion • • DarkTrooper7

      2
      2
      Posts
      2993
      Views

      creep.moveTo(coordinates construction sites)
    • Upgrade past level 8
      Help • • DarkTrooper7

      2
      2
      Posts
      2834
      Views

      http://support.screeps.com/hc/en-us/articles/203086021-Territory-control Any contribution to any of your Controllers affects your GCL, even if the Controller is fully upgraded to the level 8.
    • Exploit?
      General Discussion • • DarkTrooper7

      25
      25
      Posts
      50670
      Views

      Suggetion: If you respawn into the same room AND it has enemies you are not restricted. But if you respawn into a different room, or if you respawn into the same room and there was no enemies present (you were not under attack), the exits should be sealed for at least 12 hours to both prevent someone from entering and prevent you from leaving and taking advantage of bonus energy to grief other players. Its safe to assume if you choose to stay in same room while enemies were present you are interested in continueing your battle and have the right to defense. All other situations you should be in lockdown for a short period and 12 hour is a fair balance.
    • Black rooms - is it possible to get to
      Help • • DarkTrooper7

      2
      2
      Posts
      3204
      Views

      I think they are blocked out until the map is expanded. I tried moving a creep manually but it isn't transported to the new room when standing on the exit like with other rooms.
    • All my spawns just dissapeared!
      Technical Issues and Bugs • • DarkTrooper7

      5
      5
      Posts
      4912
      Views

      @nugarin, that sure is possible, but not very reasonable. In my opinion, workers should have the possibility to demolish buildings, (and perhaps gain a small amount of the energy invested back).
    • Determine who attacked me
      Help • • DarkTrooper7

      4
      4
      Posts
      4699
      Views

      Judging from the position on the map, it can't have been you, nugarin. But did you finally find out, who attacked you, DarkTrooper?
    • Bug moving between rooms
      Technical Issues and Bugs • • DarkTrooper7

      4
      4
      Posts
      4422
      Views

      Thanks that worked.
    • CPU Debug
      Help • • DarkTrooper7

      2
      2
      Posts
      3153
      Views

      Use Game.getUsedCpu() like I did here https://github.com/avdg/screeps/blob/master/scripts/main.js Simple subtract times to measure the time spend on a certain part like Game.getUsedCpu() - prevousCp I'm using a custom function though, which allows me to pretty print times (instead of having to deal with reading a lot of decimals), which is this function: https://github.com/avdg/screeps/blob/b11f9951f34c8ab6ff5f91f10bf54398c49aa8bb/scripts/_generics.js#L77