Results 1 to 11 of 11

Thread: Function to find things on minimap.

  1. #1
    Join Date
    Apr 2007
    Posts
    373
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default Function to find things on minimap.

    Like the title says.
    I can't use Tiles with reflection because tiles are not the same every time.
    I can't use DTM's because there is to much change at the minimap to use DTM's.

    If anyone have a suggestion i am glad to hear about that

    Thx
    ~Fre

  2. #2
    Join Date
    Mar 2007
    Posts
    3,681
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    screen of minimap area you are using?

  3. #3
    Join Date
    Jul 2008
    Location
    Poland
    Posts
    375
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah, screen :P
    :P

  4. #4
    Join Date
    Apr 2007
    Posts
    373
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default

    I would just like to use the minimap.
    ~Fre

  5. #5
    Join Date
    Mar 2007
    Posts
    3,681
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes.. show us a SCREENSHOT and we MIGHT be able to HELP?

  6. #6
    Join Date
    Apr 2007
    Posts
    373
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default

    Thx

    I would like to find a way to see what maze i need to solve.
    So i tought i need to look at the minimap to find the current maze i am near.
    ~Fre

  7. #7
    Join Date
    Apr 2007
    Posts
    373
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default

    Help plz
    ~Fre

  8. #8
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    umm maybe try some bmps... idk... try to find a spot on the maze that is only seen on that maze, like a couple of turns, and use that as a small bmp. that would be my best suggestion.

    or maybe u can use a middle TPA of all the white color. since there are different amounts of white colors on the minimap for the different mazes, u could say that if x,y is the center... then it is Maze 1. but if x1,y1 is the center than... so on n so forth.

    idk pulling random ideas out of the blue

  9. #9
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    DDTM, DTM or RadialWalk with AutoColoring.


  10. #10
    Join Date
    Jul 2008
    Location
    Poland
    Posts
    375
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Maybe you should count grey color.

    if InRange(GrayColor, MinGrayColor, MaxGrayColor) then Maze := 'Maze' else
    if...
    :P

  11. #11
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Create an autocolor for the gray colored floor, get a TPA of it, and take note of the lengths for each maze type. Add some tolerance for the lengths too. Example:
    SCAR Code:
    FindColorsTolerance(TPA, FindMazeFloorColor, MMX1, MMY1, MMX2, MMY2, 0);
    case Length(TPA) of
      90..100: DoMaze1;
      190..200: DoMaze2;
      290..300: DoMaze3;
    end;

    If this doesn't work, compare TPA lengths for the white walls inside the maze rather than the floor.
    Last edited by lordsaturn; 04-11-2009 at 09:56 PM.

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
  •