SRL Archive - OSR Help

eoc sps


blockay

2013-03-05 23:17:21

when i run this i am getting -1,-1 for mypos. i am trying to use it for eoc. heres my code
program pos;
{$I SRL/SRL.Simba}
{$I SPS/sps.Simba}

var
x, y: integer;
MyLoc: TPoint;
procedure theposition;
begin
SPS_Setup(RUNESCAPE_SURFACE, ['9_7']);
MyLoc:=SPS_GetMyPos;
writeln('sps returns '+inttostr(MyLoc.x)+','+inttostr(MyLoc.y));
end;


begin
setupsrl;
ActivateClient;
repeat
theposition;
wait(2000);
until (false)
end.
do i need to make my own sps maps? or does anyone know why its not returning positive values?

Justin

2013-03-05 23:25:13

Where are you standing?

blockay

2013-03-05 23:44:46

next to the ladders for the mining guild

Justin

2013-03-05 23:46:35

 SPS_Setup(RUNESCAPE_SURFACE, ['9_7']); 

Is that the correct map? Are you around that area?

blockay

2013-03-05 23:56:07

ya im standing way within the boundaries of the 9_7 map

ekips88

2013-03-06 00:10:40

I had this problem earlier (it either result (-1,-1) or x and y were in the high thousands)

I suggest you try making custom maps for your area using either the in-game world map or minimap and see if that fixes your problem

This solved the problem for me

blockay

2013-03-06 00:14:34

didn't work for me.

i made my own sps map
[ATTACH=CONFIG]19738[/ATTACH]
and using the same code but with the right image name obviously.

tried standing near the center of the map and got -1,-1 everywhere i tried.

blockay

2013-03-06 20:26:18

still gettin error ^

bud_wis_er_420

2013-03-07 13:08:37

hmm not sure.. worked for me. I went there and ran this is wat I got. I'd try reinstalling SPS maybe even simba.



Uploaded with ImageShack.us

Sjoe

2013-03-07 13:16:01

Did u activate the client with the green crosshair? lol
Should be working , like it did for bud_wiser.

Kevin

2013-03-07 14:19:10

You can also change the SPS_Tolerance to account for variances (it defaults to 600 I believe).

Also, when you make your own SPS map, try to remove all yellow dots of moving character and white dots. Leaving those dots in place will lead to inaccuracies in the SPS detection.

blockay

2013-03-07 15:00:15

ya i targeted the rs client. ok i'll try reinstalling sps. idk how to remove the yellow dots and stuff im not that good with gimp yet but i'll try and figure that out once i get sps working

Sjoe

2013-03-07 15:07:30

Custom map from the worldmap should work, just make it big enough.

Kevin

2013-03-07 15:38:21

From: blockay
ya i targeted the rs client. ok i'll try reinstalling sps. idk how to remove the yellow dots and stuff im not that good with gimp yet but i'll try and figure that out once i get sps working


You should be able to remove them by taking multiple separate pictures of your area, laying the layers on top of each other, and deleting the portions with the minimap dots from each map. Don't remove static npc dots like bankers though - only the moving dots.

blockay

2013-03-07 15:53:51

From: Sjoekeloe
Custom map from the worldmap should work, just make it big enough.

i dont know what you are talking about
From: nivek1989
You should be able to remove them by taking multiple separate pictures of your area, laying the layers on top of each other, and deleting the portions with the minimap dots from each map. Don't remove static npc dots like bankers though - only the moving dots.

alright cool, i just finished eating so im gonna try and workout sps problem then i'll definitely try and do that. doesn't seem too hard at all

Kevin

2013-03-07 15:57:51

When he says custom map from the world map, he means grabbing the full RS map, then cutting out your local area for a SPS map. It does tend to be fairly accurate, but making your own should be even more accurate.

blockay

2013-03-07 16:13:21

From: nivek1989
When he says custom map from the world map, he means grabbing the full RS map, then cutting out your local area for a SPS map. It does tend to be fairly accurate, but making your own should be even more accurate.

oh alright. well i'd rather just make it cuz that map doesn't look like the colors match the colors of the actual minimap

blockay

2013-03-07 16:37:59

i reinstalled simba from scratch and it still didn't work. used the same sps map that i created, stood in many different places. same code as before that bud wiser confirmed worked for him