SRL Archive - Help

FindColorsTolerance fail


blackfire553

2011-06-20 16:04:21

I can't get this script to return any usable numbers, im trying to write a fishing script for draynor village. I copied the exact hue tolerance sat and color from MSI fishing, but when i use them i get no results. At about 22 tolerance it starts giving me ALL the points on the map, from 4,4 to 4,337 but below that i cant get any colors besides starting at 4,4 at all.

i added writeln procedures to MSI Fishing to see what points i got and it gives me tons of accurate points with the same values.

When i used ACA V2 to get my own colors etc, i still have the same problem.

program new;
{$DEFINE SMART}
{$i SRL/SRL.scar}
{$i srl/srl/misc\stats.simba}
{$i Reflection\Reflection.Simba}
const
SMART_WORLD = 152;//World
SMART_MEMBER = false;//Members
SMART_SIGNED_CLIENT = true;//Signed/unsigned
SMART_SUPER_DETAIL = false;//Super detail
var
FishPoints : TPointArray;
i : integer;
begin
Smart_Server := SMART_WORLD;
Smart_Members := SMART_MEMBER;
Smart_Signed := SMART_SIGNED_CLIENT;
Smart_SuperDetail := SMART_SUPER_DETAIL;
SetupSRL;
SetupReflection;
setToleranceSpeed2Modifiers(0.26,0.62);
writeln('Finding Colors');
FindColorsTolerance(FishPoints,11050135,MSX1,MSY1,MSX1,MSY2,21);
for i := 0 to high(FishPoints) do
writeln('Point: ' + inttostr(FishPoints[i].x) + ' ' + inttostr(FishPoints[i].y));
end.

TomTuff

2011-06-20 16:12:08

off note: You could just do Writeln(FishPoints).

Try lowering tolerance to like 6 :P 21 is really high.

blackfire553

2011-06-20 17:24:03

when i have it at 6 i get no points in the array

TomTuff

2011-06-20 17:36:18

From: blackfire553
when i have it at 6 i get no points in the array


Then you're doing something wrong. Instead of stealing work from MSI, gather the info yourself to find it. Some good TPA functions I've made operated at a tolerance of 2 perfectly.

Smarter Child

2011-06-20 17:47:46

Try auto color aid

Rich

2011-06-20 17:51:40

From: Smarter Child
Try auto color aid
–>
From: blackfire553
When i used ACA V2 to get my own colors etc, i still have the same problem.

blackfire553

2011-06-20 18:22:00

From: TomTuff
Then you're doing something wrong. Instead of stealing work from MSI, gather the info yourself to find it. Some good TPA functions I've made operated at a tolerance of 2 perfectly.


I know im doing something wrong. I can't figure out what i am doing wrong so i am asking the community for help.

Im not stealing anything. I looked through all the tutorials on the wiki and i could not figure out how to get the function to work. I tried making my own code, and when it didn't work i copied the MSI code to see if i could get it to work, because it obviously does. I need to know how to be able to write my own code.

TomTuff

2011-06-20 18:25:36

FindColorsTolerance(FishPoints,11050135,MSX1,MSY1,MSX1,MSY2,21);
->
FindColorsTolerance(FishPoints, 11050135, MSX1, MSY1, MSX2, MSY2, 21);

blackfire553

2011-06-20 18:55:41

From: TomTuff
FindColorsTolerance(FishPoints,11050135,MSX1,MSY1,MSX1,MSY2,21);
->
FindColorsTolerance(FishPoints, 11050135, MSX1, MSY1, MSX2, MSY2, 21);


Thank you very much! I have been wondering and testing this all day. It's funny how simple mistakes can cause such odd errors.

(offtopic) how do you see how much rep a person has? i gave you a +rep :santa:

Rich

2011-06-20 19:09:25

From: blackfire553
Thank you very much! I have been wondering and testing this all day. It's funny how simple mistakes can cause such odd errors.

(offtopic) how do you see how much rep a person has? i gave you a +rep :santa:
You can tell what hundred they are in by the amount of balls they've got minus one. If they are in the amount you set on the link just a bit ahead, you can see the actual amount on the forum stats. The top right column can be changed to see the top reps.

TomTuff

2011-06-20 19:17:37

From: blackfire553
Thank you very much! I have been wondering and testing this all day. It's funny how simple mistakes can cause such odd errors.

(offtopic) how do you see how much rep a person has? i gave you a +rep :santa:


hey sweet that got me my 4th rep ball! Glad to help.

Smarter Child

2011-06-22 19:30:11

From: blackfire553
whoops double post, delete pl0x


Kind of, off-topic but I just thought I'd remind you that you can delete your own posts. ;)