SRL Archive - Help and Support

WoodCut Help


stol3n

2007-04-11 22:09:08

Hello

I have made a couple of WC script,

But, im having trouble with whats the Best Way to

"Find The Trees"

I Have Tried,

FindObj(x, y, 'uptext' , color1, tol)

FindObjOak(var x, y: Integer; color1, color2, color3, tolerance: Integer): Boolean;

and i see people are using DTM/BMP's



All the methods i have tried once the oak are chopped it just rapidly moves around searching through all the trees.. (not Suss) = S

DTM/BMP's Generally slow my PC.


Please help,

- Stol3n -

JAD

2007-04-11 23:23:57

I maybe old fashioned, but I just used if(FindColorTolerance(x,y…..etc))then :p It works for me, I just use 3 colors for the tree so if(FindColorTolerance(x,y,color,…etc))or
(FindColorTolerance(x,y,color2,…etc))or
(FindColorTolerance(x,y,color3,…etc))then
Mouse(x,y,3,3,true);

like that. Of course, I make it a little more complicated then that :) If it moves the mouse to the location then, and the up text isn't what you want, I make it check a different section of the screen for it so it doesn't keep moving its mouse there. then another box if it still doesn't find it…etc. A lot of people would call that noobish, but if you use it right, it gets the job done just as good as anything else.

nielsie95

2007-04-12 09:07:38

I get all the Tree Colors ( there is one regular color that's in every tree ), then search for other 'TreeColors' in an area of -4 to +4. If all the specified colors match, it will move the mouse and look for uptext.

And ofcourse there's HSL ;)

JAD

2007-04-12 09:58:10

From: nielsie95
And ofcourse there's HSL ;)


This may sound a little noobish, but whats HSL? :p

stol3n

2007-04-12 10:19:52

Please explain how to obtain the basic color.

i have tried to find color which arnt in other trees but to only find myself unseccesful

Special Ed

2007-04-12 17:04:57

Hey me and Junior are working on a revolutionary way to solve this problem, its not done yet but basically what it does is it finds something on the minimap and can tel where it is on the mainscreen. As for right now I think your best bet it with what JAD said just using FindColorTolerance with IsTextUp…