View Full Version : How to freeDTM / Bitmap in the following bit of code?
I Relix I
04-14-2012, 11:48 PM
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:
I don't know much about SPS but I'm sure it's not a dtm...
I Relix I
04-14-2012, 11:55 PM
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
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,
ObjectDTM (http://villavu.com/forum/showthread.php?t=78905)s
Gucci
04-15-2012, 01:07 AM
SPS isn't a bitmap or dtm so both of those functions are unnecessary
I Relix I
04-15-2012, 01:23 AM
ObjectDTM (http://villavu.com/forum/showthread.php?t=78905)s
Thanks I'll check it out! :spot: :stirthepot:
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
04-15-2012, 01:29 AM
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
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.