Navigation

    forum

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

    Posts made by dogo41

    • inconsistent STRUCTURE_WALL object returned repeatedly

      targets=Game.rooms[xroom].find(FIND_STRUCTURES, {filter: {structureType: STRUCTURE_WALL}});

      Sometimes, the key/value pair for hits is not included in the object returned.

      console.log(target[i].id+":"+target[i].hits);

      [10:23:02 PM][shard3]6091683b24e3167444cb0db4:100001

      [10:23:02 PM][shard3]6091683eae27db4155ac302e:100001

      [10:23:02 PM][shard3]609ab7c76988d8375e4595b6:undefined

      [10:23:02 PM][shard3]609ab7c76988d8375e4595b7:undefined

      posted in Technical Issues and Bugs
      dogo41
    • RE: Endpoints / Auth Token / parameters

      @segmentationfaultcoredumped Hey man ! you see me deeply ashamed ... after some 2 decades of unix ... a problem like that ! Thanks a lot, I owe u a beer 😉

      posted in Technical Issues and Bugs
      dogo41
    • RE: Endpoints / Auth Token / parameters

      @donatzor thanks ! actually, I am trying hard since quite a while, and I assume that the api somehow went dysfunctional. All libraries and tools and most of the posts are some 3 years old. I think, I did read most of the infos google can find, and I have to go back to the game source to find more info. But I am even not sure that github.com/screeps holds the current source version, did not find the api source there up to now. It's a pity, since I really started to like this game, but it seems to got stuck some yrs ago.

      posted in Technical Issues and Bugs
      dogo41
    • Endpoints / Auth Token / parameters

      Re: Auth Tokens

      Hi guys, trying to play with api endpoints, but do not understand this: curl -H "X-Auth-Token: " https://screeps.com/api/user/code?_token=AA-BB-CC-DD-EE ** works fine **

      curl -H "X-Auth-Token: " https://screeps.com/api/user/memory?_token=AA-BB-CC-DD-EE&shard=shard3 results in {"error":"invalid shard"}

      some other endpoints do work (money-history), most others do not. Any hint what I am doing wrong ? Is there a valid documentation of the endpoint parameters ?

      posted in Technical Issues and Bugs
      dogo41