Results 1 to 9 of 9

Thread: SPS Returns Cords (-1,-1)

  1. #1
    Join Date
    Mar 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default SPS Returns Cords (-1,-1)

    I'm having a problem running a script I made on another computer of mine. Both have Smart8, SPS-osr, and SRL installed and updated the same. For some reason when the script should enter a SPS walk path it doesn't do anything. I checked by adding

    Code:
    Me := SPS_GetMyPos();
    writeln(Me);
    to the script to check my current location and it returns the coordinates (-1,-1). Not that it matters but it should be returning around (1850,2600). I am using the same map from the runescape_surface07 folder of SPS. Any help would be appreciated!

  2. #2
    Join Date
    Apr 2013
    Location
    England
    Posts
    223
    Mentioned
    2 Post(s)
    Quoted
    106 Post(s)

    Default

    OSR SPS isnt great, the map color changes alot so it often doesnt get a result (meaning it returns -1,-1 )

  3. #3
    Join Date
    Mar 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I figured. I don't normally use the forums either. I noticed the mini-map on my other computer is significantly darker than the one i originally wrote the script on. Maybe i should make a custom map of the darker one and use both just incase?

  4. #4
    Join Date
    Apr 2013
    Location
    England
    Posts
    223
    Mentioned
    2 Post(s)
    Quoted
    106 Post(s)

    Default

    if you check out flights scripts here http://villavu.com/forum/showthread.php?t=103053 he made another map and switches between light and dark if one isnt working ...

  5. #5
    Join Date
    Mar 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thanks for the link. I have another issue that i'm not sure how to accurately go about. The minimap I know moves 11 degrees in both directions to deter bots. I'm not sure how to fix this because make compass is set to 5. SPS_AnyAngle = True as well but it still cannot find the points if the minimap is to far off.

  6. #6
    Join Date
    Apr 2013
    Location
    Las Vegas
    Posts
    111
    Mentioned
    1 Post(s)
    Quoted
    35 Post(s)

    Default

    SPS_MatchesPercent = 0.3

    put that in your code before calling SPS_setup. Then run the script as normal

  7. #7
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Show us your sps map, we'll get more info bout the issue.

    Creds to DannyRS for this wonderful sig!

  8. #8
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Through out two different maps, a dark and a light one.

    Have the points from the map pretty close to eachother, so even if the map shifts, it can still find it. Having more points won't make it slow down terribly much, as it still clicks the furthest visible one.

  9. #9
    Join Date
    Apr 2013
    Location
    Las Vegas
    Posts
    111
    Mentioned
    1 Post(s)
    Quoted
    35 Post(s)

    Default

    According to his post he is trying to use SPS around the ancient cavern entrance.

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
  •