SRL Archive - Help and Support

Out of system resources?


Heavenzeyez1

2009-04-29 17:03:54








So, I am worried. I can't get 20+h proggies and that means I can't test my script. :/
Error comes with those lines:
Made to trees, Chopping logs..

Walking to Varrock east bank.

Ladder color = 734819 at 575,68
35

Varrock RoadColor = 7962499
Varrock RoadColor = 7962499
Error with RadialRoadWalk
Should be fixed though, so lets debug.
xs = 586 ys = 118 xe = 626 ye = 158
and client area is 0, 0, 1280, 800
[Runtime Error] : Exception: The parameter is incorrect.
in line 329 in script C:\Program Files\SCAR 3.20\includes\SRL/SRL/Core/Mapwalk.scar

Ladder color = 471903 at 579,60
35

Varrock RoadColor = 7567739
Error with RadialRoadWalk
Should be fixed though, so lets debug.
xs = 607 ys = 65 xe = 647 ye = 105
and client area is 0, 0, 1280, 800
[Runtime Error] : Exception: The parameter is incorrect.
in line 329 in script C:\Program Files\SCAR 3.20\includes\SRL/SRL/Core/Mapwalk.scar
And the line is:

SaveBitmap(bmp, 'RoadWalkBMP');
If someone could help me, I would really love that.
My PC has 4gb RAM and and 3.2GHZ, so it probably didn't run out of memory or idk…
Thanks in advance!
~Eerik~

Naike

2009-04-29 20:08:06

I had this some time back aswell.
I havn't been able to fix it as i don't run 20h proggies anymore ^^

My error came from ChooseOption's FindColorsTolerance search tho..

MylesMadness

2009-04-29 20:55:57

Torrent enough?

Heavenzeyez1

2009-04-30 00:29:01

From: N1ke!
I had this some time back aswell.
I havn't been able to fix it as i don't run 20h proggies anymore ^^

My error came from ChooseOption's FindColorsTolerance search tho..

Mm…
Okay..
:/
From: Mylesmadness
Torrent enough?


You are not helping much. :D:D
~Eerik~

Cazax

2009-04-30 01:20:50

SCAR 3.20 has such type of problems with canvas drawing and other things, so use 3.15b.

ShowerThoughts

2009-04-30 01:32:49

100 mbits 0.o /8 = nice amount of download speed :)

Heavenzeyez1

2009-04-30 07:47:53

From: Cazax
SCAR 3.20 has such type of problems with canvas drawing and other things, so use 3.15b.

Thank you!
From: Hermpie
100 mbits 0.o /8 = nice amount of download speed :)

You are not helping, please stay on topic. :) (100mbits is max, not mine.)
~Eerik~

Freddy1990

2009-05-03 13:30:42

From: Cazax
SCAR 3.20 has such type of problems with canvas drawing and other things, so use 3.15b.


Mind reporting these problems if you find them?

Heavenzeyez1

2009-05-04 18:43:13

Okay, tried SCAR 3.15b, boom, same problem.
First it says: Error reporting, when I close it, it says: Out of system resources. :/

And I managed to find out in which function it always happens:
function WalkBackToVarBank: Boolean;
var
p, r, y, x: Integer;
begin
if not LoggedIn then Exit;
URun;
Players[CurrentPlayer].Rand := 'Walking back to VEB bank.';
if (not FindMmObj(p, r, FindLadderColor, 0, 200)) then
begin
RadialRoadWalk(FindVarrockRoadColor, 250, 290, 72, 0, 0);
Writeln('');
Result := True;
Exit;
end;
if (not RadialRoadWalk(FindVarrockRoadColor, 160, 90, 60, 0, 0)) then
begin
Writeln('');
if FindColor(p, r, FindLadderColor, 581, 22, MMX2, MMY2) then
begin
Writeln('');
MC(p + 70, r + 55);
end;
end
else
begin
Writeln('');
end;
if (not RadialRoadWalk(FindVarrockRoadColor, 200, 250, 72, 0, 0)) then
begin
RadialRoadWalk(FindVarrockRoadColor, 200, 160, 60, 0, 0);
writeln('');
end;
Writeln('');
if RadialRoadWalk(FindVarrockRoadColor, 280, 240, 72, 0, 0) then
begin
writeln('');
end;
if (DTMRotated(VEBBankers, x, y, 546, 86, MMX2, MMY2)) then
begin
MC(x, y);
Result := True;
Writeln('We are at the bank now using DTM.');
Writeln('');
Exit;
end
else
begin
if FindSymbol(x, y, 'bank') then
begin
MC(x, y + 10);
Writeln('Symboled bank.');
Writeln('');
Result := True;
Exit;
end
else
begin
if RadialRoadWalk(FindVarrockRoadColor, 240, 300, 72, 0, 0) then
begin
if (DTMRotated(VEBBankers, x, y, 546, 86, MMX2, MMY2)) then
begin
MC(x, y);
Result := True;
Writeln('We are at the bank now using DTM.');
Writeln('');
Exit;
end
else
begin
PlFalse('VEB BANK WALK FAILED', 'VEB BANK WALK FAILED.', False);
Result := False;
Exit;
end;
end;
end;
end;
end;
Thanks, :S
~Eerik~

Heavenzeyez1

2009-05-08 21:47:17

Still happens every day with 3.15b. :/

Varrock RoadColor = 7633277
Error with RadialRoadWalk
Should be fixed though, so lets debug.
xs = 641 ys = 107 xe = 681 ye = 147
and client area is 0, 0, 1280, 800

I am really stuck with it. :/
~Eerik~

tarajunky

2009-05-08 22:18:31

You should be able to test whether it's a memory issue by reducing the number of times you call FindVarrockRoadColor.

Instead of

RadialRoadWalk(FindVarrockRoadColor, 250, 290, 72, 0, 0);

you could do it like this…

if not(FindColor(x,y,RoadColor,MMX1,MMY1,MMX2,MMY2)) then RoadColor:=FindVarrockRoadColor;
RadialRoadWalk(RoadColor, 250, 290, 72, 0, 0);

That way if the road color hasn't changed, it uses the old color instead of running FindVarrockRoadColor. It should function exactly the same, but if it's a memory issue that might increase your run time.

Heavenzeyez1

2009-05-08 22:21:00

From: tarajunky
You should be able to test whether it's a memory issue by reducing the number of times you call FindVarrockRoadColor.

Instead of

RadialRoadWalk(FindVarrockRoadColor, 250, 290, 72, 0, 0);

you could do it like this…

if not(FindColor(x,y,RoadColor,MMX1,MMY1,MMX2,MMY2)) then RoadColor:=FindVarrockRoadColor;
RadialRoadWalk(RoadColor, 250, 290, 72, 0, 0);

That way if the road color hasn't changed, it uses the old color instead of running FindVarrockRoadColor. It should function exactly the same, but if it's a memory issue that might increase your run time.


Thanks, I will try that! <3
~Eerik~