Navigation

    forum

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

    DewJunkie

    @DewJunkie

    24
    Posts
    1331
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    DewJunkie Follow

    Posts made by DewJunkie

    • RE: Show Controller Level in room overview

      Ideally, it would be something like 

      E68S57 - Lvl6 189K / 3.64M

      posted in Feature Requests
      DewJunkie
    • Show Controller Level in room overview

      On the overview screen it would be nice/helpful if the room controller level were shown.

      Something like E68S57 - Lvl8 would be helpful.

      Another possibly useful option would be to show the cumulative control points as an option in the graph dropdown.

      posted in Feature Requests
      DewJunkie
    • RE: Creating a standalone client

      @Dissi

      Did you abandon this, or ever open source it?  I found this.

      https://github.com/Zinal001/ScreepsAPI_NET

      Just curious, as what you had done so far looked pretty interesting.

      posted in General Discussion
      DewJunkie
    • RE: 10-CPU-Club

      I'm at 3 rooms with 10 cpu, it looks like I may be able to get up to 4, but I'll have to make some changes to get beyond that.

      posted in General Discussion
      DewJunkie
    • RE: Market deal cost.

      OK, found the answer, screen is wrapping as expected.  Turns out the excel function I was looking for was LN not LOG.

      =CEILING(amount*(LN(0.1*distance + 0.9) + 0.1))

      The market UI still was showing a different distance than the game, my guess is the the wrapping point changes over time, and the UI is lagging a bit.

      posted in General Discussion
      DewJunkie
    • Market deal cost.

      I just wanted to try to figure something out.

      Game.map.getRoomLinearDistance("W60S50", "E68S57", true)
      33
      Game.market.calcTransactionCost (5000,"W60S50", "E68S57")
      7676
      Game.map.getRoomLinearDistance("W60S50", "E68S57", false)
      129
       
      It seems like calcTransactionCost is not wraping the ends of the map, isn't it supposed to?  I did a deal between these room, and the cost was what was returned by calcTransitCost.
       
      Something else I thought was curious, is that the range indicated in the market screen was 13.
       
      I tried to use excel to estimate the cost, but I couldn't get it to match up with the cost returned by calcTransactionCost.  Normally I'm pretty good with excel, but I figured I'd see if someone had an answer, or if it just doesn't work as documented.
      Math.ceil( amount * (Math.log(0.1*linearDistanceBetweenRooms + 0.9) + 0.1) )
      =CEILING(B15*(LOG(0.1*A15 + 0.9) + 0.1))
      posted in General Discussion
      DewJunkie
    • Debugging

      Is it possible to debug your scripts when using a private server?  I haven't tried anything, but I wasn't able to find any clues on where to start.

      It would be nice to have a cli option to run 1 tick.

      posted in Private servers
      DewJunkie
    • RE: Example for storing and using a path in memory?

       And here I was trying to make sense of _move.path, and all proud that I had figured out what I needed.  I was trying to figure out which direction the pathfinder was taking my creep when doing moveTo(x,y,"");

      Just in case anyone else was looking, here's a quick snippet.

          creep.moveTo(new RoomPosition(5, 19, creep.room.name));
          console.log(JSON.stringify(Room.deserializePath(creep.memory._move.path)));
      posted in General Discussion
      DewJunkie
    • RE: Now you can play Screeps without writing a single line of code!

      lol, I love the audio. Now another stat I'm thinking of, how many clicks per minute is my script executing, lol.

      posted in General Discussion
      DewJunkie
    • RE: Yall should drop energy before you walk on swamps

      Is the public test area the simulation room?

      Thanks for the tip The_General. I have to say, this had quite a few side effects, but that is part of the fun right.

      posted in General Discussion
      DewJunkie