Navigation

    forum

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

    Topics created by akuukis

    • Server freeze with TooAngel's mod
      Private servers • • akuukis

      3
      3
      Posts
      16443
      Views

      That's not the tooangel's mod, I have the same problem with my IA and I started a month ago so it is a little IA... I googled it, that's why I'm here.   Maybe linked to swap, but I have one. My server worked more than 12 hours before it happens. I think it always happened while I was online but I'm not sure.     btw, your github is very nice to read tooangel, thank you for the share.
    • Error in Storage since build 29
      Private servers • • akuukis

      6
      6
      Posts
      8769
      Views

      Thx for the info, Artem. I was stuck with an empty db.json, and replacing it with the File from `server\node_modules\@screeps\storage\db.original.json` (using Steam) enabled me to start the server again without having to completely reinstall the game.
    • Working dedicated server on Debian 8.6 x64
      Private servers • • akuukis

      3
      3
      Posts
      6512
      Views

      I got this working on Raspberry Pi 3, woo!I had to modify backend/lib/game/server.js and backend/lib/game/api/auth.js to comment out the greenworks API calls. backend/lib/game/server.js: // try {// if(!greenworks.isSteamRunning()) {// throw new Error('Steam is not running');// }// if(!greenworks.initAPI()) {// throw new Error('greenworks.initAPI() failure');// }// console.log("Connected to local Steam client, using native authentication");// useNativeAuth = true;// }// catch(e) {// console.log("Connecting to local Steam client failed:", e.message);// Need these lines to use Steam Web API console.log("Using Steam Web API authentication instead"); if (!process.env.STEAM_KEY) { throw new Error('STEAM_KEY environment variable is not set!'); } useNativeAuth = false;// } backend/lib/game/api/auth.js: if(request.body.useNativeAuth) { if(!useNativeAuth) { return q.reject('authentication method is not supported'); } // Removed greenworks auth stuff... do we need to do something else? }   ...but now all my rooms are red and I can't choose a spawn... possibly because I can't set a password?
    • Got Terminal badge when unsuccessfully started server.
      Private servers • • akuukis

      1
      1
      Posts
      2652
      Views

      No one has replied

    • Steam downloads at 10KB/s
      Private servers • • akuukis

      2
      2
      Posts
      3902
      Views

      There are indeed some network issues on Steam download servers side. Unfortunately, it is out of our control.
    • Change error notification behaviour
      Feature Requests • • akuukis

      5
      5
      Posts
      6123
      Views

      Yes, I was talking about changing it mid-script
    • History of highscores
      Feature Requests • • akuukis

      1
      1
      Posts
      2886
      Views

      No one has replied

    • Source keeper wierd
      Technical Issues and Bugs • • akuukis

      1
      1
      Posts
      2617
      Views

      No one has replied

    • Weird, messes up object
      Technical Issues and Bugs • • akuukis

      2
      2
      Posts
      3074
      Views

      From what I can tell now, its probably the javascript actually not acting as you want. You can always try to use console.log to verify the values of the variables or use the debugger statement while trying this out in the simulator.
    • There's swamp under wall
      Technical Issues and Bugs • • akuukis

      2
      2
      Posts
      3124
      Views

      Can confirm - seen it myself - one of these odd squares with swamp and wall is located in E6N3 - either 23,37 or 23 36, don't remember which one.
    • Don't return false
      Technical Issues and Bugs • • akuukis

      4
      4
      Posts
      4755
      Views

      Here it is:) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/return
    • Don't add comment on last line.
      Technical Issues and Bugs • • akuukis

      3
      3
      Posts
      4426
      Views

      In my code, I wrap my code within new Function(<code>);. While I use this to keep simple syntax errors out of the code, this also could help avoiding user code doing unexpected things. See https://github.com/avdg/screeps/blob/39d36cf49b358d2615b65ce73131e625a7ab14b4/lib/codegen/extensions.js#L332 On live code, a simple wrapper around the code should be enough be enough. Just make sure that there is a newline behind the code injection. I'm using this wrapper in my code: https://github.com/avdg/screeps/blob/39d36cf49b358d2615b65ce73131e625a7ab14b4/lib/codegen/extensions.js#L193
    • Balance of Links
      General Discussion • • akuukis

      2
      2
      Posts
      4349
      Views

      'no' downvote sage