Results 1 to 3 of 3

Thread: help please, DTM/Bitmap

  1. #1
    Join Date
    Apr 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default help please, DTM/Bitmap

    alright, this isn't for RS, its for another game...

    here is my issue, i am trying to determine what number is at a given position (sudoku game) i have the script take a position like this:
    getNumber(xPos[i],yPos[i]);

    this is one thing i've tried:

    function getNumber(a, b: Integer) : Integer;
    begin
    if(FindDTM(one,x,y,a,b,a+xPlus,b+yPlus)) then
    begin
    writeln('wow');
    end
    else
    begin
    writeln('damn');
    end
    end;

    aswell as trying all the different bitmap types

    the number is always the same shape and colors, but depending on where on the board it is, it is covered in black dots differently

    here are some examples, you will need to zoom in...







    however, if i took the number from a different spot on the board, it would have the black spots in different positions...

    is there anyway to do this? i need nothing with color, just the shape i think... i think i did the DTM correct, but i could not find a good tutorial for it, i used an older one from sythe *shudder*

    please and thanks on any help or suggestions

  2. #2
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Hmm... Prolly deformed bitmaps or a two color system...

    Maybe siomeone will post later with info on this?
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  3. #3
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I think there is something that DTMs can do that will help. When creating a point, there is an option called "Area size". This will let it find a color in a bigger area. Try setting that on all of the points to 1 or 2.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find Bitmap in Bitmap file
    By fORCE_wORKS in forum RS3 Outdated / Broken Scripts
    Replies: 8
    Last Post: 12-13-2007, 11:04 PM
  2. using Bitmap?
    By legendaryhero90 in forum OSR Help
    Replies: 14
    Last Post: 03-16-2007, 02:18 PM
  3. Bitmap
    By whales in forum OSR Help
    Replies: 4
    Last Post: 12-20-2006, 12:16 AM

Posting Permissions

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