SRL Archive - OSR Help

SPS_AnyAngle help


Haxz

2013-04-21 05:50:52

SPS has been giving me a hard time since I started scripting for OSR. As you know, the minimap of OSR shifts a little overtime, either to the east or west. I've made a custom map for my scripts, and everytime I made a path for it to walk, it will only follow that path line pattern which is outlined in the path generator. So if I made my compass to South and with SPS_AnyAngle to true, it will still walk with that pattern. It means that when my compass is at north, I will walk to the south, which is correct. And when my compass is south, it will walk still walk to the south, which is wrong, it should be walking north when compass is at south.

Is there anything that I'm doing wrong here? Should I rotate my map 180 degrees? Then what is the SPS_AnyAngle function for? How should I make it to work with my map?

The Mayor

2013-04-21 05:59:07

From: Haxz
SPS has been giving me a hard time since I started scripting for OSR. As you know, the minimap of OSR shifts a little overtime, either to the east or west. I've made a custom map for my scripts, and everytime I made a path for it to walk, it will only follow that path line pattern which is outlined in the path generator. So if I made my compass to South and with SPS_AnyAngle to true, it will still walk with that pattern. It means that when my compass is at north, I will walk to the south, which is correct. And when my compass is south, it will walk still walk to the south, which is wrong, it should be walking north when compass is at south.

Is there anything that I'm doing wrong here? Should I rotate my map 180 degrees? Then what is the SPS_AnyAngle function for? How should I make it to work with my map?


Have you set

SPS_AnyAngle := True;

At the start of the mainloop?

Haxz

2013-04-21 05:59:47

From: The Mayor
Have you set

SPS_AnyAngle := True;

At the start of the mainloop?


Yes, I did.

Haxz

2013-04-21 06:09:34

I think its better to explain with image.

When compass at North, minimap looks like that. I'm showing that I'm walking to the altar, it will walk according to the outlines of the path.

When compass is at South, minimap looks like this. It will still walk with the same pattern lines, not knowing compass is already at south.

dzpliu

2013-04-21 06:10:06

i thought SPS doesnt work on 07?

Haxz

2013-04-21 06:10:34

From: dzpliu
i thought SPS doesnt work on 07?


There's SPS for 07 lol.
http://villavu.com/forum/showthread.php?t=98324

The Mayor

2013-04-21 06:18:24

From: Haxz
Yes, I did.


What happens if your compass is east or west? Does it have to be south?

Sjoe

2013-04-21 06:27:41

Seems to me that your map isn't big enough, SPS is probably not recognising the map correctly.

Haxz

2013-04-21 06:28:22

From: The Mayor
What happens if your compass is east or west? Does it have to be south?


It will walk according to the line of path, like when compass is south. Compass at south is better for the script to work, better colors to find etc.



From: Sjoe
Seems to me that your map isn't big enough


Does the map need to be big for anyangle to work? Else it will only walk according to the lines? How big should it be?

Sjoe

2013-04-21 06:34:06

From: Haxz

Does the map need to be big for anyangle to work? Else it will only walk according to the lines?


Well a SPS map in general should cover more ground, I'm surprised your map works :p (does it on the long term?)

also try to remove white, yellow dots that moves.

Haxz

2013-04-21 06:37:15

From: Sjoe
Well a SPS map in general should cover more ground, I'm surprised your map works :p (does it on the long term?)

also try to remove white, yellow dots that moves.


Yes, it will always work if compass is at north, it just clicks on the lines outlined without recognizing any color. Just like how it will walk when the compass is at any other side.

Well, I'm not really good at photoshop, I can only combine all those maps together :p

Haxz

2013-04-21 07:10:25

GOD DAMN IT! I think I know what's the problem. SPS_WalkPath function is re-written in OSR-SPS. And I'm still using the WalkPath function I edited which I used for EOC. I just read the codes of OSR-SPS walkpath function, facepalm-ed hard.

EDIT: Just re-edited the walkpath function of OSR-SPS. Now even that small custom map works with any angle!

Sjoe

2013-04-21 08:22:59

From: Haxz
GOD DAMN IT! I think I know what's the problem. SPS_WalkPath function is re-written in OSR-SPS. And I'm still using the WalkPath function I edited which I used for EOC. I just read the codes of OSR-SPS walkpath function, facepalm-ed hard.

EDIT: Just re-edited the walkpath function of OSR-SPS. Now even that small custom map works with any angle!


I wanna see a long proggy :p convince me

Haxz

2013-04-21 08:39:03

From: Sjoe
I wanna see a long proggy :p convince me


After I finish that script :p
Hope it will work for a long time, I'm too lazy to make the maps because I don't know how lol.

King

2013-04-21 10:03:25

From: Haxz
After I finish that script :p
Hope it will work for a long time, I'm too lazy to make the maps because I don't know how lol.


http://villavu.com/forum/showthread.php?t=84360

Great tut for learning them here :D

Haxz

2013-04-21 10:13:16

From: King
http://villavu.com/forum/showthread.php?t=84360

Great tut for learning them here :D


Thanks! I actually learnt it from there. But he didn't teach how to remove the minimap dots.

Sjoe

2013-04-21 10:27:07

From: Haxz
Thanks! I actually learnt it from there. But he didn't teach how to remove the minimap dots.


Just copy paste the environment.

King

2013-04-21 10:28:34

From: Sjoe
Just copy paste the environment.


If you search that tutorial section there should be another one, can't find it ATM because I'm on my Ipad. Just zoom in really really close and color match and compare to other screenings without that particular dot.

Haxz

2013-04-21 10:46:46

From: Sjoe
Just copy paste the environment.


You win. Map not working XD

Sjoe

2013-04-21 11:54:50

From: Haxz
You win. Map not working XD


Glad to be honest lol, I try and make my maps perfect for osrs and they still won't work decent.

Would be annoyed if yours worked lol

Haxz

2013-04-21 12:44:49

From: Sjoe
Glad to be honest lol, I try and make my maps perfect for osrs and they still won't work decent.

Would be annoyed if yours worked lol


I'm getting very frustrated. Whatever map I made, it never worked long.