SRL Archive - OSR Help

Best Walking Method?


Ian

2012-09-13 15:25:10

Hey guys, for the script that i'm working on I want to be able to walk to somewhere that is on my minimap but not in view on the main screen.
If there is more than one option, which is the most newb friendly :p?

Footy

2012-09-13 15:37:49

RadialWalk sounds really complex, but Its actually very easy and simple to use if you are 100% sure of your starting location. Or if you wanna go full noob style, and your starting position is always the same, use mouse! :P

Ian

2012-09-13 15:45:45

From: Footy
RadialWalk sounds really complex, but Its actually very easy and simple to use if you are 100% sure of your starting location. Or if you wanna go full noob style, and your starting position is always the same, use mouse! :P


Is RadialWalk the most accurate for short distances? As for full noob style, would using mouse be just full on coord. clicking on the minimap? :p

Footy

2012-09-13 15:53:08

Yeah, lol. I wouldn't use that unless you are 100% sure It will always get you to where you need to go. I would use a small amount of randomness but not much. Really, you shouldnt be taking walking advice from me, I absolutely hate walking.

Ashaman88

2012-09-13 15:57:09

Depends on how far you need to walk. If it's just one point on the MM then I would just use a well placed DTM on the MM (if possible). IMO though the best for walking is a custom made SPS map w/ sps walking. Either way you should have backups just in case. I've used SPS, ObjectDTMs, MM DTM's, TPA's, and blind clicking before and it really just depends on the area, distance to walk, and if you can bribe someone to make an SPS map for you

Ian

2012-09-13 16:05:33

I want to be able to walk from inside the red circles to any of the green circles and back.

Roflme

2012-09-13 16:43:11

From: BMWxi
I want to be able to walk from inside the red circles to any of the green circles and back.


Is that gap between the fence and house existent supposed to be there? Or just a glitch in the image? I thought the chicken pen was completely fenced in?

If it is completely closed in than do you have a function for detecting the gate on the fence for getting out?

If the gap does exist then ignore that. No need to open it if you can just walk out :p

IMO I'd learn how to use SPS. Only because I still haven't learned RadialWalking (ONLY BECAUSE I'm making it much more difficult than it should be :p) and found SPS somewhat easy to learn. I personally used Mat's tutorial here.

Footy

2012-09-13 16:46:03

That gap is not there, or atleast it wasnt the last time I was there(~2 months ago). You will need a rather complex function to detect if the gate is open now… Good luck! :P

Mat

2012-09-13 17:15:24

SPS+Custom Map, can't beat it :)
I swear by SPS.
Mat

Ian

2012-09-13 17:19:35

Nope, no gap. I also have read a few SPS tutorials, but I got the idea that they were more for long distance walking. I guess that's what I'll use if there are n other suggestions. Speaking of suggestions, if anyone has any ideas about how I could get through the gate I'd welcome them. Currently my only idea is to have a second account hover the gate coordinates and then if the gate closed the open gate uptext would appear and the "gatekeeper" would open it, effectively holding the door open indefinitely.:sasmokin:

E: I decided on SPS over ODTM's simply because it looks easier :D Hopefully I can get this working soon.

P1ng

2012-09-13 23:47:47

I wrote myself a DTM/TPA walking function which seems to be working pretty nicely for me

I use FindDTMs to create a TPA of all of the point the DTM is found at on the minimap and then Sort the TPA from the point I would like to walk to and then cycle through the TPA until I find a point on the minimap and then click it.

I chose this method because ODTM and SPS were both giving me troubles in the area I was trying to walk to. But in all seriousness it really depends how far you need to go, how accurate you need to be and where it is you are actually walking.

Ian

2012-09-14 00:30:50

From: P1ng
I wrote myself a DTM/TPA walking function which seems to be working pretty nicely for me

I use FindDTMs to create a TPA of all of the point the DTM is found at on the minimap and then Sort the TPA from the point I would like to walk to and then cycle through the TPA until I find a point on the minimap and then click it.

I chose this method because ODTM and SPS were both giving me troubles in the area I was trying to walk to. But in all seriousness it really depends how far you need to go, how accurate you need to be and where it is you are actually walking.

So which would you use in my case? From the picture above, I want to go from the red circle to one of the green circles and back. At a later date I may add some more variation in paths but for now one will fit my needs fine. I'd also like to add that I don't think gate opening is an issue as I have a plan also above :stirthepot:

P1ng

2012-09-14 00:54:47

I just tested it using SPS for walking to one of the trees you designated and it worked perfectly fine with the stock map.

So feel free to give that a go

J J

2012-09-14 03:27:05

From: Footy
That gap is not there, or atleast it wasnt the last time I was there(~2 months ago). You will need a rather complex function to detect if the gate is open now… Good luck! :P

Make a TPA with the color of the fence. Split it and see how many TPA's you get. Everything should connect so if the fence is closed you would get one result because everything is connected.
If the fence is open you will get two results because the fence isn't connected anymore.

If the fence has the same color as the area then you can check for the uptext, a bit bot like, but oh well :P

Roflme

2012-09-15 08:31:43

From: Footy
That gap is not there, or atleast it wasnt the last time I was there(~2 months ago). You will need a rather complex function to detect if the gate is open now… Good luck! :P


^This, IMO I'd be worrying more about detecting the gate rather than the walking :p

WT-Fakawi

2012-09-16 02:41:01

I'd use a DDTM of the stairs on the minimap. There seems so be only one stair, and it has a unique color. Make a DDTM and callibrate alongside this.

KeepBotting

2012-09-20 20:54:35

SPS is the most noob-friendly and if you want to get just a bit more advanced you can create custom maps which is only marginally harder and increases SPS's stability by 1000%.

Ian

2012-09-20 20:57:59

Yeah, I'm using SPS for now, although I might use what WT suggested if SPS is being buggy or I want to try out a new walking method :D

Solar

2012-09-21 03:19:48

I've tried SPS and SPS only for walking. When I first tried, it worked great, but even without changing the map or walking part of the script, the next time I ran the script it failed at Walkpath. :(

Getdropped

2012-09-22 02:53:59

From: Solar
I've tried SPS and SPS only for walking. When I first tried, it worked great, but even without changing the map or walking part of the script, the next time I ran the script it failed at Walkpath. :(


Your graphics options may have changed because it was was different smart…. I would suggest creating you own sps maps it seems to work very nice for me although it is like a jig saw puzzle getting all the pics put together, it would work well because it isnt a very larget area so you could get it done quick
Here is a link: http://villavu.com/forum/showthread.php?t=84360

It is by Google

Solar

2012-09-22 14:08:15

I used the same version of SMART and made my own map. And then when it stopped working tried making another map and another path with it. Neither worked.
I used paint just making a map as in Mat's guide since I don't have Photoshop.

Ian

2012-09-22 14:21:11

Yeah, I tried making a custom map in paint and it didn't work to well so I just used the runescape surface.png with the path creator. Only tested it for one walk but for now working great :D.

Mat

2012-09-22 14:35:29

BMWxi you need Fireworks or some other image editor that allows for layers. I use Custom SPS Maps for everything :D
Mat

Ian

2012-09-22 14:54:12

Instead of 150$ I think I'll just use my school computers which have Photoshop Elements :D

litoris

2012-09-22 15:09:46

From: BMWxi
Instead of 150$ I think I'll just use my school computers which have Photoshop Elements :D


Get GIMP? It's free, has many things that photoshop has, just not the super fancy effects.

Ian

2012-09-22 15:12:34

From: litoris
Get GIMP? It's free, has many things that photoshop has, just not the super fancy effects.


Lol! I completely forgot about gimp, I already have it installed :duh: Thank you litoris!

Also, spellcheck thinks your name is clitoris, just saying :p

Ian

2012-09-26 15:40:26

From: J J
Make a TPA with the color of the fence. Split it and see how many TPA's you get. Everything should connect so if the fence is closed you would get one result because everything is connected.
If the fence is open you will get two results because the fence isn't connected anymore.

If the fence has the same color as the area then you can check for the uptext, a bit bot like, but oh well :P


Do you think the colours are too similar? also there's another fence right behind it:

Whoops. I forgot I was the last poster :p

P1ng

2012-09-26 16:05:04

Use CTS2 and use MMToMS so that you are only checking where the red line of the gate is. Do a few tests with the gate open and get the length of the TPA and do a few tests with the gate closed and get the length of the TPA. From there you can work out a reasonable number to use for when it's closed.

Ian

2012-09-29 11:47:22

From: P1ng
Use CTS2 and use MMToMS so that you are only checking where the red line of the gate is. Do a few tests with the gate open and get the length of the TPA and do a few tests with the gate closed and get the length of the TPA. From there you can work out a reasonable number to use for when it's closed.


I couldn't find a tutorial on how to use MMtoMS, it would be great if you could link me to one :). Until then i'll keep searching.

J J

2012-09-29 11:54:00

From: BMWxi
I couldn't find a tutorial on how to use MMtoMS, it would be great if you could link me to one :). Until then i'll keep searching.

Function MMtoMS(MM: TPoint): TPoint;
Just fill in a point on the minimap and it will convert it to a point on the mainscreen. It's fairly accurate :)
You can search the minimap for the red color of the gate. Then input it in MmToMs to get a rough idea where the gate is. Then you can make a box around the converted point and search inside that.

Then you can compare the results closed and opened and figure out when it's opened or close as P1ng mentioned. Use ACA to get the right colors (be sure to use atleast 5 worlds). Then you can get the minimum/maximum width. If it's closed it will have a different width than when it's opened.