Navigation

    forum

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

    Topics created by Boltz

    • An intersting gamemode idea...
      Feature Requests • • Boltz

      8
      8
      Posts
      7443
      Views

      Here is my off the cuff design of how to add market data into Sim. Use #client-abuse to inject javascript into the browser client. The user screeps code creates two functions: abuseclientmarket and ingestmarket. The human loads their screeps script up in the Sim and executes abuseclientmarket in the web client console. The injected javascript "borrows" the browser's credentials of the browser to query to the market REST api. The injected script then creates a web client console command to ingestmarket with the JSON data from the market. ingestmarket uses the JSON data to create an api compatible fake of the real Game.market api. The fake market updates / removes orders etc as the user interacts with the fake api. This could also be done offline without #client-abuse. Scrape the market REST api into a JSON string. Then paste that string into your screeps code. Then whenever you want to play with the market call injestmarket. The market data will be as stale as your last scrape. A key limitation is that there is no way for the Sim to affect the real Screeps World market in any way. The Sim is just getting a local copy.
    • Unsolved Healer not finding creeps?
      Help • • Boltz

      8
      8
      Posts
      7182
      Views

      @key2130 Yeah that's the correct error code I got it wrong. (updating the original).