SRL Archive - SRL Suggestions

RPS runescape position system


rogue poser

2009-06-11 12:42:41

i mentioned this about a year or so ago, but didnt get much feedback. at the time i wasnt sure how to even pursue it, but here goes…

this project would be huge… bottom line

we could store every color of the runescape map in an array (perhaps a c++ dll type deal)

first effort: store the approximate coords of every quest symbol relative to an rs map we have, so that if there are quest symbols in the minimap we can get an approximate position, within 3 or so runescape blocks, with that found, we can use the max x, max y, minx, min y, of the minimap in relation to the symbols, and search that portion of the array for the colors surrounding the white square that signifies your position, in order to get an almost exact location.

(maybe saving the colors in the array as a 256 color bitmap would allow for easier and much faster manipulation, plus it would not be very susceptible to the frequent minor color changes

second effort
: if there were no quest symbols around, or not enough to pinpoint a position, you use the possible positions based on that symbol and check the positions of relatively large amounts of color, in relation to the center of the minimap (since the colore has been degraded to 256 colors it would be easier to pinpoint… maybe

to be honest, if written well it might take about 25 seconds on a good machine (quite possibly longer) to get a position if it had to go to the second step, but if it was in c++ with 256 colors, it would minimize the cpu cycles and it could be used as a last stitch effort for a script that maybe has to walk a very long distance

i think it could be done…. what do you all think?

Hugolord

2009-06-11 14:15:13

The colors change/move around

XcanadamanX

2009-06-12 01:37:16

but what about the actual map (the one you click and it opens)…hmm.

marpis

2009-06-12 01:43:52

You can easily make a script that gets very accurate position. Same techinque could also be used to reflection-like walking (very accurate and easy)
It goes like this:
- Make a map of RS using only in-game MM. This would take a while.
- Make your script save image of current MM to a variable (or just a 40*40 box around MMCX, MMCY)
- Filter out all symbols, playerdots, dropdots, NPC dots
- SetTargetBitmap() or something like that
- FindDeformedBitmapToleranceRotationIn()

voilá. a very long project but not that difficult.

Naum

2009-06-13 02:14:48

Nielsie95 once created an awesome system 1 year ago which would detect what area you were in using the music settings :)

rogue poser

2009-06-13 03:42:57

From: NaumanAkhlaQ
Nielsie95 once created an awesome system 1 year ago which would detect what area you were in using the music settings :)


wow thats a good idea, in conjunction with that you could have a minimap bitmap to seach in given the music setting. interesting

Cartmann

2009-06-13 04:03:45

isn´t that detectable by jagex? becouse the bot have to analyse the game? and if jagex knew we did this, they could just change one of thiese questgivers or musics just a few cords, and all the scripts would pretty much be ruined for the banhammer?

rogue poser

2009-06-13 04:09:34

From: Cartmann
isn´t that detectable by jagex? becouse the bot have to analyse the game? and if jagex knew we did this, they could just change one of thiese questgivers or musics just a few cords, and all the scripts would pretty much be ruined for the banhammer?


you could analyse it in a similar way to the way text is read, isnt there a playlist thing where you can check your music at any given time? its not detectable to take a screenshot of your computer and pull the info from that array. thats why scar is not directly detectable. only the long hours of monotonous playstyle

Griff

2009-06-13 04:48:47

RPS = ROCK PAPER SCISSORS!

But anyways, don't the colours change, as HugoLord said?

rogue poser

2009-06-13 04:59:16

From: Griff721
RPS = ROCK PAPER SCISSORS!

But anyways, don't the colours change, as HugoLord said?


thats why a big part would be doing it with a 256 colorscale. if you degrade a minimap picture of the road color, the entire road is the same color.. thats the only idea i have to eliminate that variable… well other than color tolerance which is resource intensive

BobboHobbo

2009-06-13 16:10:01

This wouldnt work, so many things would go wrong.

Nadeem

2009-06-21 22:17:20

This is almost like trying to re-make reflection, only this is that if this breaks, it will be a a …. to fix.



~NS