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));
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
GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols
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
Last edited by slacky; 01-23-2016 at 05:16 PM.
!No priv. messages please
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));
Last edited by slacky; 01-23-2016 at 09:24 PM.
!No priv. messages please
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![]()
Last edited by slacky; 01-23-2016 at 09:35 PM.
!No priv. messages please
GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols
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:
Last edited by slacky; 01-24-2016 at 09:01 PM.
!No priv. messages please
There are currently 1 users browsing this thread. (0 members and 1 guests)