Navigation

    forum

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

    Sheph

    @Sheph

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

    Sheph Follow

    Posts made by Sheph

    • RE: Why wont my scripts run on World?

      Scratch that. Seems rebooting the game fixed it. Must've been some wierd desync bug when connecting the screeps.com account with the steam account.

      posted in Help
      Sheph
    • Why wont my scripts run on World?

      I'm trying to get the scripts running  through the application (not browser). I did the tutorial and those worked fine in the simulator. Now in the World, I have gotten myself a room, and the 30 day subscription that comes with the game. My UI says I use 1/30 CPU.

       

      I started copying the tutorial code, but didn't seem to execute. So I tried setting my main.js to simply:

      module.exports.loop = function () {

      console.log('Hi');
      }

      Again, this works fine in the simulator. But on World, nothing happens. Tried visiting my world on screeps.com and it seems main contains pregenerated:

      var roleHarvester = require('role.harvester');

      module.exports.loop = function () {

      for(var name in Game.creeps) {
      var creep = Game.creeps[name];
      roleHarvester.run(creep);
      }
      }

       

      How do I actually upload my code? Tried both clicking the checkmark and ctrl+s. I'm on branch default on both the website and in the client.

       

      posted in Help
      Sheph