Hello VillaVu, releasing an sps version for OldSchool RuneScape (2007Scape)
THIS IS USED WITH THE OFFICIAL SRL-OSR INCLUDE WHICH CAN BE FOUND HERE: https://github.com/SRL/SRL-OSR
Tutorial for setting up SRL-OSR: http://villavu.com/forum/showthread.php?t=100543
You can get the fonts here: Fonts.zip (Extract into your Fonts folder)
CHANGE LOG
Added DegreeFix, basically loops through adding 0, 5, -5, 10, -10, 15, and -15 to the current degrees until it finds a point. (Also tries previous degreefix in the array first) - 3/9/2013Downloads:Changed DegreeFix from WalkPath proceedure to the SPS_GetMyPos, changed tolerances + match percentages enough to hopefully prevent false positives on most locations. - 3/27/2013
sps-osr.simba
runescape_surface07.zip
To use this, download the attachments and place sps-osr.simba in your Includes/SPS/ folder, and extract the runescape_surface07 zip file to your Includes/SPS/img/ folder.
Then test it the exact same way you would using regular SRL/SPS.
I recommend using SPS Path Generator to make paths to test! (Please make your points closer together than normal when making paths!)
Then insert path data into the script below and test it out (I recommend using SPS_AnyAngle at the moment, makes for more accurate read most of the time due to imperfect north):
Simba Code:program TestSPS;
{$DEFINE SMART}
{$I SRL-OSR/SRL.Simba}
{$I SPS/sps-osr.simba}
var
MyLoc: TPoint;
Procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
End;
begin
SetupSRL;
DeclarePlayers;
LoginPlayer;
wait(2000);
MakeCompass(5);
SPS_AnyAngle := True;
SPS_Setup(runescape_surface, []);
MyLoc:=sps_getMyPos;
writeln('SPS returns '+inttostr(myloc.x)+','+inttostr(myloc.y));
SPS_WalkPath([]);
end.
As of 3/27/2013 DegreeFix has been updated to use SPS_GetMyPos rather than use only with SPS_WalkPath!
What this means for you, the user:
Depending on where you are setting up your walking to work, you may want to change the match percentages + tolerances a bit. I've found that .4 (for match percentage) is generally good for cities and things, while .5 or .6 would be best for areas that have a lot of grass and empty spaces. You can change the match percentage with the SPS_MatchesPercent global variable. The default is .4 or 40%, but the higher you can get without breaking your walking, the better. This is because we are trying to avoid false positives which would lead to an incorrect coordinate.
Note that the percentages/tolerance can be a bit touchy depending on your walking location, but 07 sps isn't exactly easy to do.
If you would like to debug the DegreeFix offset or current matchespercent, uncomment lines 374 and 407 in sps-osr.simba.
EDIT: Unable to attach the images for runescape_surface07 because the archive is too large (12MB)