Here is the code that i would want to change to CTS 3. Any help would be much obliged.
Simba Code:findColorsSpiralTolerance(x, y, spotTPA, 15521733, mainScreen.getBounds(), 10, colorSetting(2, 0.22, 1.13));
Printable View
Here is the code that i would want to change to CTS 3. Any help would be much obliged.
Simba Code:findColorsSpiralTolerance(x, y, spotTPA, 15521733, mainScreen.getBounds(), 10, colorSetting(2, 0.22, 1.13));
You dont. CTS2 works excellent as is, and is substantially ?faster? than CTS3.
larger number doesnt mean its better.
But again, you dont just go from one to another. if you want cts3 modifiers, you mark all the colors again (with ACA) and get the cts3 colors and modifiers.
Can confirm.
Reference: http://docs.villavu.com/simba/script...lour-tolerance
the CTS library is under /includes/srl-6/lib/utilities.color
I am curious about why you wish to use CTS3? :)
As for the change, it's actually as the others say - "You don't". You can use CTS3 but you wont get the same results, and highly likely worse result, by both the time it uses, and the result you get. Only a few (very special) cases could potentially benefit from the current algorithm behind CTS3, but for anything RS-related I strongly doubt you will get any improvement. Your best bet would be be to continue to use CTS2.
Regarding the modifiers, "CTS3" doesn't really have modifiers, it's "modifier" simply works as a multiplicand:
» PCTS3Info(Result)^.Tol := Ceil(Sqr(Tol*CTS3Modifier));
ref: finder.pas
That's it.pascal Code:FindColorsSpiralTolerance(x, y, spotTPA, 15521733, MainScreen.getBounds(), 10, ColorSetting(3,1));
Side-note:
I'm going to assume you are misusing `FindColorsSpiralTolerance`. I even doubt you have set `x` and `y`, so they are `0` and `0`. I am even willing to bet that you are modifying and/or using the resulting TPA in a manner that renders the order irrelevant (this is quite normal). So I want to suggest the following, that is if you have no reason for actually searching in a spiral-order (starting at 0,0):
pascal Code:FindColorsTolerance(spotTPA, 15521733, MainScreen.getBounds(), 10, ColorSetting(3, 1));
//.. or with CTS2
FindColorsTolerance(spotTPA, 15521733, MainScreen.getBounds(), 10, ColorSetting(2, 0.2,0.2));
Fixed ^^ Yeah, I have a feeling this one is behind it. That tutorial shows people to do exactly that.
Tho I am somewhat glad that little "mistake" exists in that tutorial, it helps me filter out "copy-pasters" from "scripters" when they apply for SRL-Members :p
As KeepBotting says it's pretty much a placeholder. Tho its function is described in my first post. It's a multiplicand of the tolerance. Meaning if you have 10 tolerance, and the multiplicand is 2 then you actually have 20 tolerance... 10*2. So technically there is no reason to modify it, just leave it as one and play with the tolerance instead. 1 is the default set in Simba.
snip from my first post: