SRL Archive - S.M.A.R.T. Bugs and Improvements.

2 MAJOR buggs


footballjds

2008-01-26 12:48:17

1). the picture taking won't work for any scar vers. because it just takes a picture of the desktop, and SMART is minimized so it dosn't even take the picture of runescape.
2). I can't not use smart, lol, if im not using smart it won't creat the nickname tpa. itl just log in and sit, then sit, then sit, then sit :)

HELP NEEDED/WANTED, THANKS!

n3ss3s

2008-01-26 12:49:33

if im not using smart it won't creat the nickname tpa.


No, you ain't using LoginPlayer :p

footballjds

2008-01-26 12:55:34

My longbow stringer works with smart. if i take out {.include SMART.scar} it will log my player in runescape then stop.

n3ss3s

2008-01-26 12:56:33

My longbow stringer works with smart. if i take out {.include SMART.scar} it will log my player in runescape then stop.


Did you take out SetTargetDC(SmartGetDC) etc? :rolleyes:

footballjds

2008-01-26 12:58:04

im using markus way of including smart.

Markus

2008-01-26 13:00:10

Remove FindRS from loginplayer please?

footballjds

2008-01-26 13:03:33

should i do, {$if DEFINE SMART}{$else}? or just completely remove it?

Markus

2008-01-26 13:05:18

Completely remove it, or just blank out the FindRS function (top of login.scar)

footballjds

2008-01-26 13:07:20

OK, thanks, i blanked it out, what about picture taking?

FrÕzÑ_§ÕµL

2008-01-26 14:49:21

Or use SCAR 3.12c and then everything is fine for life :p

footballjds

2008-01-26 15:40:12

NO, frozen the picture taking won't work for any scar vers. because it just takes a picture of the desktop, and SMART is minimized so it dosn't even take the picture of runescape. :)

[-jesus-]

2008-01-26 19:03:06

From: footballjds
NO, frozen the picture taking won't work for any scar vers. because it just takes a picture of the desktop, and SMART is minimized so it dosn't even take the picture of runescape. :)


Yeah, I ended up with a lot of pics that were supposed to be from random events but ended up as the different pages I was viewing on IE :p. I don't think there is any way to change it.

bullzeye95

2008-01-26 19:11:44

From: [-jesus-]
Yeah, I ended up with a lot of pics that were supposed to be from random events but ended up as the different pages I was viewing on IE :p. I don't think there is any way to change it.


Unless you construct a picture by using a bunch of getcolors :p

footballjds

2008-01-26 19:21:43

From: [-jesus-]
Yeah, I ended up with a lot of pics that were supposed to be from random events but ended up as the different pages I was viewing on IE :p. I don't think there is any way to change it.


well tell me if im wrong but the view we have of smart is just a reflection, or w/e so there has to be a way, its just what is it? i KNOW there is a way! so that means, someone smart p10x post in here? :)

bullzeye95

2008-01-26 19:29:54

This seems to work…
program New;
var
BMP: Integer;
begin
SmartSetup('at1', false, false);
while not smartready do
wait(100);
wait(10000);
SetTargetDC(SmartGetDC);
BMP:= BitmapFromString(300, 300, '');
SafeCopyCanvas(GetClientCanvas, GetBitmapCanvas(BMP), 0, 0, 300, 300, 0, 0, 300, 300);
DisplayDebugImgWindow(300, 300);
SafeDrawBitmap(BMP, GetDebugCanvas, 0, 0);
end.
I'm too lazy to put that anywhere though :p

footballjds

2008-01-26 19:46:55

yes, well could someone tell me how to edit/OVERRIDEscar's picture takeing function so that when using SMART it does da right thing ? THANKS!'

like it uses takeScreen, how do i edit that? or is it built in? TYVM

bullzeye95

2008-01-26 19:47:50

What procedure/function do you want to override? (the name of it)

footballjds

2008-01-26 20:09:18

if ScreenShots then
TakeScreen('Found Dead');
well^^ that is used whenever a random is found, so editing TakeScreen would be the key, no?

Smartzkid

2008-01-26 20:39:35

procedure SaveScreenshot(s: string);
var
BMP: integer;
begin
BMP:= BitmapFromString(766, 504, '');
SafeCopyCanvas(GetClientCanvas, GetBitmapCanvas(BMP), 1, 1, 766, 504, 1, 1, 766, 504);
SaveBitmap(BMP, s);
FreeBitmap(BMP);
end;

Just put that at the top of the script (or in smart.scar).

bullzeye95

2008-01-26 20:45:39

shouldn't it be
SafeCopyCanvas(GetClientCanvas, GetBitmapCanvas(BMP), 0, 0, 766, 504, 1, 1, 766, 504);
You could have lost 1269 pixels!

footballjds

2008-01-26 21:31:18

ok. il try it, thanks!

THANKS SOOOO MUCH IT WORKED!!!!!!!!! tyvm!

3Garrett3

2008-01-27 17:38:23

From: [-jesus-]
Yeah, I ended up with a lot of pics that were supposed to be from random events but ended up as the different pages I was viewing on IE :p. I don't think there is any way to change it.



Ehh, this is a little off topic, but… HAHA! IM IN THIS GUYS SIG AND HIS NAME IS JESUS!!!

Oh ya, I was having problems too, not about this, but I figured I would try and make it seem semi on topic… :p

Smartzkid

2008-01-27 19:50:40

From: bullzeye95
shouldn't it be
SafeCopyCanvas(GetClientCanvas, GetBitmapCanvas(BMP), 0, 0, 766, 504, 1, 1, 766, 504);
You could have lost 1269 pixels!


No diff afaik.

You could test if you want :p

From the tests I remember, it doesn't make a difference.