Navigation

    forum

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

    hyramgraff

    @hyramgraff

    41
    Posts
    2634
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    hyramgraff Follow

    Posts made by hyramgraff

    • Console logging within an infinite loop causes client to freeze

      (Yes, I am a naughty programmer for not making sure that my recursive function actually had a base case. Don't run the code that I included below without a plan for recovering.)

      I was working on automating the process of figuring out what components my factory would need to produce to get to an end product and I added the following to the end of my main script.

      factory_requirement = function(res) {
          console.log("To make " + res + " we need:");
          for (k in COMMODITIES[res].components) {
              console.log(k);
              console.log(COMMODITIES[res].components[k]);
              
              if (k in COMMODITIES) factory_requirement(k);
          }
      }
      
      factory_requirement(RESOURCE_WIRE);
      

      This causes infinite recursion because wire requires utrium bars, which require utrium which can be made by decompressing utrium bars. Fortunately the server seems to handle this well. Unfortunately the client will freeze and I was unable to comment out the initial call to factory_requirement to fix my code.

      I'm using a machine running Windows 10. Both the Steam client and the screeps.com website froze when I attempted to open a room.

      posted in Technical Issues and Bugs
      hyramgraff
    • RE: Missing loads of CPU allocation on partially-active shards

      Keeping an active room on the shard would also solve the problem.

      I'd be willing to maintain another player's room controller on Shard 2 for a reasonable fee.

      posted in Technical Issues and Bugs
      hyramgraff
    • RE: FIND_DROPPED_ENERGY deprecated but used in doc example

      Good find. If it's really bothering you, I think you can submit a pull request that fixes it.

      posted in Technical Issues and Bugs
      hyramgraff
    • RE: Player badge does not match actual one in map view room tooltip

      @o4kapuk It looks like the player badge for the controller sign is only refreshed when you hover over a room with no sign.

      I can reproduce this by viewing E18N5 - E19N6 on shard2. If I start by hovering over the unowned room and circle around the rooms in a clockwise direction, all rooms have one player's badge. If I circle around the rooms in a counter-clockwise direction all rooms have the other player's badge.

      posted in Technical Issues and Bugs
      hyramgraff
    • RE: console logs appear sporadically

      @o4kapuk It's working right now, but when it's not typing 1+1 in the console will reproduce the issue.

      posted in Technical Issues and Bugs
      hyramgraff
    • RE: console logs appear sporadically

      I'm on shard2 and running commands in the console execute successfully but the return value isn't printed.

      posted in Technical Issues and Bugs
      hyramgraff
    • Long ticks on shard2

      I have a single room on shard2 and the last three nights I've noticed that there will be long stretches of time where every other tick takes about eleven seconds. I'm used to the occasional long tick but having the server switch between normal ticks and long ticks every 2-3 minutes isn't normal.

      posted in Technical Issues and Bugs
      hyramgraff
    • RE: Ramparts to public in uncontrolled rooms

      If you assume that you can consistently dismantle with 40 work parts per tick (2 creeps, each with 20 work parts), then at current tick times on shard0 a max HP wall can be removed in a little under nine days. (Wolfram Alpha calculation) That seems like an easily reachable stretch goal for a new player that's already gotten an RCL 6 room.

      You can probably even make more energy from the dismantling than you spent on the creeps, but that doesn't count the opportunity cost of not having those work parts get eight times more energy from harvesting sources instead.

      Overall, I'm not sure that this change is actually needed.

      posted in Feature Requests
      hyramgraff
    • RE: Non-subscription shard launched

      @frop If you click on your name at the top right corner of the screen, you should see "respawn" as one of the options in the menu that appears.

      posted in News & Announcements
      hyramgraff
    • RE: Make the limits of the maps connected to the opposite rooms (Like Earth)

      @riquy said in Make the limits of the maps connected to the opposite rooms (Like Earth):

      Imagine if every map of Screeps would be like planet Earth but with the shape of a Square, the rooms in the limits of the map could connect with the ones in the opposite direction (limited to 1 shard).

      What you're proposing isn't actually like Earth. Earth is a sphere but you've proposed a torus (aka a doughnut).

      posted in Feature Requests
      hyramgraff