Navigation

    forum

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

    tomknot

    @tomknot

    3
    Posts
    999
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    tomknot Follow

    Posts made by tomknot

    • Console features

      It would have been nice been able to pause/stop and clear the console.log while debugging 🙂

      posted in Feature Requests
      tomknot
    • Notify via json or xml

      Having the option of notifying me through some url.json would have been awesome as I could make a mobile application for getting notifications 😄

      I personally would not mind this .json being available for everyone.. maybe one could take some advantage looking at others 'notifications' but guess it would be hard automate such tasks?

      posted in Feature Requests
      tomknot
    • Callbacks

      Hi, I've played around with this game now, and noticed that the code snippet below does not work. The goal is to recreate the same creep (having same name and body parts):

      ....
      if (creep.suicide() == OK) {
          var res = Game.spawns.Barracks.canCreateCreep(myBody, myName);
          console.log('res', res);
          if (res == OK) {
              Game.spawns.Barracks.createCreep(myBody, myName);
          }
      ...
      

      The "problem" is that the creep still exists as it is killed (being killed) as I get ERR_NAME_EXISTS (-3) error. Wouldn't it be better have it been a callback for these kind of code? Like so...

      creep.suicide(function() {
          // on success (OK)
      }).error(function(response)) {
          // on error response = ERR_...
      });
      
      posted in Feature Requests
      tomknot