Navigation

    forum

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

    Benoxiid

    @Benoxiid

    2
    Posts
    639
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Benoxiid Follow

    Posts made by Benoxiid

    • RE: Screeps Crashing ?

      Oh. yeah. right. x)
      Thanks a lot ^^'

      posted in Help
      Benoxiid
    • Screeps Crashing ?
      //main.js:
      var queue = require('spawn.queue');

      module.exports.loop = function ()
      {
          queue.addCreep('Hello World !', 2);
          console.log(queue.checkCreep);
      };

      //queue.js:
      var spawnQueue = [];

      module.exports =
      {
          addCreep: function(creep, number)
          {
              for (;number > 0; number++)
              {
                  spawnQueue.push(creep);
              }
          },
          
          spawnCreep: function(creep, number)
          {
              for (;number > 0; number++)
              {
                  spawnQueue.unshift(creep);
              }
          },
          
          checkCreep: function()
          {
              return (spawnQueue[0]);
          },
          
          getCreep: function()
          {
              return (spawnQueue.shift());
          }
      };


      So. In simulation, this is making the game crash. idk where to start. x)

      Can someone pls help me ? ^^

      posted in Help
      Benoxiid