Results 1 to 12 of 12

Thread: RPS runescape position system

  1. #1
    Join Date
    Feb 2007
    Posts
    143
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default RPS runescape position system

    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?

  2. #2
    Join Date
    Mar 2007
    Posts
    3,681
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    The colors change/move around

  3. #3
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

  4. #4
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    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.

  5. #5
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

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

  6. #6
    Join Date
    Feb 2007
    Posts
    143
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    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

  7. #7
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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?

  8. #8
    Join Date
    Feb 2007
    Posts
    143
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Cartmann View Post
    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

  9. #9
    Join Date
    Mar 2007
    Location
    Alberta, Canada
    Posts
    1,780
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    RPS = ROCK PAPER SCISSORS!

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

  10. #10
    Join Date
    Feb 2007
    Posts
    143
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Griff721 View Post
    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

  11. #11
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default

    This wouldnt work, so many things would go wrong.

  12. #12
    Join Date
    Dec 2008
    Location
    In a galaxy far, far away...
    Posts
    584
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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



    ~NS

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •