Results 1 to 19 of 19

Thread: Does ''FindFallyRoadColor'' Work?

  1. #1
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Does ''FindFallyRoadColor'' Work?

    Edit: Could some one add me on msn or something and help me please because i read a lot of tuts and tryed a couple of ways bu still cant get started on making a walking function
    Last edited by rya; 03-01-2010 at 04:08 PM.
    I see Now, says the blind man

  2. #2
    Join Date
    Jan 2008
    Location
    Houston, Texas, USA
    Posts
    770
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nothing from AutoColor.scar works :/

    Edit: Use the Auto Color Aid (ACA) v2 from the scripting folder to make your own auto color.

  3. #3
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by FEAR View Post
    Nothing from AutoColor.scar works :/

    Edit: Use the ACA v2 from the scripting folder to make your own auto color.
    Ok thanks
    but why is it there is nothing works?
    I see Now, says the blind man

  4. #4
    Join Date
    Jan 2008
    Location
    Houston, Texas, USA
    Posts
    770
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rya View Post
    Ok thanks
    but why is it there is nothing works?
    Its very very old and no one bothered to fix it.

  5. #5
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by rya View Post
    Ok thanks
    but why is it there is nothing works?
    Quote Originally Posted by FEAR View Post
    Its very very old and no one bothered to fix it.
    Not many people use AutoColoring these days honestly. Not that I see anyways...

    TPA's make AutoColoring not as necessary.

  6. #6
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by NCDS View Post
    Not many people use AutoColoring these days honestly. Not that I see anyways...

    TPA's make AutoColoring not as necessary.
    Hmm, I use AC in my TPAs

  7. #7
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Find FallyRoadColor works sometimes. I am working on re writing one, I will release it when i'm done.

  8. #8
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by NCDS View Post
    Not many people use AutoColoring these days honestly. Not that I see anyways...

    TPA's make AutoColoring not as necessary.
    autocoloring makes the tpas more reliable. why wouldnt you use them?
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  9. #9
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    There is no longer a specific color for any road. The best solution is to use tolerance with a color from ACA, or to just use CTS 2 all together in combination with TPAs because whatever single color you return from auto color on a road isn't going to cover all of it.

  10. #10
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    autocoloring makes the tpas more reliable. why wouldnt you use them?
    Usually if something doesn't work wih just a single color and tolerance I will just loop through a few colors instead of taking the time to do an AutoColor routine.

  11. #11
    Join Date
    Dec 2006
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Is there a function like radialwalk that does not use any colour at all, just a pure geometry walk?

    ScarPreRelease 3.23 rev 80, Includes - Dev Rev 457

  12. #12
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by twobac View Post
    Is there a function like radialwalk that does not use any colour at all, just a pure geometry walk?
    That makes no sense.

  13. #13
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I wrote this a few days ago for Varrock. Since the roads are now broken up into many colors, it would be nice to return more than one color for the roadcolor and loop through them...

    Code:
    function RadialWalks(TheColors:TIntegerArray; StartRadial, EndRadial, Radius, Xmod, Ymod: Integer): Boolean;
    var
      TPA,TPA2: TPointArray;
      I,J,N: Integer;
    begin
      Result := False;
      n:=High(TheColors);
      if n=0 then exit;
      for j:= 0 to n do
      begin
        if RadialWalkEx(tpa, MMCX, MMCY, TheColors[j], 0, StartRadial, EndRadial, Radius) then
        TPA2:=CombineTPA(TPA,TPA2);
      end;
      SortCircleWise(tpa2, MMCX, MMCY, StartRadial, False, StartRadial > EndRadial);
      for i:= 0 to High(TPA2) do
       if MFNF(tpa2[i].x, tpa2[i].y, Xmod, Ymod) then
       begin
         FFlag(10);
         Result := True;
         Exit;
       end;
    end;
    
    Function FindVarrockRoadColors:TIntegerArray;
    var
      ii, i, c, n, w: Integer;
      TestColours: TIntegerArray;
      TPA: TPointArray;
      x, y, z: Extended;
      r, g, b: Integer;
      BlackList, ResultArr: TIntegerArray;
      RoadColorsString:string;
    begin
      FindColorsSpiralTolerance(mmcx, mmcy, tpa, 8881291, mmx1, mmy1, mmx2, mmy2, 70);
      if length(tpa) > 0 then
      begin
        c := high(TPA);
        TestColours := GetColors(TPA);
        for i := 0 to c do
        begin
          ColorToRGB(TestColours[i], r, g, b);
          ColorToXYZ(TestColours[i], x, y, z);
          if not InIntArray(blacklist, TestColours[i]) then
            if InRange(R - B, -5, 13) then
              if InRange(R - G, -7, 10) then
                if InRange(G - B, -5, 9) then
                  if ((x > 22.5) and (x < 26.5)) then
                    if ((y > 22.5) and (y < 27.8)) then
                      if ((z > 23.5) and (z < 28.7)) then
                      begin
                        n := high(ResultArr);
                        SetArrayLength(ResultArr, n + 2);
                        ResultArr[n+1] := TestColours[i];
                      end;
                      w := high(blacklist);
                      SetArrayLength(BlackList, w + 2);
                      BlackList[w+1] := TestColours[i];
        end;
      end;
      if length(resultarr) < 1 then
      begin
        SetArrayLength(Result, 1);
        result[0] := -1;
        writeln('Could not find Varrock road color!');
        exit;
      end;
      RoadColorsString:='';
      w := high(resultArr);
      for i := 1 to w do
      begin
        ii := CountColor(resultarr[i], mmx1, mmy1, mmx2, mmy2);
        if ii > 20 then
        begin
          if (RoadColorsString='') then RoadColorsString:=IntToStr(ResultArr[i]) else
           RoadColorsString:=RoadColorsString+','+IntToStr(ResultArr[i]);
          n := high(Result);
          SetArrayLength(Result, n + 2);
          Result[n+1] := resultarr[i];
        end;
      end;
      writeln('Varrock Road Colors Found = '+RoadColorsString);
    end;
    Basically, it returns all matching colors, and then walks based on the color array rather than just one color.


  14. #14
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by tarajunky View Post
    I wrote this a few days ago for Varrock. Since the roads are now broken up into many colors, it would be nice to return more than one color for the roadcolor and loop through them...

    Code:
    function RadialWalks(TheColors:TIntegerArray; StartRadial, EndRadial, Radius, Xmod, Ymod: Integer): Boolean;
    var
      TPA,TPA2: TPointArray;
      I,J,N: Integer;
    begin
      Result := False;
      n:=High(TheColors);
      if n=0 then exit;
      for j:= 0 to n do
      begin
        if RadialWalkEx(tpa, MMCX, MMCY, TheColors[j], 0, StartRadial, EndRadial, Radius) then
        TPA2:=CombineTPA(TPA,TPA2);
      end;
      SortCircleWise(tpa2, MMCX, MMCY, StartRadial, False, StartRadial > EndRadial);
      for i:= 0 to High(TPA2) do
       if MFNF(tpa2[i].x, tpa2[i].y, Xmod, Ymod) then
       begin
         FFlag(10);
         Result := True;
         Exit;
       end;
    end;
    
    Function FindVarrockRoadColors:TIntegerArray;
    var
      ii, i, c, n, w: Integer;
      TestColours: TIntegerArray;
      TPA: TPointArray;
      x, y, z: Extended;
      r, g, b: Integer;
      BlackList, ResultArr: TIntegerArray;
      RoadColorsString:string;
    begin
      FindColorsSpiralTolerance(mmcx, mmcy, tpa, 8881291, mmx1, mmy1, mmx2, mmy2, 70);
      if length(tpa) > 0 then
      begin
        c := high(TPA);
        TestColours := GetColors(TPA);
        for i := 0 to c do
        begin
          ColorToRGB(TestColours[i], r, g, b);
          ColorToXYZ(TestColours[i], x, y, z);
          if not InIntArray(blacklist, TestColours[i]) then
            if InRange(R - B, -5, 13) then
              if InRange(R - G, -7, 10) then
                if InRange(G - B, -5, 9) then
                  if ((x > 22.5) and (x < 26.5)) then
                    if ((y > 22.5) and (y < 27.8)) then
                      if ((z > 23.5) and (z < 28.7)) then
                      begin
                        n := high(ResultArr);
                        SetArrayLength(ResultArr, n + 2);
                        ResultArr[n+1] := TestColours[i];
                      end;
                      w := high(blacklist);
                      SetArrayLength(BlackList, w + 2);
                      BlackList[w+1] := TestColours[i];
        end;
      end;
      if length(resultarr) < 1 then
      begin
        SetArrayLength(Result, 1);
        result[0] := -1;
        writeln('Could not find Varrock road color!');
        exit;
      end;
      RoadColorsString:='';
      w := high(resultArr);
      for i := 1 to w do
      begin
        ii := CountColor(resultarr[i], mmx1, mmy1, mmx2, mmy2);
        if ii > 20 then
        begin
          if (RoadColorsString='') then RoadColorsString:=IntToStr(ResultArr[i]) else
           RoadColorsString:=RoadColorsString+','+IntToStr(ResultArr[i]);
          n := high(Result);
          SetArrayLength(Result, n + 2);
          Result[n+1] := resultarr[i];
        end;
      end;
      writeln('Varrock Road Colors Found = '+RoadColorsString);
    end;
    Basically, it returns all matching colors, and then walks based on the color array rather than just one color.
    When runetek5 came out, I proposed using an int arr, but every one wanted to stick to a single colour >.<

    @FEAR: iirc, my findTreeColor works.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  15. #15
    Join Date
    Dec 2006
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    That makes no sense.

    sorry, what I meant was, is there a function that will click on the MM based the start radial, end radial and radius, but ignore the colours, ie clicking on a random pixel in the crust of the pizza slice.

    Hope that is clearer.

    ScarPreRelease 3.23 rev 80, Includes - Dev Rev 457

  16. #16
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by twobac View Post
    sorry, what I meant was, is there a function that will click on the MM based the start radial, end radial and radius, but ignore the colours, ie clicking on a random pixel in the crust of the pizza slice.

    Hope that is clearer.
    Oh that's, quite easy. But is nothing at all like RadialWalk/RadialRoadWalk/Radarwalk ect...

  17. #17
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    With the ability to click the compass and set everything to perfect north, it would probably be possible to walk without anything but coordinates...


  18. #18
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by tarajunky View Post
    With the ability to click the compass and set everything to perfect north, it would probably be possible to walk without anything but coordinates...
    I thought the same.

    Sadly it doesn't work out. I tried with the firecrafter and it doesn't work to well. You have to remember it deteriorates more and more over time with each click.

  19. #19
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by twobac View Post
    Is there a function like radialwalk that does not use any colour at all, just a pure geometry walk?
    WalkToTile? or WalkPath should be good for walking(but its reflection...)

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
  •