Navigation

    forum

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

    Topics created by ayrtep

    • Unsolved
      Help • • ayrtep

      1
      1
      Posts
      2492
      Views

      No one has replied

    • Option to start game by claiming controller
      Feature Requests • • ayrtep

      5
      5
      Posts
      5627
      Views

      should be part of https://github.com/screepsmods/screepsmod-admin-utils iirc gotta be careful with the steam workshop, a bunch of stuff there is terribly outdated
    • Solved Turn off full screen.
      Help • • ayrtep

      6
      6
      Posts
      6673
      Views

      @ayrtep said in Turn off full screen.: Maybe 'Steam remote play' should be tested or disabled. It's feature of Stream itself, not sure if it can be disabled from our side. Anyway is there any simple (and tested?!?) way of getting the server command line prompt from the remote. CLI should listen at port 21026 by default.
    • Find empty spawn in room with full extensions.
      General Discussion • • ayrtep

      17
      17
      Posts
      19414
      Views

      @ayrtep said in Find empty spawn in room with full extensions.: So this is the first time I have looked at the screeps engine, so I am probably missing stuff. However https://github.com/screeps/engine/blob/master/src/game/game.js#L316 register.rooms[object.room].energyAvailable += object.store.energy; register.rooms[object.room].energyCapacityAvailable += object.storeCapacityResource.energy; We are += on something that could be null, in which case it would just turn null and stay that way forever! https://github.com/screeps/engine/blob/master/src/game/store.js#L28 Here stuff in the store is set to "null" rather than "0" if the resource is missing. I am just guessing, but I suspect there might be an issue here. The bit in game.js was only done 11 months ago. https://github.com/screeps/engine/commit/879b4ca215f1e0b7fd92c7b32c7e59bdc4722cfc#diff-47818c887f19982321abd70c2e741871 https://www.worktime.com/ I am not sure if this is relevant, but it's happening on a steam private server.
    • creep move order
      General Discussion • • ayrtep

      5
      5
      Posts
      6459
      Views

      I think the server could be AZing or ZAing, but you could just array, sort and loop through in a specific order. Having the control over which goes and when.
    • Newbie Qs. Log console and access over web?
      Private servers • • ayrtep

      6
      6
      Posts
      8867
      Views

      @cookies said in Newbie Qs. Log console and access over web?: You can write a script that subscribes to your console websocket stream to log everything. https://github.com/screepers/python-screeps Here is the link to the python api. Thanks, I might look into writing a C++ API later. At the moment I just need it for debugging - e.g. errors that zoom off the screeps-console before you can see them. I got the multimeter logger working although it feels a bit wonky it works well enough for basic debugging.
    • Solved Room.deserializePath(path) not a funtion
      Technical Issues and Bugs • • ayrtep

      4
      4
      Posts
      4555
      Views

      Ok I worked out what my problem was. I was calling deserializePath on a room object rather than the room. eg creep.room.deserializePath(myPath) rather than Room.deserializePath(myPath) Guess the documentation was too cleaver for me.
    • maybe bug in findClosestByPath and findClosestByRange
      Technical Issues and Bugs • • ayrtep

      3
      3
      Posts
      5228
      Views

        Thanks for your help. findClosestByPath takes either a number or array. The number parameter is a FIND_?? constant. From API reference I am passing one of FIND_EXIT_TOP: 1, FIND_EXIT_RIGHT: 3, FIND_EXIT_BOTTOM: 5, FIND_EXIT_LEFT: 7, I am actually scouting a source in a remote room to see if it is economic to harvest so I do not necessarily have access to a room object. In fact, here I am creating a function to calculate the exact distance between any two points. Hence I really want to only use RoomPosition and Map methods. The code works mostly but for this one source object, both findClosestByPath and findClosestByRange seem to be failing. Ok, I will spend some more time debugging the code and maybe the problem will go away.
    • RoomPosition.isWalkable
      Feature Requests • • ayrtep

      8
      8
      Posts
      12053
      Views

      @poma This is just a rewrite of OP's code. It has the same features and defects, but it performs better. @ayrtep said in RoomPosition.isWalkable: https://gist.github.com/anonymous/bc4ccac0cea464d0e98a9a176035808f#file-gistfile1-txt
    • Back story.
      Feature Requests • • ayrtep

      1
      1
      Posts
      2821
      Views

      No one has replied

    • Watch memory path for Memory. objects?
      Technical Issues and Bugs • • ayrtep

      2
      2
      Posts
      3430
      Views

      Ok I have solved the problem. I need to just use 'test' without the Memory bit.
    • Grunt with simulator and training modes.
      Help • • ayrtep

      5
      5
      Posts
      6040
      Views

      Thanks I got it working now. 
    • story.
      General Discussion • • ayrtep

      2
      2
      Posts
      2866
      Views

      I would be very keen on getting some clues as to what is going on as well.
    • Use Grunt
      Help • • ayrtep

      4
      4
      Posts
      7411
      Views

      When you link your account, one benefit is, as you've already seen, the login via github, which is just convinience. However, you can also set it up in your account settings to let screeps automatically pull changes from a github repo.  Since you are using grunt to upload changes now, which imho is the superior solution, that's probably not really a concern : )