Navigation

    forum

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

    Dranthe

    @Dranthe

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

    Dranthe Follow

    Posts made by Dranthe

    • RE: Execute Function From Console?

      @avdg_

      There was no syntax error but I was trying to declare a global or module variable to keep track of the different types of creeps but apparenly JS doesn't like that. I ended up using the Memory to track them.

      @DunknDonuts

      Yes, that's correct.

      posted in Help
      Dranthe
    • Execute Function From Console?

      Has anybody found a way to do this? I looked here but that doesn't seem to work any more. It throws an error.

      My function looks like this:

      module.exports = {
          doSomething: function(){
          }
      }
      

      and call it like this from the console:

      require('module').doSomething();
      

      which throws this error:

      SyntaxError: Unexpected identifier
          at n:5:28406
          at _console1439402269655_0:1:5491
          at Object.c.runCode:5:34055
      

      As far as I can tell it's exactly like the link above and should work. Any ideas?

      posted in Help
      Dranthe