vwxz
2014-02-02 01:14:10
EDIT: Resolved now. It appears I had some outdated files that didn't work well together.
I am currently trying to use SPS for the first time. I am running into an issue. I hope someone with more experience in this area can please help me out.
What happens is that Sps.WalkPath will try to walk one or two steps (sometimes in strange places) and then just give up.
When I manually walk the path, Sps.DebugPlayerPos is completely accurate.
Below are my map and my test script. I know the stitching on the map is a bit rough but I don't think that's the cause of the issue because the issue occurs before I walk to the stitching seam.
Please help me debug this. Let me know what additional info would be useful. Thanks!
EDIT: Looks like WaitFlag is failing. Any idea why?

I am currently trying to use SPS for the first time. I am running into an issue. I hope someone with more experience in this area can please help me out.
What happens is that Sps.WalkPath will try to walk one or two steps (sometimes in strange places) and then just give up.
When I manually walk the path, Sps.DebugPlayerPos is completely accurate.
Below are my map and my test script. I know the stitching on the map is a bit rough but I don't think that's the cause of the issue because the issue occurs before I walk to the stitching seam.
Please help me debug this. Let me know what additional info would be useful. Thanks!
EDIT: Looks like WaitFlag is failing. Any idea why?
---- Setup SRL in 296ms.
-- setupSRL(): True
-- sps.init()
---- Path exists (C:\Simba\Includes\SPS\img\runescape_surface\0_0MOONCLAN.png)
---- Setup area "0_0MOONCLAN" in 4294967359ms
-- sps.init()
-- sps.getPlayerPos(): result = {X = 134, Y = 186}, took 4294967608 ms
-- TRSMinimap.waitFlag()
---- Waiting until flag distance equals 11...
-- TRSMinimap.waitFlag(): False
---- Waiting while the player is moving...
-- sps.walkPath(): result = False
-- Freeing the minimap mask
-- Succesfully freed SMART[11468]
Successfully executed.

program AstralCrafter;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}
{$I sps/lib/sps-rs3.simba}
{
}
var
PathBankToAltar: TPointArray;
procedure LoadResources
begin
PathBankToAltar := [Point(140, 203), Point(155, 208), Point(172, 201), Point(188, 211), Point(190, 231), Point(186, 249), Point(185, 267), Point(186, 283), Point(189, 301), Point(195, 317), Point(205, 330), Point(214, 345), Point(227, 360), Point(241, 367), Point(255, 376), Point(267, 379), Point(271, 390), Point(272, 419), Point(282, 425), Point(298, 427), Point(317, 426), Point(335, 419), Point(351, 413), Point(360, 411), Point(370, 407)];
end;
procedure SetUp
begin
end;
begin
SetUpSRL;
LoadResources;
Sps.Setup('0_0MOONCLAN', RUNESCAPE_SURFACE);
Sps.WalkPath(PathBankToAltar);
Sps.DebugPlayerPos;
end.