Results 1 to 9 of 9

Thread: GetMiniMapDotsIn

  1. #1
    Join Date
    Jun 2006
    Posts
    694
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default GetMiniMapDotsIn

    GetMiniMapDotsIn was broken in today's update.

    Fixed.

    Simba Code:
    {*******************************************************************************
    function GetMiniMapDotsIn(WhatDot: String; x1, y1, x2, y2: Integer): TPointArray;
    By: euphemism
    Description: Results the dots specified by WhatDot in the box x1, y1, x2, y2.
    Usage : 'npc', 'yellow', 'n', 'y' : Yellow Dot;
            'cape', 'blue', 'team', 't', 'b' : Blue Dot;
            'item', 'red', 'i', 'r' : Red Dot;
            'player', 'white', 'p', 'w' : White Dot;
            'friend', 'green', 'f', 'g' : Green Dot;
    *******************************************************************************}

    function GetMiniMapDotsIn(WhatDot: String; x1, y1, x2, y2: Integer): TPointArray;
    var
      DotColor, Radius: Integer;
    begin
      case LowerCase(WhatDot) of
        'npc', 'n', 'yellow', 'y': DotColor := 1567960; //Last fixed Dec 6th wyn10
        'item', 'i', 'red', 'r': DotColor := 1378484; //Last fixed Dec 6th wyn10
        'player', 'p', 'white', 'w': DotColor := 15197951; //Last fixed Dec 6th wyn10
        'friend', 'f', 'green', 'g': DotColor := 60160; //Who uses this
        'team', 't', 'blue', 'b', 'cape': DotColor := 9917996; //Who uses this
        'clan', 'c', 'orange', 'o': DotColor := 1604816; //Who uses this
      else
        srl_Warn('GetMiniMapDotsIn', '"' + WhatDot + '" is not a valid dot type', warn_AllVersions);
      end;
      Radius := Max((x2-x1)/2, (y2-y1)/2);
      FindColorsPie(Result, DotColor, 0, 0, 360, 0, radius, x1, y1, x2, y2, (x1+x2)/2, (y1+y2)/2);
      RAaSTPAEx(Result, 1, 1);
    end;

  2. #2
    Join Date
    Jun 2006
    Posts
    694
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default

    Ignore the previous fix.

    I have checked and dots are dynamic now.

  3. #3
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Would help if you gave a diff or said what you changed please!
    Thanks!

    E: FARG! MM Dots change colors now? Poo!

  4. #4
    Join Date
    Jun 2006
    Posts
    694
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Would help if you gave a diff or said what you changed please!
    Thanks!
    Read the //'s.

  5. #5
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    I guess adding some tolerance might fix it. I mean not that many red/yellow/white colors appear on the minimap, but tolerance might make it inaccurate. Try changing the tolerance parameter in FindColorsPie and see if it works any better/is accurate.

  6. #6
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    I'm think Flag is broken too.

    I was making autocolor function to find the red door color so I noticed that flag doesn't contain any of the FlagColor constant in Flag.scar.

    FlagColors are now changing. Idk if they used to change.


    I think we can (quite) easily detect the shape of MMDots and Flag to make sure we find the right thing.
    Last edited by weequ; 12-06-2011 at 06:07 PM.
    Quote Originally Posted by DeSnob View Post
    ETA's don't exist in SRL like they did in other communities. Want a faster update? Help out with updating, otherwise just gotta wait it out.

  7. #7
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    No I don't believe they did used to change.
    This is okay thought, we just need to all tolerance to MM stuff no huge deal!

    Made a thread for all MMDots/Flag talk:
    http://villavu.com/forum/showthread....970#post855970
    Last edited by YoHoJo; 12-06-2011 at 06:19 PM.

  8. #8
    Join Date
    Jun 2008
    Location
    United States
    Posts
    818
    Mentioned
    60 Post(s)
    Quoted
    90 Post(s)

    Default

    Yes, colors were static, and this dot-finding was based on certain pixel placements on the dots. I'll try fixing it when I get home.
    [10/14/13:19:03] <BenLand100> this is special relatively, just cleverly disguised with yachts

  9. #9
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Mormonman posted a fixed version of this and FindFlag here. These will be included in the next update.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •