Can't help you if you don't tell us whats not workingOriginally Posted by voltage00
Can't help you if you don't tell us whats not workingOriginally Posted by voltage00
Can someone help me through team viewer or logmein please?
I'm not going to waste my team getting teamviewer just for you because you won't waste your time telling me your error.
SPS P06 BETA Added!
Requesting tip's from @Coh3n to help me understand the math better so it's less of a "sps edit hack" and more of a sps for a PS
custom maps only obviously, download the edited SPS file and put it in the correct place (explained in OP), add my map image to SPS's "runescape_other", name it "TestrsSPS",
stand inside the east varrock bank and run a test
Simba Code:Program testP06;
{$I SRL/SRL.Simba}
{$I P06Include/P06Include.Simba}
{$I Sps/P06sps.Simba}
var
//IntCounter: Integer;
MyPath,MyPathBack: TPointArray;
//LOGIN INFO STUFF
Procedure P06_DeclarePlayer;
Begin
P06_PlayerName:='username';
P06_PlayerPass:='password';
End;
Procedure PollPos;
Var Done: Boolean;
Begin
Repeat
Begin
Writeln(toStr(SPS_GetMyPos));
Wait(1000+Random(50));
End;
Until Done;
End;
Begin
P06_DeclarePlayer;
SetupP06Include;
SPS_Setup(RUNESCAPE_OTHER, ['TestrsSPS']);
//SPS_Debug:=True;
ActivateClient;
Wait(1000);
If (Not P06_LoggedIn) Then
P06_LogInPlayer;
MyPath:=[Point(121, 87), Point(120, 80), Point(120, 73), Point(122, 66), Point(124, 59), Point(131, 59), Point(138, 60), Point(145, 61), Point(152, 61), Point(158, 62), Point(165, 63)]
MyPathBack:=[Point(179, 62), Point(172, 62), Point(162, 63), Point(152, 63), Point(142, 63), Point(135, 63), Point(128, 62), Point(120, 61), Point(119, 74), Point(120, 84), Point(121, 91), Point(121, 96), Point(121, 98)]
Writeln(toStr(SPS_GetMyPos));
SPS_WalkPath(MyPath);
SPS_WalkPath(MyPathBack);
//PollPos;
End.
Last edited by DannyRS; 02-10-2013 at 07:15 AM.
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
nice, the beta worked for me so far
e: also, what all should be added to the include? I haven't came across anything that needed to be added so far.
<TViYH> i had a dream about you again awkwardsaw
Malachi 2:3
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
ill map a fiew areas when i get the hang of photoshop
yea it's doable but not ideal, removing player dots is hard too,
for example my soulwars script:
http://i.imgur.com/6iTHZA2.png
http://img607.imageshack.us/img607/9...mainallsps.png
try that in paint :/
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
Sorry, Danny, I'm not sure what you're asking.
If you want to know if SPS will work with a private server, I don't see why not. You just may need to update some functions to work with an older version of Runescape. I see you have a beta version working; but, I'm not sure what part you think you "hacked" to make it work. Please elaborate.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
Edit - how did you generate a world map, some kind of hook?
I just barely get how it works, but results are a bit messed up,
SPS_GetMyPos()
The X,Y seem to be returning wrong by 400 so I had to splice in
Simba Code:Result.X:=Result.X+400;
Result.Y:=Result.Y+400;
I know the crappy old interface meant lowering the size of gatherminimap, other than that I'm lost, but it works (altho no result returns 399,399 not -1,-1 lol)
Simba Code:// Edited For P06Include by DannyRS
// Author: marpis & SRL Community
function SPS_GetMyPos(): TPoint;
var
Minimap: TMufasaBitmap;
SmallMap: T3DIntegerArray;
t, FoundMatches: integer;
P: TPoint;
Searches: extended;
begin
Result := Point(-1, -1);
if (not SPS_IsSetup) then
begin
writeln('SPS ERROR: SPS_Setup was never called');
exit;
end;
if (not P06_LoggedIn) then
Exit;
if (SPS_Tolerance < 1.0) then
SPS_Tolerance := 600.0;
if (SPS_MatchesPercent = 0.0) then
SPS_MatchesPercent := 0.35;
Minimap := SPS_GatherMinimap();
t := getSystemTime();
SPS_FilterMinimap(Minimap);
//DrawBitmapDebugImg(Minimap.Index);
//DisplayDebugImgWindow(80, 80);
{$IFDEF SIMBAMAJOR990}
SetLength(SmallMap, 0); // Using this instead of SmallMap := [];
SPS_BitmapToMap(Minimap, SPS_Accuracy, SmallMap);
{$ELSE}
SmallMap := [];
SmallMap := SPS_BitmapToMap(Minimap, SPS_Accuracy);
{$ENDIF}
FoundMatches := SPS_FindMapInMap(P.x, P.y, SPS_AreaMaps, SmallMap, SPS_Tolerance);
Searches := ((Minimap.Width / SPS_Accuracy) * (Minimap.Height / SPS_Accuracy));
{
writeln('fx: '+toStr(p.x)+' ~ on area: '+toStr(P.X * SPS_Accuracy + (Minimap.Width / 2)));
writeln('fy: '+toStr(p.y)+' ~ on area: '+toStr(P.Y * SPS_Accuracy + (Minimap.Width / 2)));
writeln('matches: '+toStr(foundMatches));
writeln('searches: '+toStr(searches));
writeln('percent: '+toStr(FoundMatches / Searches));
}
if ((FoundMatches / Searches) > SPS_MatchesPercent) then
Result := SPS_LocalToGlobal(SPS_GetTopLeftCoords(SPS_Areas), // the top left of the total area
P.x * SPS_Accuracy + (Minimap.Width / 2),
P.y * SPS_Accuracy + (Minimap.Width / 2));
Result.X:=Result.X+400;
Result.Y:=Result.Y+400;
Minimap.Free;
t := (GetSystemTime - t);
if (SPS_Debug) then
Writeln('SPS_GetMyPos: Finished in '+ToStr(t)+' ms. Result = '+ToStr(Result));
end;
Last edited by DannyRS; 02-10-2013 at 03:53 AM.
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
How can you tell if the result is off if you don't have a world map to compare it to? What I would do is just use SPS_GetMyPos to create the path, that way you should always get the same result. Now that I think about it, you shouldn't have to change anything in SPS. All it does is compare the minimap to the map that's loaded (i.e. your custom map). With a custom map, it will return smaller numbers since the top left of the map is 0, 0.
The only reason SPS returns coords on the world map is because there are so many map pieces.
I created the world map using the runescape_surface_creator.simba file in sps/tools/. I don't think it's shipped with the updater, so you'll have to download the SPS source. It uses the in game world map to piece together a bunch of screenshots, then save it as the world map. I'm not sure how old your PS server is, though, so you may not have an in game world map.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
Last edited by DannyRS; 02-10-2013 at 04:42 AM.
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
I just took a look at sps.simba and it turns out that will effect the calculation. It checks if there are 2 or more numbers in the file name (since all surface maps are named as such) and if there are, it'll calculate depending on what those numbers are. Try taking the numbers out of the file and see if it works.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
No problem, glad it worked. If you have any questions, feel free to ask (mention me in the post so I'm notified).
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
UPDATED the sps file in OP to fix the above Bug me and Coh3n discussed, I gave rjj's flax map a try with the player dots and interface stuff removed, and it actually walked to the bank and back perfectly!
Walking in P06 just got a lot easier!!
Last edited by DannyRS; 02-10-2013 at 08:34 AM.
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
Danny so I'm grasping the concept of SPS just a little bit. I'm still confused though... I couldnt spot a guide on SPS in the tutorials section either.
There are currently 1 users browsing this thread. (0 members and 1 guests)