Log in

View Full Version : FindColorsTolerance fail



blackfire553
06-20-2011, 08:04 PM
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
06-20-2011, 08:12 PM
off note: You could just do Writeln(FishPoints).

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

blackfire553
06-20-2011, 09:24 PM
when i have it at 6 i get no points in the array

TomTuff
06-20-2011, 09:36 PM
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
06-20-2011, 09:47 PM
Try auto color aid

Rich
06-20-2011, 09:51 PM
Try auto color aid-->
When i used ACA V2 to get my own colors etc, i still have the same problem.

blackfire553
06-20-2011, 10:22 PM
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
06-20-2011, 10:25 PM
FindColorsTolerance(FishPoints,11050135,MSX1,MSY1, MSX1,MSY2,21);
->
FindColorsTolerance(FishPoints, 11050135, MSX1, MSY1, MSX2, MSY2, 21);

blackfire553
06-20-2011, 10:55 PM
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
06-20-2011, 11:09 PM
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. (http://villavu.com/forum/misc.php?do=cybstats) The top right column can be changed to see the top reps.

TomTuff
06-20-2011, 11:17 PM
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
06-22-2011, 11:30 PM
whoops double post, delete pl0x

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