Navigation

    forum

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

    Topics created by Xeenych

    • how to #define a constant&
      Help • • Xeenych

      2
      2
      Posts
      3479
      Views

      You can declare them in global scope (outside your main loop) as follows: global.<nameofvariable> = "stuff"; This is also accessible by the console. You can also define methods this way: global.test = function() {console.log("Hello world!");} Your can type test(); in your console and it will call the function!
    • module.name does not work correctly
      Technical Issues and Bugs • • Xeenych

      2
      2
      Posts
      2996
      Views

      It is fixed, thanks for reporting.
    • Is there any way to execute some function from console?
      Help • • Xeenych

      9
      9
      Posts
      26876
      Views

      I'm still using 1 global in my own code, not accessible anymore from console, but I'm hoping I can keep that global. (apparently changing the globals triggers a deoptimalization in the v8 chrome/node endinge, I hope it's not a big one...)
    • Is there any way to make creep use a predefined path?
      Help • • Xeenych

      5
      5
      Posts
      6309
      Views

      There is new method Creep.moveByPath for this purpose now.