PDA

View Full Version : Scar++ Works or Not?



Brandon
03-21-2011, 07:29 PM
I love programming in c++ As its the first language I ever learned.. I couldnt help but notice the sticky at the top of this forum about Scar++ and had to try it out.

I wanna know if it works or Not because I tried it, it compiles but I couldnt help but notice the bitmaptostring or stringfrombitmap and the findbitmap functions arent complete so it never finds my bitmaps really.

Does it work for anyone else or is it not being worked on anymore??

And an extra question: How does scar and simba actually find bitmaps.. thing is bitmaps are just made up of a bunch of arrays.. as far as I know you'd have to compare each array in a bitmap 1 by 1 which can take forever.. and how exactly did they add a tolerance to this bitmap finding and comparing method :S

i luffs yeww
03-21-2011, 08:21 PM
I entirely forgot about SCAR++, but I do know it's a little old.. Dunno if it'd work with new RS.

But, if libmml ever gets done, someone could make a cppmml and write simba scripts in c++, just as we're doing with pymml (or it's planned at least).

Feroc1ty
03-21-2011, 09:56 PM
that sounds dope, someone should get on that

Wizzup?
03-21-2011, 10:00 PM
Actually, boberman knew about Simba from the very start. He helped a bit with some of the code. (Particularly his Linux code helped)

But scar++ was never really finished. I suggest you learn some Pascal and continue porting the Simba library to a C-like interface (something I have been doing), which you can then use in a C++ environment.

Bitmaps question. I can't tell you how SCAR does it as it is closed source, but I can show you how Simba does it. https://github.com/MerlijnWajer/Simba/blob/master/Units/MMLCore/finder.pas#L1505

It's basically just comparing pixels (lists,arrays,grids,whatever you want to call it). And they all have to match the tolerance. ( Tolerances: http://docs.wizzup.org/simba/scriptref/colourfinding.html#colour-tolerance )