SRL Archive - S.M.A.R.T. Questions and Answers.

question


loopster

2008-02-06 16:53:42

how do i fix

[Runtime Error] : Exception: Access violation at address 020A10AB in module 'Embedded SMART.dll'. Read of address 000006DC in line 47 in script C:\Program Files\SCAR 3.14\includes\SRL/SRL/Misc/smart.scar

i have searched everywhere and looked through the tutorials but nothing came out of them to help me

gerauchert

2008-02-06 17:22:55

is the smart.dll in your plugins folder?

loopster

2008-02-06 17:25:07

i have embedded smart.dll

gerauchert

2008-02-06 17:45:25

From: feirydoom
i have embedded smart.dll


hmm, what procedure is in the line 47 of that error in your smart.scar? and could you post the procedure here as well in scar tags? My smart.scar is not quite the same cuz i edited it.

loopster

2008-02-06 17:52:37

line 47 result:= SmartGetColor(x, y);

heres the whole thing i get when i get the error

{
smart.scar overwrites the SCAR procedures.
You should always include this before any other include, even SRL.scar
}

procedure MoveMouse(x, y: Integer);
begin
SmartMoveMouse(x, y);
end;

procedure HoldMouse(x, y: Integer; left: Boolean);
begin
SmartHoldMouse(x, y, left);
end;

procedure ReleaseMouse(x, y: Integer; left: Boolean);
begin
SmartReleaseMouse(x, y, left);
end;

procedure KeyUp(key: Byte);
begin
If Key = 13 Then
Key := 10;
SmartReleaseKey(key);
end;

procedure KeyDown(key: Byte);
begin
If Key = 13 Then
Key := 10;
SmartHoldKey(key);
end;

procedure SendKeys(S: String);
begin
SmartSendKeys(S);
end;

procedure GetMousePos(var x, y: Integer);
begin
SmartGetMousePos(x, y);
end;

function GetColor(x, y: Integer): Integer;
begin
result:= SmartGetColor(x, y);
end;

procedure SmartSetTarget;
var
Smart_Bitmap: Integer;
begin
Smart_Bitmap:= BitmapFromString(765,503,'');
GetBitmapCanvas(Smart_Bitmap).Handle:= SmartGetDC;
SetTargetBitmap(Smart_Bitmap);
FreeBitmap(Smart_Bitmap);
end;

function FindWindow(Title: String): Boolean;
begin
result:= true;
end;

procedure ActivateClient;
begin
end;

function FindWindowBySize(Width, Height: Integer): Boolean;
begin
result:= true;
end;

procedure SmartSetupEx(worldnumber: integer; hiDetail, signed: boolean);
var
prefix: string;
begin
prefix := ReadINI('World' + IntToStr(worldnumber), 'Prefix', AppPath + 'includes\SRL\SCSS\worlds.ini');
if(prefix = '')then
begin
writeln('Invalid world number or corrupted world list. Please review your settings');
TerminateScript;
end;
SmartSetup(prefix, hiDetail, signed);
end;

gerauchert

2008-02-06 17:57:48

for future references put all scar code in scar tags before posting it…

like this [.SCAR] the coding [./SCAR] without the periods :D

hmm your error is strange to me, what version of SCAR are you using? Also what is the script supposed to do right before it gives you the error?

loopster

2008-02-06 18:00:55

ok sorry i am using 3.14 with rev 13
i am also using heavenz powerchopper

gerauchert

2008-02-06 18:15:55

have you been able to get SMART working before this error?

loopster

2008-02-06 18:16:56

that i have not

gerauchert

2008-02-06 18:26:32

I say that you read up on some tutorials for setting up SMART, and reinstall your SRL by going Tools -> Options -> SRL Download -> Checkout

Sry this took so long for me to tell you, but I thought you had SMART working before hand for some reason… :redface:

loopster

2008-02-06 18:29:20

i have read the tutorials followed one then ended up with another error
Line 57: [Error] (8990:24): Type mismatch in script C:\Program Files\SCAR 3.14\includes\SRL/SRL/Core/AntiRandoms/EvilBob.scar

ok fixed that one now this one shows up

Line 230: [Error] (13254:14): Type mismatch in script C:\Program Files\SCAR 3.14\Good scripts\woodcut2.scar

ine 230 SortATPAFrom(ATPA, MSCPoint);

Markus

2008-02-07 00:55:58

The problem you have now is a script problem, not a SMART problem.

Heavenzeyez1

2008-02-07 05:41:22

From: feirydoom
ok sorry i am using 3.14 with rev 13
i am also using heavenz powerchopper


Yes, my script had that problem, Works great now. :)
Eerik.