Navigation

    forum

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

    DrJamgo

    @DrJamgo

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

    DrJamgo Follow

    Posts made by DrJamgo

    • RE: createFlag functions takes longer then I thought

      @systemparadox I have one flag per creep (marking target location and the like) which is about 15 in total.

      I noticed all Flag functions take that time.. even setColor and setPosition because they infact remove the old flag and create a new one 😕

      I guess that explains matters..

      posted in General Discussion
      DrJamgo
    • createFlag functions takes longer then I thought

      Hello fellow Screepers,

      I recently started profiling and noticed that the createFlag functions have a lot overhead beyond the fixed 0.2 cost. I create unique named Flags btw..

      From screeps-profiler output:

      calls		time		avg		function
      25		11.1		0.443		RoomPosition.createFlag
      25		10.7		0.426		Room.createFlag 
      

      I know 0.443 does not mean the world but is suprising for such a simple function though. Does anybody care to confirm/explain ?

      Regards, DrJamgo

      posted in General Discussion
      DrJamgo
    • RE: Provide id of selected object to script

      @K-C: My proposal: id depends on most recent selection event, regardless of the instance.

      Keep in mind this is supposed to be a debug feature, we can live with a few flaws I think. Visuals aren't perfect either, but are still great.

      Regards,
      DrJamgo

      posted in Feature Requests
      DrJamgo
    • Provide id of selected object to script

      Hi gentlemen,

      A nice debugging feature would be to provide the object id of the object that the user currently has selected in gui. Example: Game.getSelectedObjectId
      One could log details, show extra visuals, etc with this information.

      Also solves this guys problem: http://screeps.com/forum/topic/287/Creep-overrideable-info-string-for-display-on-info-panel

      Regards,
      DrJamgo

      posted in Feature Requests
      DrJamgo