SRL Archive - OSR Help

Arg! Error?


Green Bay Packers

2012-05-23 23:08:38

The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 3]

I get that every time my script's about to walk!
I got it after I borrowed this code from Tehq's Vial Filler:
Procedure WillowTreesToShop; //Borrowed from Tehq's Vial Filler
var
Failsafe, x, y: Integer;
WT2S: TPointArray;
InShop: TBox;
begin
WT2S:= [Point(3718, 3874), Point(3687, 3848), Point(3675, 3810), Point(3637, 3802)];
InShop := PointToBox(Point(3631, 3793), Point(3629, 3810));
Failsafe := 0;
repeat
ClearDebug;
WriteLn('Walking to the general store…');
SPS_WalkPath(WT2S);
Inc(Failsafe);
until (PointInBox(SPS_GetMyPos, InShop)) or (Failsafe = 4);
if (Failsafe = 4) then
begin
Wait(1300 + Random(400));
if FindSymbolIn(x, y, 'store', MMX1, MMY1, MMX2, MMY2) then
Mouse(x, y, 3, 3, mouse_left);
end;
end;

x[Warrior]x3500

2012-05-23 23:09:53

those arent errors. it simply means for some reason, dtms within the srl include were not freed. did something crash?

Green Bay Packers

2012-05-23 23:13:10

From: x[Warrior]x3500
those arent errors. it simply means for some reason, dtms within the srl include were not freed. did something crash?


Yeah, every time, after my player gets a full inventory, the script stops as soon as it tries to move on to that procedure, and it gives that message. Oh yeah! It also highlights this line in sps: FoundMatches := SPS_FindMapInMap(P.x, P.y, SPS_AreaMaps, SmallMap, SPS_Tolerance);

Abu

2012-05-24 12:42:40

Post that on his script thread not here.