Navigation

    forum

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

    Hannsen

    @Hannsen

    4
    Posts
    910
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Hannsen Follow

    Posts made by Hannsen

    • Construction side - Destoyable

      Is it working as intendet, that you destroy an others "custruction side" just by moving an owned creep over it ?

      posted in Help
      Hannsen
    • Problem with the tutorial

      Two friends of mine bought the game and they were not able to pass even the 1st tutorial part. - It seems to be broken in the current version.

      At a specific point, the tutorial hints will not be shown anymore, even if you reached the goal of the current hint it will not show you the next steps(hint do to.

      Tried with different browsers and even the steam client.

      FYI: I completed the tutorial before the last patch without having any issue.

      posted in Technical Issues and Bugs
      Hannsen
    • RE: Tutorial: Updating controller (Inefficient code in module?)

      As Artem said, this was just a simple code for educational purposes in the tutorial. - I found some beginner help within the slack channel.

      Anyway, thank you for all your answers 🙂

      posted in General Discussion
      Hannsen
    • Tutorial: Updating controller (Inefficient code in module?)

      Hi.

      When you are through with the tutorial Updating controller part it seems the creep.upgrader every time is just loading 2 energy, then going to push the room controller. With this it seem to be very unefficient because you will loose  activity on moving and have lesser resource gaining/room controller pushing.

      Would it not be better when the creep.upgrader loads itself to the max energy capacity and then going to push the room controller.

      Original Tutorial Module: role.upgrader

      var roleUpgrader = {

          /** @param {Creep} creep **/
          run: function(creep) {
              if(creep.carry.energy == 0) {
                  var sources = creep.room.find(FIND_SOURCES);
                  if(creep.harvest(sources[0]) == ERR_NOT_IN_RANGE) {
                      creep.moveTo(sources[0]);
                  }
              }
              else {
                  if(creep.upgradeController(creep.room.controller) == ERR_NOT_IN_RANGE) {
                      creep.moveTo(creep.room.controller);
                  }
              }
          }
      };

      module.exports = roleUpgrader;

       

      Modified Module: role.upgrader

      var roleUpgrader = {

          /** @param {Creep} creep **/
          run: function(creep) {
              if(creep.carry.energy < creep.carryCapacity && creep.carry.energy == 0) {
                  var sources = creep.room.find(FIND_SOURCES);
                  if(creep.harvest(sources[0]) == ERR_NOT_IN_RANGE) {
                      creep.moveTo(sources[0]);
                  }
              }
              else {
                      if(creep.upgradeController(creep.room.controller) == ERR_NOT_IN_RANGE) {
                          creep.moveTo(creep.room.controller);
                      }
              }
          }
      };

      module.exports = roleUpgrader;

       

      1) If i am wrong, can someone tell me why ?

      2) If i am right, maybe they should propably update the tutorial code.

      posted in General Discussion
      Hannsen