SRL Archive - OSR Help

speed up sps walking?


PsychoticPk

2013-06-04 19:55:59

Hey,
I'm just wondering if its possible at all to speed up the time it takes to walk from location to location via Sps walking?
If so, how would I go about doing it in the following script:
Program IronWalkerTest;
{$i srl-osr/srl.simba}
{$i sps/sps-osr.simba}

Var
myPath:TPointArray;

begin
SetupSRL

SPS_Setup (RUNESCAPE_SURFACE, ['5_10','4_10','6_10','5_9']);
SPS_AnyAngle := True; //I want to use this map with a different angle, so I set it true
SPS_Debug := True;
myPath := [Point(2261, 4323), Point(2255, 4323), Point(2251, 4320),
Point(2249, 4315), Point(2251, 4310), Point(2255, 4306), Point(2265, 4304),
Point(2269, 4301), Point(2275, 4297), Point(2279, 4293), Point(2285, 4287),
Point(2288, 4280), Point(2293, 4273), Point(2296, 4267), Point(2296, 4263),
Point(2300, 4253), Point(2302, 4245), Point(2303, 4244), Point(2305, 4236),
Point(2306, 4235), Point(2311, 4228), Point(2311, 4225), Point(2313, 4220),
Point(2316, 4215), Point(2319, 4207), Point(2320, 4203), Point(2323, 4196),
Point(2323, 4195), Point(2325, 4182), Point(2326, 4180), Point(2325, 4168),
Point(2326, 4163), Point(2327, 4159), Point(2328, 4157), Point(2329, 4155),
Point(2331, 4150), Point(2331, 4149), Point(2334, 4145), Point(2334, 4144)]
SPS_Walkpath(myPath);
MakeCompass('N'); //this will work because any angle is set to true
SetAngle(SRL_Angle_high); //high angle
end.

The path creater I used for this is located here:
http://villavu.com/forum/showthread.php?t=80134

Keep in mind I'm fairly new, and just trying to learn/get sps walking down before I move into more advanced stuff.
Thanks in Advance!

rj

2013-06-04 19:59:27

What do you mean? Sps walks as fast as you do… So if its not walking fastening for you then choose a better route. If your getting a delay before it walks the path then try using a custom map.

Custom map tutorial: http://villavu.com/forum/showthread.php?t=84360

PsychoticPk

2013-06-04 20:45:26

From: Officer Barbrady
What do you mean? Sps walks as fast as you do… So if its not walking fastening for you then choose a better route. If your getting a delay before it walks the path then try using a custom map.

Custom map tutorial: http://villavu.com/forum/showthread.php?t=84360


Lol sorry, I guess I forgot to add more detail, Walking from Yanille bank to the iron mining spot, although multiple points are listed, it only uses three of them..
this is the debug box, as you can see, its an 8 second delay rather than a smooth walk to the iron location..
ew window: 1311252
[Hint] C:\Simba\Includes\sps/sps-osr.simba(480:3): Variable 'Z' never used at line 479
[Hint] C:\Simba\Includes\sps/sps-osr.simba(482:3): Variable 'DEGREEFIX' never used at line 481
[Hint] C:\Simba\Includes\sps/sps-osr.simba(483:3): Variable 'FINDPOINT' never used at line 482
Compiled successfully in 1825 ms.
SRL Compiled in 15 msec
SPS_GetMyPos: Finished in 7176 ms. Result = (2269, 4320)
SPS_GetMyPos: Finished in 7691 ms. Result = (2251, 4320)
SPS_GetMyPos: Finished in 8112 ms. Result = (2332, 4218)
SPS_GetMyPos: Finished in 7597 ms. Result = (2335, 4146)
Successfully executed.

Flight

2013-06-04 20:50:50

The speed at which SPS determines your location is partly based on how big the SPS map is that you've loaded up. Since you've loaded four 500x500's it's large area to be searched. I suggest adding these maps together, in your own custom SPS map, and cropping only the path you know you will be walking on, with about 100 or so pixels on either side of it. This will speed up the initial tile gathering.

For speeding up the actual walking that SPS does just create a custom WalkPath with higher "FFlags".

Enslaved

2013-06-05 11:25:04

try allocating more resources to Simba, that should make it run faster, outside of that I would say the same build a custom sps map ( you can use the files that are already there, crop and merge for a nice result. when doing this, it might also be an idea to color in the area that you dont walk/get close to in Black or some other uncommon vivid color, it should help speedup the finding process

Kevin

2013-06-05 11:58:33

Flight recommends exactly what I wold suggest as well. Custom maps that only cover the area you will actually be walking (with some extra 50-100 pixel leeway on every side) are far faster than the main map is.