Navigation

    forum

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

    Xeenych

    @Xeenych

    9
    Posts
    946
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Xeenych Follow

    Posts made by Xeenych

    • how to #define a constant&

      I want to make some sort of C trace.

      function trace(level,param)
      {
      if (level>=TRACELEVEL)
      console.log(param);
      }

      #define TRACE_FATAL 0

      #define TRACE_INFO 7

      #define TRACELEVEL TRACE_INFO

       

      How to implement constas in Javascript like 

       FIND_MY_CREEPS: 102

       

       

      posted in Help
      Xeenych
    • module.name does not work correctly

      For debugging purposes i write something like
      console.log (module.name + 'debug message')

      In sim room module.name returns module name but in world it always returns 'main'

      posted in Technical Issues and Bugs
      Xeenych
    • RE: Is there any way to execute some function from console?

      Thank you thsi helps a lot

      posted in Help
      Xeenych
    • RE: Is there any way to execute some function from console?

      I mean I have some functions in my modules in my code and i want tot call these functions from console

      posted in Help
      Xeenych
    • Is there any way to execute some function from console?

      i have some function io my code

      function func()
      {
      dosomething
      }
      

      Is there some way to execute this function from console?

      posted in Help
      Xeenych
    • RE: cannot access all spawns through Game.spawns

      Ok, but then this looks like the console output from 'sim' room and world is mixed

      I have
      var room = Game.rooms["sim"]
      room.memory.aaa= 'bbb'

      Then I open world room and sim room in different tabs and get in both consoles:
      typerror: cannot get property of udefined

      posted in Technical Issues and Bugs
      Xeenych
    • RE: Is there any way to make creep use a predefined path?

      Creep.move(mypath[stepnumber].direction) should work, but creep has to the stepnumber in memory

      posted in Help
      Xeenych
    • RE: cannot access all spawns through Game.spawns

      Also if you have an simulation room opened in another tab, accessing spawns by name does not work correctly, because you have two spawns with the name 'Spawn1'

      posted in Technical Issues and Bugs
      Xeenych
    • Is there any way to make creep use a predefined path?

      For example I have

      flag1
      flag2
      
      var path1 = flag1.pos.findPathTo(flag2)
      

      then if I call creep.moveTo(path1), i get ERR_INVALID_TARGET

      I wish the creep to move to the nearest point of found path or use the path for navigation

      posted in Help
      Xeenych