SRL Archive - OSR Help

It doesn't find Port Sarim map


Mor

2012-04-02 05:44:10

I made sps map walking from draynor bank to port sarim, and when it get to
the port it stop and it writes in the command line:

"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]"

How can I fix it that it will walk into the brown space in the port?

here is ther script:

program New;
{$DEFINE SMART}
{$i srl/srl.simba}
{$i sps/sps.simba}

{$IFDEF SMART}
{$i srl/srl/misc/paintsmart.simba}
{$ENDIF}

Procedure DeclarePlayers;
begin
HowManyPlayers:=1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:=0;


Players[0].Name:='';
Players[0].Pass:='';
Players[0].Active:=True;
end;




Procedure WalkToPort;//walking from bank to portsarim
Var myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE, ['10_9','10_8','9_9']);
myPath := [Point(4206, 3679), Point(4207, 3673), Point(4206, 3667), Point(4197, 3666), Point(4154, 3664), Point(4131, 3675), Point(4119, 3655), Point(4114, 3632), Point(4116, 3608), Point(4121, 3578), Point(4122, 3562), Point(4112, 3555), Point(4084, 3562), Point(4067, 3575), Point(4047, 3587), Point(4034, 3593), Point(4002, 3610), Point(3995, 3628), Point(3990, 3642), Point(3982, 3656), Point(3974, 3667), Point(3966, 3677), Point(3961, 3685), Point(3947, 3695), Point(3948, 3712), Point(3947, 3734), Point(3945, 3753), Point(3948, 3774), Point(3947, 3786)];
SPS_WalkPath(myPath);
end;










begin
{$IFDEF SMART}
Smart_Server := 0;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
{$ENDIF}
SetUpSRL();
ActivateClient();
DeclarePlayers();
LoginPlayer();
WalkToPort;
end.

John

2012-04-02 07:28:26

Is your map exactly 500x500?

Mor

2012-04-02 08:22:24

From: Evlin
Is your map exactly 500x500?


I use the RUNESCAPE_SURFACE map
I open it with Wolygon's Path Creator

Olly

2012-04-02 08:23:46

I'm guessing he's using wolygons path maker and that's just the world map picture, which in some places is extremely inaccurate to what it is on the minimap.

Mor

2012-04-02 10:47:30

no one knows what is the problem?

Er1k

2012-04-03 09:42:38

Instead of using the path maker, why dont you open the RS surface map in MSPaint and get the points there?

I remember the points are off by some 10 pixels in both x and y coords in the path maker when I first used them.

Justin

2012-04-04 10:22:56

According to your first post…


and when it get to the port it stop

To me, that shows that it walked to the location. And because you have nothing else for the script to execute after it walked to the location that is why it is ending.

As for the errors

"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]"

That is normal.

Mor

2012-04-04 10:38:52

From: [J]ustin
According to your first post…


and when it get to the port it stop

To me, that shows that it walked to the location. And because you have nothing else for the script to execute after it walked to the location that is why it is ending.

As for the errors

"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]"

That is normal.


I meant that it doesnt go exactly to the brown area in the port
and Er1k, How can I get the points in MSPaint?

Mor

2012-04-04 11:34:38

I found the problem
there was a missing piece of the map
the path creator gave me that:
"SPS_Setup(RUNESCAPE_SURFACE,['10_9','10_8','9_9']);"
but the correct one is this:
"SPS_Setup(RUNESCAPE_SURFACE['10_9','10_8','9_9','10_8']);"

thank you all for helping