Jump to content
tom99

Bitmaptolerance unknown identifier

Recommended Posts

program New;
var
x,y:integer;
EnterBattle:integer;
begin
EnterBattle := TSCARBitmap.Create('deNrVl1tPG0cUx9twN/au7b34tl5f1sY3jDGXY' +
   'AhgHAhg3KRtIrVS3xKokhgwBkICJIFUidSoqpJIUZs0aR76VEVqpUZV1Yd+hTw' +
   'EaNO+RA3kg6T/3bGX9QW3UZ6KfhqdOXPO/8zMrtmZs+9Q75zLTruDnZTFS9naa' +
   'HsArYK/iK9I0WMnIFhFdQJfgbIsLUokvY8sYrQHUJ12gGABgRAyOt+ScAURoxi' +
   'RWxVBhi4hTDvClCNEOYKUPUTZg2ZnxOKNRjoi1zaypz7+hBPljTJ7ehipj5EOv' +
   'xU+GbY6fUUSRfZtTqafwBL8hIEacBqqBRys4NuHqU4/I4FEAW8fMLuiLn94IZ9' +
   'Npk+aHEFG6rWEktbwSDmRcg/nQ24MzwX7bOC9MBhvNx8YLAvjg4Ocv08FXVmqO' +
   'ql9winsntnVCVkDL7WyIqooJXr4wBBGy4CTK2x4OUiBDlpMD2DapTNMHUzFJoS' +
   'TMqEk35bgXJHUxHtHjqZZV4ctNCxEx4ToaDXGtPB4l8To9u9/vi7+La5d5zxxA' +
   'D9QbTyLhZUrAAayrIEBtBhiS4ETWAIDtnDSoeibS/XvfPUQHvgRgFabxXjiRkd' +
   'oYeUqoKw+gtrVc6786mcvd18hnShoiyrlRt8IeyTJS/GBkbHUxHFnaNAZOybGx' +
   '/8LvK+bsniebe/M5vKNOgo2MNr9ZmeY2DBU+/GPT1avXidOJAIYCAbaRNYTs4e' +
   'HhI6UVv/0mZlDdQ1osWqEkRhrIAGDpACio1YpK6pnhfzFq0ineA/gpUJ11h2Db' +
   'W1LiJ3jb0Z83Nk+OHJscuL4KU8s5e2ekHrTFUyVIjstUtxo825t75yZnmlo0lG' +
   'cCOaXLr3ce/X94x/Iu7G0uqk32xBDujCQwggBhKnvz1xuESBr54+/gNiR9MTHy' +
   'vQP1TegVdPt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aHsQLbmYwCAe4lRBJIlHCxFIGYUwNKvo8+4WE/QFEqa28KA' +
   'uqhM1UhrXHA0BikRybhi4EyGgVQlDq8OEZX+QdkbI/aXA/r2m90A8XUZHIDE4P' +
   'JCapC1ukxhhsW9S97/CeDpNYrtRCBksXpwe0QJcIeEkIECNUSFDMBBJUtQsEl9' +
   'Vn8SQdNWvKmj1ZT/BsQ/eYTw+sztmdLYD2VPMlS+/QohBudp4NbjjZtxNHNLR8' +
   'XTm/ROsw0Pb/Iyrg604rv/vYN4M+Xkx7kpiGhSPK2YSwgZWFL2+fP7cP9g2Bt0' +
   '=');
         wait(5000);
If (FindBitmapTolerance(x,y,EnterBattle,535, 32,1270, 760,50)) then
begin
 movemouse(x,y); 
end;



end.

It works to run If (FindBitmap(x,y,EnterBattle,535, 32,1270, 760))

However thats not what i need. Honestly it seems like scar have just lost a lot of functions since 3.22 why have all functions changed i dont get it?

Edited by Freddy
Link to comment
Share on other sites

I haven't needed to use that function yet before. I think it's: FindBitmapTol ?

I know what you mean about functions changing being annoying. I am having an issue myself with GetKeyCode being changed.. If the changes were documented better somewhere, this wouldn't be an issue. D;

Link to comment
Share on other sites

Nice, glad it worked! Things are poorly documented for the most part, so you might have trouble finding function changes, I sure have had a lot of trouble anyways. :( Your best bet is to check the wiki (poor documentation), or google exactly what you are looking for. Unfortunately there is very little support for scar these days it seems. =/

 

Edit- I found a useful source of function changes/ renamed functions ect. Hope this helps!

http://scar-divi.apponic.com/changelog/3.35.00-142308/

Edited by PuffOnThis
Useful Change logs
Link to comment
Share on other sites

Two solutions to your "problem"

 

1) Look at the code hints in SCAR either by typing in the function or hitting CTRL+Space in the coding window

2) Use NotePad++ to look at OSI Examples via Ctrl+F Find in files

 

FindBitmap functions now use TSCARBitmap instead of an integer variable. This is a good thing believe me. It makes things like this https://github.com/OSI1/OfficialSCARInclude/blob/master/Divi/Pixel/Bitmap.scar much easier, cleaner, and faster.

 

As for your code example, that bitmap looks insanely large. I would suggest a much smaller bitmap, or at least thinner ...or rather no bitmap at all and instead something like TPA sorting.

Edited by Wanted
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...