Results 1 to 11 of 11

Thread: Can't Create a accurate TPA to have my life.

  1. #1
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default Can't Create a accurate TPA to have my life.

    So, I learned how to make a TPA and for it to click on a object, It works well for my miner(with the exception of the smoking rock having to be re-written every logout) and I tried making a TPA to find the bank but I feel like just using a single color would be more accurate.. well because it has been more accurate for me. I am trying to make simba click on a bank booth but when I was ACA I can never get good colors it always shows red on spots other then the bank booth:

    -BTW I see CTS is on 1 but it shows almost the same results on 2
    This same thing happens to me with DTM's..
    What am I doing wrong? Btw my code finding the bank booth is:
    Simba Code:
    program test;
    {$i srl/srl.simba}
    Procedure FindTheBank;
    var
      tmpCTS, l, r:Integer;
      BankTPA:TPointArray;
    begin
      MouseSpeed:=15;
      tmpCTS := GetToleranceSpeed;
      SetColorToleranceSpeed(2);
      SetToleranceSpeed2Modifiers(0.69,1.67);
      if FindColorsTolerance(BankTPA, 9281961, 1, 1, 516, 337, 7) then
        begin
        SetColorToleranceSpeed(tmpCTS);
        SetToleranceSpeed2Modifiers(0.02, 0.02);
        L := High(BankTPA)
        wait(randomrange(60, 100));
        mmouse(BankTPA[r].x, BankTPA[r].y, 2, 2);
        wait(randomrange(100, 150));
        clickmouse2(mouse_left);
        wait(randomrange(2000, 2500));
        end;
    end;
    begin
    FindTheBank;
    end.

  2. #2
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    use the bankers themselves, purple and easy
    Last edited by DannyRS; 12-16-2012 at 10:14 PM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  3. #3
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    use the bankers themselves, purple and easy
    You got my excited for a second.. then.. I right clicked the banker..


    Dern L0L

  4. #4
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    You got my excited for a second.. then.. I right clicked the banker..
    oh this is a RSPS ?


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  5. #5
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    In ACA, go to the bottom right corner; Click the circle so you have '2' checked instead of 1.

    Pick colors that you want to be found, and make sure to note the 'tolerance', 'best color', 'hue mod', 'sat mod' - all shown in ACA.

    Then when using color information in script, ex. your snippet in main post, use that information. Also note, splitting your TPA to ATPA (basically instead of pointing out all the colors on the main screen like the snippet does at the moment, this will split all those colors into separate TPA's, aka an Array of TPointArray) and saying the distance or w+h of each ATPA bounds you want may help. To even further help, sort the resulting ATPA's from your player Point, so the closet ATPA, hopefully banker booth in front of you, is chosen. There are many more ways to narrow down too. Browsing TPA's in left column (functionlist) within simba provides many more built in functions for ATPA/TPA's.

  6. #6
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    oh this is a RSPS ?
    yup lol otherwise i woulfa used uptext

  7. #7
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    try a y offset on the bankers?

    Simba Code:
    program test;
    {$i srl/srl.simba}
    Procedure FindTheBank;
    var
      tmpCTS, l, r:Integer;
      BankTPA:TPointArray;
    begin
      MouseSpeed:=15;
      tmpCTS := GetToleranceSpeed;
      SetColorToleranceSpeed(2);
      SetToleranceSpeed2Modifiers(0.15, 0.46);
      if FindColorsTolerance(BankTPA, 3810347, 1, 1, 516, 337, 12) then
        begin
        SetColorToleranceSpeed(tmpCTS);
        SetToleranceSpeed2Modifiers(0.02, 0.02);
        L := High(BankTPA)
        wait(randomrange(60, 100));
        mmouse((BankTPA[r].x), (BankTPA[r].y)+25, 2, 2);
        wait(randomrange(100, 150));
        clickmouse2(mouse_left);
        wait(randomrange(2000, 2500));
        end;
    end;
    begin
    FindTheBank;
    end.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  8. #8
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Le Jingle View Post
    In ACA, go to the bottom right corner; Click the circle so you have '2' checked instead of 1.

    Pick colors that you want to be found, and make sure to note the 'tolerance', 'best color', 'hue mod', 'sat mod' - all shown in ACA.

    Then when using color information in script, ex. your snippet in main post, use that information. Also note, splitting your TPA to ATPA (basically instead of pointing out all the colors on the main screen like the snippet does at the moment, this will split all those colors into separate TPA's, aka an Array of TPointArray) and saying the distance or w+h of each ATPA bounds you want may help. To even further help, sort the resulting ATPA's from your player Point, so the closet ATPA, hopefully banker booth in front of you, is chosen. There are many more ways to narrow down too. Browsing TPA's in left column (functionlist) within simba provides many more built in functions for ATPA/TPA's.
    Guess i should go learn about ATPA then because I was already doing everything that you said


    @ dannyrs that would work but I want to know how to click the object correctly for future uses

  9. #9
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Yeah, learning TPA without extending to ATPA is not very useful. Also you are not looping through the TPA, instead you are just clicking the first point since r has default value of 0.

    It may not be a good idea to loop through every point w/o splitting it too since you will be going through nearby points of the same obj, so you will need knowledge on ATPA/CTS 2 to do this accurately.

    It is still possible to use the purple colored banker by having (direction-independent) offsets.

  10. #10
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Send me a screenshot and I'll get the best color for you.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  11. #11
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Send me a screenshot and I'll get the best color for you.
    Sorry for slow response time I'll try to get one to you tommorrow i'm currently during a proggy for a different script of mine. Tinypic link fine?And what do I save it as for best quality?

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
  •