SRL Archive - SRL Positioning System

SPS World Map


Ian

2014-12-12 00:38:07

I made a SPS map of the entire F2P surface using Brandon's OGL plugin. It can be used for SPS walking. There are no symbols and no dots.

Click image for full resolution image:



Instructions to use in a script:

  1. Go to the world map http://i.imgur.com/Z4f3EaR.png
  2. Right click the image, select 'Save image as…'
  3. Open the map using paint by rightclicking it and selecting the edit option.
  4. using the selector tool, select the area that you would like to use. It is recommended to select at least a minimap width margin.
  5. Copy your selection and create a new paint file. Paste in your map selection.
  6. Save your map as a png. (my_map.png for example)
  7. Congratulations, you now have an SPS map that you can create paths with using a path creator. There is a tutorial on how to do that here.

Want to help expand this map to P2P areas, your own maps, or want to create cave maps? Here's what you can do:

  1. If you do not have it, get Brandon's OGL plugin/GLX include from here.
  2. use the attached script to save the current loaded map segment. You can change the path to your desktop for convenience.
  3. Use GIMP or Photoshop to stitch the images together. Tutorial on that here.
  4. If you want to add it to the world map, add it, export it to a png, and upload it to this thread. If it's done right I'll update the main post with your version.
  5. If you're making cave maps or other maps that will not connect to the surface map here, make sure to set the background colour of your map to black.

SaveMinimap:

program new;
{$DEFINE SMART}
{$include_once GLX/Setup.Simba}
var
S : TSmart;
begin
SetupGLX(S, 800, 600);
glDebug(GL_DEBUG_MODE.GL_MODE_Models, 0, 0, 0, 0, 0, 0, 960, 640);
SaveBitmap(GL_MapToImage, ScriptPath + '\map' + ToStr(Random(10000000)) + '.bmp');
end.

Hopefully this is a useful resource for people who want to use SPS but don't want to have to go though the hassle of making a map themselves.

Credits:
@Brandon; for his awesome OGL plugin. Without it you'd have to take screenshots of the minimap, hope the rotation isn't too much off, and then remove dots and symbols manually. No fun at all.

Changelog:

12/12/2014 - First version. Includes F2P surface.

Lipcot

2014-12-12 00:39:47

great work dude!

Frement

2014-12-12 00:52:29

Do you want to get repped? This is how you get repped.

serajin

2014-12-12 01:02:34

Such strong mental fortitude, to actually do this..very nice work.

KeepBotting

2014-12-12 07:39:49

You are a god.

The Mayor

2014-12-12 15:20:16

@BMWxi;

Hey you know what, if you grabbed the rest of the p2p world, you could cut it up and then we could chuck all the chunks in the sps/img folder like we used to have.

Zef Style

2014-12-12 22:06:44

how long does it take to use the entire map…haha

KeepBotting

2014-12-12 22:15:49

From: Zef Style
how long does it take to use the entire map…haha


I'd imagine it'd take pretty long to calculate your player's position if you let SPS use the whole thing. Possibly thirty seconds or a minute, it's huge! 3300x4000 pixels.
You're meant to slice off a piece you want to use, make sure to credit BMWxi for his hard work :)

Ian

2014-12-12 22:40:50

From: Zef Style
how long does it take to use the entire map…haha


From: KeepBotting
I'd imagine it'd take pretty long to calculate your player's position if you let SPS use the whole thing. Possibly thirty seconds or a minute, it's huge! 3300x4000 pixels.
You're meant to slice off a piece you want to use, make sure to credit BMWxi for his hard work :)


It is faster than I imagined.


of course 3.5 seconds is slower than you would want for script use, so slicing into smaller segments is still a good idea.

Edit:

varrock too, even though I forgot to update varrock square and the map has the version without snow:


SPS is magic.

KeepBotting

2014-12-12 23:07:40

From: BMWxi
It is faster than I imagined.

http://i.imgur.com/wvvr6kM.png

of course 3.5 seconds is slower than you would want for script use, so slicing into smaller segments is still a good idea.

Edit:

varrock too, even though I forgot to update varrock square and the map has the version without snow:

http://i.imgur.com/Zmafirv.png

SPS is magic.

That second image … how even … what black sorcery is this?

Zef Style

2014-12-12 23:28:42

You beat me to testing it, but yeah 3 seconds is less than I thought..

Is anyone else having issues with SPS @ any angle?

KeepBotting

2014-12-12 23:53:27

From: Zef Style
You beat me to testing it, but yeah 3 seconds is less than I thought..

Is anyone else having issues with SPS @ any angle?


I'm getting variations of 3-5 TPoints but that's normal and doesn't really make a difference.

How severe are your issues?

slacky

2014-12-13 04:18:38

From: BMWxi
It is faster than I imagined.

http://i.imgur.com/wvvr6kM.png

of course 3.5 seconds is slower than you would want for script use, so slicing into smaller segments is still a good idea.
…

SPS is magic.

I admit, I was surprised that SPS was that fast.
Also thanks for the map! :)

[spoiler="Having fun"]
Testing the same map with another method for finding my position:


This is how fast I got it without getting any false positives (afaik). 600ms is not that bad tho, even tho I was hoping to get it even faster. But that fucking minimap scaling in RS was fucking up my results when I tried to get it faster.

Note: This is not a fair comparison, the method I use is mostly untested, whereas SPS is known to be pretty stable, and I kinda doubt I'll get this one as stable as (I think) SPS is, I am just playing around :P

[/spoiler]

Ian

2014-12-13 05:14:45

From: slacky
I admit, I was surprised that SPS was is that fast.
Also thanks for the map! :)

Testing the same map with another method for finding my position:

http://i.imgur.com/cPmq76a.png

This is how fast I got it without getting any false positives (afaik). 600ms is not that bad tho, even tho I was hoping to get it even faster. But that fucking minimap scaling in RS was fucking up my results when I tried to get it faster.

PS: This is not a perfectly fair comparison, without going in to datail.. :P

600ms is impressive, looking forward to more on your method.

Zef Style

2014-12-13 15:01:05

From: KeepBotting
I'm getting variations of 3-5 TPoints but that's normal and doesn't really make a difference.

How severe are your issues?



My calculations are completely wrong for any angle other than north

throwing values like: [1300, -300]

KeepBotting

2014-12-13 15:03:35

From: Zef Style
My calculations are completely wrong for any angle other than north

throwing values like: [1300, -300]


Have you set spsAnyAngle to true after setting up your map with .setup() ?

e.g.
  map.setup('varrock', '');
spsAnyAngle := true;
writeDebug('Map has been initalized.');

Zef Style

2014-12-13 15:19:44

From: KeepBotting
Have you set spsAnyAngle to true after setting up your map with .setup() ?

e.g.
  map.setup('varrock', '');
spsAnyAngle := true;
writeDebug('Map has been initalized.');


Yes, as I am debuging directly inside the function "SPS_PosToMM"…I am reaching the rotatepoint

Olly

2014-12-13 15:26:37

From: Zef Style
Yes, as I am debuging directly inside the function "SPS_PosToMM"…I am reaching the rotatepoint


I might have made some really bad commit not thinking, go to srl/lib/sps-rs3 and comment out line 136 (and save), and try again.

Zef Style

2014-12-13 15:56:58

@Olly, that was not the issue

My rotatepoint is messed up, does this work correctly for anyone else?

bonsai

2014-12-13 16:32:27

From: Zef Style
My rotatepoint is messed up, does this work correctly for anyone else?


It's working for me but not as well as north facing.

I tried the big map around taverley with something like 7, 300, .4

Times were around 1.2s. It worked rotated but had some glitches. I didn't try it with spsanyangle false.

Tested directx with and without olly's line commented. Didn't seem to make a difference.

Ross

2014-12-31 10:58:54

if only this weren't so small. Though it might still work idk.

KeepBotting

2014-12-31 11:16:51

From: Ross
if only this weren't so small. Though it might still work idk.


Is that the worldmap? iirc the minimap and worldmap look very different from each other

Ian

2014-12-31 13:36:16

From: KeepBotting
Is that the worldmap? iirc the minimap and worldmap look very different from each other


It looks like the minimap but at less that 100% magnification. So whoever made it might have the full resolution one, but this one won't work I think.

Edit: This might be the safemode minimap but it isn't the OGL/DX minimap.

There are a lot of differences in colour:

KeepBotting

2014-12-31 16:19:37

From: BMWxi
It looks like the minimap but at less that 100% magnification. So whoever made it might have the full resolution one, but this one won't work I think.

Edit: This might be the safemode minimap but it isn't the OGL/DX minimap.

There are a lot of differences in colour:

I know Taste @ powerbot has a RS emulator of comparable revision to current (i.e. it's RS3)

I've asked him for the "world minimap image," as it were, but he got back to me once saying he didn't have it at the time. Perhaps I'll ask again. It makes sense - the entire minimap has got to be in the cache somewhere.

Patriq

2015-01-10 07:22:44

From: BMWxi
It is faster than I imagined.


of course 3.5 seconds is slower than you would want for script use, so slicing into smaller segments is still a good idea.

Edit:

varrock too, even though I forgot to update varrock square and the map has the version without snow:


SPS is magic.

How can I debug my sps map like that :O
Please teach me!

Ian

2015-01-10 15:06:15

From: PatriqDesigns
How can I debug my sps map like that :O
Please teach me!



sps.debugPlayerPos();

The Mayor

2015-01-10 15:21:16

From: PatriqDesigns
How can I debug my sps map like that :O
Please teach me!


sps.debugPlayerPos();

E: never saw the new page of the thread :/

Kasi

2015-01-10 22:42:31

From: KeepBotting
It makes sense - the entire minimap has got to be in the cache somewhere.


Nope, the global position is in cache. The entire map is never loaded into cache.

Myn

2015-03-23 01:25:38

You have saved me a lot of time! Thank you!