SRL Archive - OSR Help

SPS Help


bud_wis_er_420

2013-05-17 14:41:47

Why do I keep getting the same cords no mater where I'm standing when trying to use my own custom SPS map?

Does it matter where I place my img in the black 500 X 500 canvas? I assumed I would get higher cords if placed further from the top left. That's the reason I did it like that. So each img would use different cords. This is how I would detect what map I'm on. But it seems it starts the cords from the first non black pixel. So in other words the bigger the map the bigger the cords. But this still shouldn't be a problem because it should return(-1, -1) if on the wrong map anyways, right?

Anyways this has nothing to do with my current problem, which is why my cords keep coming up the same when using this map. Was working fine for my blue side 1st floor map. The cords I keep getting no matter where I'm standing on the map is (75, 75). Not (-1, -1) so I assume it is finding the map correctly, just something else is going wrong.

Here is the code I use to get my pos in the map.
program new;
{$DEFINE SMART}
{$i SRL/SRL.Simba}
{$I SPS/SPS.Simba}

var
MyPos : TPoint;


begin
SetUpSRL;
SPS_Setup(runescape_other,['CastelLvl1Red']);
MyPos := SPS_GetMyPos();
writeln('(' + IntToStr(MyPos.x) + ', ' + IntToStr(MyPos.y) + ')');

end.

my img:

rj

2013-05-17 14:43:44

Try trimming it down a little bit

bud_wis_er_420

2013-05-17 14:45:34

From: Officer Barbrady
Try trimming it down a little bit


What do you mean?

Ian

2013-05-17 14:51:51

From: bud_wis_er_420
What do you mean?


Don't use 500x500

Olly

2013-05-17 15:22:32

since SPS2 maps can be any size.

Kevin

2013-05-17 16:26:14

Basically… your image only needs to be like 50x50 because that's all the room you're really using with that image of yours.

bud_wis_er_420

2013-05-18 01:51:08

Ok guys, thx, I will try it.

bud_wis_er_420

2013-05-18 04:04:10

I tried with no black canvas at all and that broke most if not all the imgs. Was getting (-1, -1) No mater what I did.

I tried using 250 X 250 Black canvas. Some of the imgs worked or so I thought, till I turned Smart off and ran around a bit and was getting all sorts of weird cords. In one sq I would be in the mid 50's and one sq over in the upper 200's. I think the 500 x 500 canvas worked best so far. But still didn't work for all maps, or even the ones it appeared to work on

As for SPS2, I've never heard that before. I didn't know if it was an update I had to manually download and install, like Smart8. Or if it was like ODTM, where you have to override the update to get it working. I tried overriding update anyways, just for the hell of it. And I also search for SRS2. Found a few refs and they all led back to the main SPS pos page.

But I assume what I got is SPS2 because the default maps in the other folder are obviously not 500 X 500; Any ways can some one explain to me what exactly it looks for the determining potion in a map. Maybe me altering the map by removing the player dots is causing it to mess up. I just don't see any dots on any of the original maps. I've seen them on custom maps though. I just thought the cleaner the map the better. I am very careful to how I do it. I'll try it that way and report back. But not to night I'm sick of failing. So dam frustrated. I'm defiantly open to suggestions.

Edit: Oh, I also tried different SPS_Accuracy's

Sjoe

2013-05-18 04:16:22

make your map like a minimap big? with black on the south side.

SPS compares your map to the minimap on Runescape.

bud_wis_er_420

2013-05-18 04:26:13

From: Sjoe
make your map like a minimap big? with black on the south side.

SPS compares your map to the minimap on Runescape.


I'm sry. Are you asking me a question 'make your map like a minimap big?'. I don't understand the statement. Sry forgive my dullness , long day at work.

Sjoe

2013-05-18 04:40:45

From: bud_wis_er_420
I'm sry. Are you asking me a question 'make your map like a minimap big?'. I don't understand the statement. Sry forgive my dullness , long day at work.


smthing like this since u don't need bigger


The Mayor

2013-05-18 05:24:35

If I remember correctly you won't be able to use Cynic's Path maker on maps that aren't exactly 500 x 500.

E: actually I just tested and it worked!

E2: Actually if the height is < 500px it won't load.

Flight

2013-05-18 07:40:20

If I might throw a suggestion out there, this might work better for you for obtaining your player's position:

Me := SPS_GetMyPos();
Writeln(ToStr(Me));

Repeat
nMe := SPS_GetMyPos();
if (Me <> nMe) then
begin
ClearDebug;
Writeln(ToStr(nMe));
Me := SPS_GetMyPos();
end;
Wait(250);
Until(False)

bud_wis_er_420

2013-05-18 14:23:57

OK, Thx guys I'll try again after work.


Edit: It worked. Thx again guys. It's weird how too little or too much black canvas can make SPS not work. I didn't know there was a Goldilocks Zone.