What are the pro's and con's of each?
After reading many tutorials here, it seems that the consensus is:
Bitmaps: locating NPC's
DTM:s Items
and Color for objects on the mainscreen.
Can anyone provide a better answer?
thank you
What are the pro's and con's of each?
After reading many tutorials here, it seems that the consensus is:
Bitmaps: locating NPC's
DTM:s Items
and Color for objects on the mainscreen.
Can anyone provide a better answer?
thank you
Bitmaps and DTMs are good for 'flat' things, and are usually very specific: inventory items, interface icons, etc. They won't work so well with 3D objects in the mainscreen.
Color (TPAs, ATPAs, clustering, filtering, etc.) can be used for anything, including mainscreen objects. They're usually more general, e.g. finding all the chickens on the screen.
I can honestly say I have never used a bitmap before; not even sure how to lol.
Like Citrus said, DTM is great for finding 2D items on screen such as inventory items, tab icons, menu interfaces etc.
ATPA/TPA's are great for finding 3D objects and 2D items. For example, picking a nice color for the bank teller that is unique, finding all of those colors on the screen, then filtering them out based on count, distance apart etc.
I also use it to find 2D interfaces such as bank and pin screen on resizable to get the bounds for my tbox, as the co-ordinates of said interface change depending on screen size.
Bitmaps in Simba work almost exactly like DTMs do, as far as creating, freeing, and finding them is concerned. For example BitmapFromString, FreeBitmap and FindBitmap
The main difference is a DTM consists of a set of points while a bitmap can only be a static image. Typically bitmaps must remain identical to what you are finding (moreso than a DTM at least) however you can apply a tolerance.
Also plug here for a great portion of SRL called slacktree which provides implementations of routines similar to those found in the old (closed-source) AND_TPA plugin. This helps a lot with object finding using colors and TPAs/ATPAs because it allows you to make several broad searches, then narrow down effectively.
Last edited by KeepBotting; 01-15-2019 at 02:06 AM.
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
There are currently 1 users browsing this thread. (0 members and 1 guests)