Olly
2013-12-29 13:47:29
First of I apologise for not making this months ago… I just kept putting it off and off. :p
SPS for RS3 has had quite a few changes, the biggest being changing sps to use a TSPSArea record. Why is this? It allows us to have multiple maps loaded at once.
ie. something like this will work;
But i have included a TSPSArea variable "sps" so you don't have to define any vars if you just want one map.
Including sps has changed.
To have the sps updater download the new file, we had to move all the files into a new folder, this is /lib. So to include sps it is now
How to setup SPS?
SPS setup is pretty much the same, although it's a type function (like all the rest :p)
How to get players postion?
This has changed slightly, only the function name, (SPS_GetMyPos > sps.getPlayerPos());
Final infomation
The rest of the functions are still there, these are:
Dont forget, you don't actually call TSPSArea you call the variable, so sps or any custom TSPSArea you have. :)
I've also added a debug function, this is TSPSArea.debugPlayerPos() which is as simple as is sounds, it debugs your players location on the map as seen here.
More infomation!
Feel free to post if any of you guys have questions :)
SPS for RS3 has had quite a few changes, the biggest being changing sps to use a TSPSArea record. Why is this? It allows us to have multiple maps loaded at once.
ie. something like this will work;
var
map_underground, map_above_ground: TSPSArea;
begin
map_underground.setup('underground', RUNESCAPE_OTHER);
map_above_ground.setup('aboveground', RUNESCAPE_SURFACE);
writeln(map_above_ground.getPlayerPos());
writeln(map_underground.getPlayerPos());
end. But i have included a TSPSArea variable "sps" so you don't have to define any vars if you just want one map.
Including sps has changed.
To have the sps updater download the new file, we had to move all the files into a new folder, this is /lib. So to include sps it is now
{$i sps/lib/sps-rs3.simba}How to setup SPS?
SPS setup is pretty much the same, although it's a type function (like all the rest :p)
// image name // constant for what folder the image is in, RUNESCAPE_SURFACE or RUNESCAPE_OTHER
sps.setup('air_altar_map', RUNESCAPE_SURFACE); How to get players postion?
This has changed slightly, only the function name, (SPS_GetMyPos > sps.getPlayerPos());
sps.getPlayerPos(); Final infomation
The rest of the functions are still there, these are:
- function TSPSArea.walkToPos(pos: TPoint; playerPos: TPoint): boolean;
- function TSPSArea.walkToPos(pos: TPoint): boolean; overload;
- function TSPSArea.walkPath(path: TPointArray): boolean;
- function TSPSArea.blindWalk(pos: TPoint): boolean;
Dont forget, you don't actually call TSPSArea you call the variable, so sps or any custom TSPSArea you have. :)
I've also added a debug function, this is TSPSArea.debugPlayerPos() which is as simple as is sounds, it debugs your players location on the map as seen here.
More infomation!
- The sps any angle variable is 'spsAnyAngle' this is default set as false, enabling it will allow sps to work at any angle (at the cost of some speed, and accuracy).
- Is sps more accurate? it's hard to say we gain some scan area since the minimap is square, but the minimap in openGL mode is more smooth, which may hurt sps.
- I have also deleted all old maps, since they are useless in both osr, and rs3 now. If you have a custom SPS map which is high quality feel free to post it, and i can try and add it to the sps updater.
Feel free to post if any of you guys have questions :)
