Results 1 to 2 of 2

Thread: SPS maps not working/player position not being detected

  1. #1
    Join Date
    Jul 2018
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SPS maps not working/player position not being detected

    I've been trying to test out the SPS walking method, following the SPS section in The Mayor's scripting guide, which states that the minimap should first be expanded, a screenshot taken with the snipping tool, which is then copied into paint where the white surrounding areas are removed, and finally saved as a PNG image in the runescape_other folder.

    However, no matter how large or small I make the map, or which location I try testing out SPS with, the walkPath function fails to move the character. writeLn(sps.getPlayerPos()); always returns a value of {X = -1, Y = -1}. I've tried avoiding black areas when taking screenshots of the map but this yields the same results. I've been asked to test out saveScreenShot('foo.bmp') to see what screenshot gets saved, and the 'foo.bmp' file does show a valid picture of my game client. I've been told that my map is just bad, but I've taken so many maps of various locations that I'm not too sure what else I can do differently at this point. I am running the java client with OpenGL.

    The code snippet provided by the SPSToolBox jar file does not work either, and inserting writeLn(sps.getPlayerPos()); also yields an output of {X = -1, Y = -1}

    Here's an example image of a map I've tested:
    Port_Sarim_Test.png

    Any suggestions/assistance would be greatly appreciated.

  2. #2
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

    Default

    You must have something not setup correctly... just downloaded you image and ran it fine:



    Maybe post the script?

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
  •