SRL Archive - Help

How to freeDTM / Bitmap in the following bit of code?


I Relix I

2012-04-14 19:48:52

procedure bankWalk;
Var
bankPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['7_7']);
bankPath := [Point(3129, 2856), Point(3062, 2883), Point(3047, 2873)];
SPS_WalkPath(bankPath);
freeDtm(RUNESCAPE_SURFACE);
FreeBitmap(RUNESCAPE_SURFACE);
end;

Really confused on what goes inside the brackets or how to actually do it? I looked over quite a few threads and I think I am more confused now.. :duh:

Abu

2012-04-14 19:51:41

I don't know much about SPS but I'm sure it's not a dtm…

I Relix I

2012-04-14 19:55:03

From: abu_jwka
I don't know much about SPS but I'm sure it's not a dtm…


what do you use to walk? or suggest for me?

I guess it isn't entirely noob friendly. I get these errors that I should've mentioned,

The following DTMs were not freed: [SRL - Lamp bitmap]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Flag bitmap]
[Hint] C:\Simba\Includes\SRL/SRL/core/mapwalk.simba(1353:3): Variable 'BOX' never used at line 1352

Abu

2012-04-14 20:03:14

From: I Relix I
what do you use to walk? or suggest for me?

I guess it isn't entirely noob friendly. I get these errors that I should've mentioned,



ObjectDTMs

Gucci

2012-04-14 21:07:06

SPS isn't a bitmap or dtm so both of those functions are unnecessary

I Relix I

2012-04-14 21:23:49

From: abu_jwka
ObjectDTMs


Thanks I'll check it out! :spot: :stirthepot:

From: Gucci
SPS isn't a bitmap or dtm so both of those functions are unnecessary


So the error is simply just being set-off without any repercussions? Ignore it if I use it in the future? (Prob going to switch to Abu's way of moving tho just curious)

I would know if I made DTMs how to free them but in this case it really made no sense to me why I was getting those errors.

Gucci

2012-04-14 21:29:21

Yes you overall don't need to free SPS, try out both paths there poth pretty identical and easy to create although SPS is quicker to make