1. ## SRL Positioning System (OFFICIAL THREAD)

SRL Positioning System
Status: Working for RS3 as of July 5th, 2014. SPS does not work for OSR.

Introduction:

SRL Positioning System (a.k.a. SPS) is a 100% color positioning system that allows for easy and accurate color walking. SPS was originally developed by marpis, and has since been developed by the SRL community. The original SPS thread can be found here, and the new SPS source can be found here.

• Introduction
• Features
• Development
• Adding SPS to a Script
• Credits
• Conclusion

Features:

• 100% color.
• Works without SMART.
• It is very, very simple to use.
• The mathematics behind SPS can be found here.

• Close any instances of Simba you have open.
• SPS is included with the SRL updater, so if you've installed SRL, you should already have an SPS heading in your Simba. If you don't have this heading, follow this short tutorial.
• To install manually, download SPS from here, and extract it to Simba/Includes/. Make sure you rename the folder to SPS.
• Open the new SPS folder and copy the sps.dll file that's in SPS/plugins/.
• Paste that file in Simba/Plugins/.
• Done!

Development:

Since SPS is hosted on GitHub, anyone can fork it, change whatever they want, and send a pull request. If you're interested in helping out, please post on this thread.

@The Mayer; has written a fantastic RS3 scripting tutorial here. The section on SPS is "Section 6, Sub-Tutorial 1". Again, SPS does not currently work for OSR.

Credits:

• marpis for the original SPS development.
• Wizzup** and mastaraymond of helping with the plugin.
• Smidqe for continually updating the world map and map pieces.
• Dgby714 for some cleaning up and plugin optimization.
• Nava2 for increasing the speed significantly.
• mika for the Dominion Tower implementation.
• Someone (please tell me who you are, I can't remember, sorry ) for the Runecrafting Altar maps.
• Hero for most of the dungeon map.
• J J and Ollybest for making SPS work at any compass angle.

Conclusion:

I have seen SPS used in a lot of scripts and has always proven to work quite well. If you have any issues getting it to work, don't be afraid to ask.

Lastly, I want to say thank you to anyone who has contributed and to anyone who will contribute in the future. With this project, we are able to provide a reliable walking method to keep SRL 100% color.

Cheers,
Coh3n
Last edited by Coh3n; 07-05-2014 at 03:00 PM.

2. Is the map updated? If not it wont work in some areas

3. SPS sounds amazing!!! Developing a walking path is by far the hardest part of developing an all color script.

4. Originally Posted by Zyt3x
Is the map updated? If not it wont work in some areas
Yes it has.

Originally Posted by Smidqe
I've updated it and it's currently waiting to be pushed.

Only thing that I found that wasn't working correctly was SPS_GetMyPos, it doesn't give accurate location. This will affect MSI.
It works for me? I tested it in a few locations before making this thread.

Originally Posted by Home
Thank you.

5. Originally Posted by Smidqe
Huh? I tested with account in Varrock East bank, it gave locations that were far away
You may have been using the SPS area that doesn't work. Look at the entire map, when you updated just the F2P area, it's like a lighter box around the whole F2P area. There are two areas with VEB, one worked for me, one didn't.

We really need a script to just create the entire map. Would make that all easier.

6. Prepare yourselves for an SPS worldwalking system in 3 weeks
I know just the technique. I get my laptop here in the army next weekend (hopefully) and I'll start writing the base whenever I have time.

Marpis will be back in the game! Temporarily, at least.

7. Originally Posted by marpis
Prepare yourselves for an SPS worldwalking system in 3 weeks
I know just the technique. I get my laptop here in the army next weekend (hopefully) and I'll start writing the base whenever I have time.

Marpis will be back in the game! Temporarily, at least.
Great to hear !

Koska on TJ0? : ) Aamujaa!

~Home

8. Originally Posted by Home
Great to hear !

Koska on TJ0? : ) Aamujaa!

~Home
Tammikuun 6. pääsee pois
Itse et varmaan ole armeijas vielä käynytkään, älä niitä aamuja huutele!

9. Originally Posted by marpis
Tammikuun 6. pääsee pois
Itse et varmaan ole armeijas vielä käynytkään, älä niitä aamuja huutele!
Ehei. Käyty on Olin PSTK:ssa Säkylässä.

Mutta jaksamisia sinne!

~Home

10. Originally Posted by marpis
Prepare yourselves for an SPS worldwalking system in 3 weeks
I know just the technique. I get my laptop here in the army next weekend (hopefully) and I'll start writing the base whenever I have time.

Marpis will be back in the game! Temporarily, at least.
Awesome!

11. UPDATED ~ Essence mine added:
Progress Report:
Cohen Adair (4):
Updated sps.simba to work with dungeons (involves a slightly different setup)
Essence mine now works + added an easy setup for other dungeons
Added a Constant field to TSPSSurface
Added a Tolerance field to TSPSSurface
With this update there is a different setup involved (old one will still work, it will just use the Runescape Surface as the defauly surface), so there shouldn't be any scripts that break because of this.

Updating the first post now.

12. SRL Junior Member
Join Date
Aug 2008
Location
Oklahoma, USA
Posts
173
Mentioned
0 Post(s)
Quoted
11 Post(s)
Looks like tomorrow will be a fun coding day, it sure has been a long week..

13. Originally Posted by sf411
Looks like tomorrow will be a fun coding day, it sure has been a long week..
I also just found out that the entire Essence mine map is dynamic. Basically if you look at the top left corner of this map, that top left corner could be at the top right, bottom right or bottom left. It changes every time you enter the mine. Obviously, the same goes for the rest of the corners.

This shouldn't run in to issues since they're basically the same shape, but if it does, I can make 4 different images so the top left corner appears in all four corners (like a rotation images).

Also sf411, make sure you keep that list I sent you in a PM, it'll be a good reference. Let me know how it goes, and PM me for any help.

14. Made an update today that tremendously sped up SPS_GetMyPos. The ClickNorth call was causing it to wait an extra 1500-2000ms (setAngle in SRL waits no matter what the current angle is at).

15. Can we get an extension to download SPS? would be awesome.

~RM

16. I feel like a system for this should be implemented that uses a "delta" of sorts to work with the images. They are already very large, and its hard to ship that many easily. Thus, having a system that would update each image when it needs to be, rather than the entire bulk would be ideal.

This is not the easiest system to implement, but I think doing a grrep/regex of commit information would return which files are needed, then the update package could be updated as well. I can look into this as well, but it would involve someone hosting /two/ packages. One of the system in its entirety, and the other of deltas.

17. Originally Posted by Sir R. M8gic1an

~RM
It's planned for the near future.

Originally Posted by Nava2
I feel like a system for this should be implemented that uses a "delta" of sorts to work with the images. They are already very large, and its hard to ship that many easily. Thus, having a system that would update each image when it needs to be, rather than the entire bulk would be ideal.

This is not the easiest system to implement, but I think doing a grrep/regex of commit information would return which files are needed, then the update package could be updated as well. I can look into this as well, but it would involve someone hosting /two/ packages. One of the system in its entirety, and the other of deltas.
That would be ideal, yes, but Wizzup? said the size isn't a big deal.

18. Originally Posted by Coh3n
It's planned for the near future.

That would be ideal, yes, but Wizzup? said the size isn't a big deal.

19. SRL Member
Join Date
Dec 2009
Location
R_GetPlayerLoc;
Posts
2,231
Mentioned
0 Post(s)
Quoted
12 Post(s)
Originally Posted by Coh3n
That would be ideal, yes, but Wizzup? said the size isn't a big deal.
He is getting a new server with crazy bandwith so...

20. SRL Member
Join Date
Oct 2006
Location
Finland
Posts
433
Mentioned
1 Post(s)
Quoted
8 Post(s)
Ok, gotta admit this looks like something pretty god damn amazing.

21. Originally Posted by Yago
He is getting a new server with crazy bandwith so...
Not everyone lives in the Europe.

22. Originally Posted by Daniel
Not everyone lives in the Europe.
I'm sure we can think of something.
Perhaps even incremental updates, depending on the way SPS needs to be updated.

23. Two ways would be good, if server bandwidth is a concern, why not distribute it via bittorrent?

But if you want to just download changes from a HTTP server, then this is the way to go:
http://zsync.moria.org.uk/

24. Originally Posted by moparisthebest
Two ways would be good, if server bandwidth is a concern, why not distribute it via bittorrent?

But if you want to just download changes from a HTTP server, then this is the way to go:
http://zsync.moria.org.uk/
RSync is nice yes, but you'd need a client implementation?