Results 1 to 18 of 18

Thread: eoc sps

  1. #1
    Join Date
    Feb 2013
    Posts
    104
    Mentioned
    1 Post(s)
    Quoted
    32 Post(s)

    Default eoc sps

    when i run this i am getting -1,-1 for mypos. i am trying to use it for eoc. heres my code
    Simba Code:
    program pos;
    {$I SRL/SRL.Simba}
    {$I SPS/sps.Simba}

    var
      x, y: integer;
      MyLoc: TPoint;
    procedure theposition;
    begin
      SPS_Setup(RUNESCAPE_SURFACE, ['9_7']);
      MyLoc:=SPS_GetMyPos;
    writeln('sps returns '+inttostr(MyLoc.x)+','+inttostr(MyLoc.y));
    end;


    begin
      setupsrl;
      ActivateClient;
        repeat
          theposition;
          wait(2000);
        until (false)
    end.
    do i need to make my own sps maps? or does anyone know why its not returning positive values?

  2. #2
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Where are you standing?

    Forum account issues? Please send me a PM

  3. #3
    Join Date
    Feb 2013
    Posts
    104
    Mentioned
    1 Post(s)
    Quoted
    32 Post(s)

    Default

    next to the ladders for the mining guild

  4. #4
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Simba Code:
    SPS_Setup(RUNESCAPE_SURFACE, ['9_7']);

    Is that the correct map? Are you around that area?

    Forum account issues? Please send me a PM

  5. #5
    Join Date
    Feb 2013
    Posts
    104
    Mentioned
    1 Post(s)
    Quoted
    32 Post(s)

    Default

    ya im standing way within the boundaries of the 9_7 map

  6. #6
    Join Date
    Oct 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    I had this problem earlier (it either result (-1,-1) or x and y were in the high thousands)

    I suggest you try making custom maps for your area using either the in-game world map or minimap and see if that fixes your problem

    This solved the problem for me

  7. #7
    Join Date
    Feb 2013
    Posts
    104
    Mentioned
    1 Post(s)
    Quoted
    32 Post(s)

    Default

    didn't work for me.

    i made my own sps map
    iTrmn9f.png
    and using the same code but with the right image name obviously.

    tried standing near the center of the map and got -1,-1 everywhere i tried.
    Last edited by blockay; 03-07-2013 at 01:22 AM.

  8. #8
    Join Date
    Feb 2013
    Posts
    104
    Mentioned
    1 Post(s)
    Quoted
    32 Post(s)

    Default

    still gettin error ^

  9. #9
    Join Date
    Mar 2007
    Location
    Mars, I thought all men were from Mars.
    Posts
    513
    Mentioned
    7 Post(s)
    Quoted
    124 Post(s)

    Default

    hmm not sure.. worked for me. I went there and ran this is wat I got. I'd try reinstalling SPS maybe even simba.



    Uploaded with ImageShack.us
    Not scripting for RS anymore, sorry. Banned too many times.
    MY SCRIPTS

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

    Default

    Did u activate the client with the green crosshair? lol
    Should be working , like it did for bud_wiser.

    Creds to DannyRS for this wonderful sig!

  11. #11
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    You can also change the SPS_Tolerance to account for variances (it defaults to 600 I believe).

    Also, when you make your own SPS map, try to remove all yellow dots of moving character and white dots. Leaving those dots in place will lead to inaccuracies in the SPS detection.

  12. #12
    Join Date
    Feb 2013
    Posts
    104
    Mentioned
    1 Post(s)
    Quoted
    32 Post(s)

    Default

    ya i targeted the rs client. ok i'll try reinstalling sps. idk how to remove the yellow dots and stuff im not that good with gimp yet but i'll try and figure that out once i get sps working

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

    Default

    Custom map from the worldmap should work, just make it big enough.

    Creds to DannyRS for this wonderful sig!

  14. #14
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Quote Originally Posted by blockay View Post
    ya i targeted the rs client. ok i'll try reinstalling sps. idk how to remove the yellow dots and stuff im not that good with gimp yet but i'll try and figure that out once i get sps working
    You should be able to remove them by taking multiple separate pictures of your area, laying the layers on top of each other, and deleting the portions with the minimap dots from each map. Don't remove static npc dots like bankers though - only the moving dots.

  15. #15
    Join Date
    Feb 2013
    Posts
    104
    Mentioned
    1 Post(s)
    Quoted
    32 Post(s)

    Default

    Quote Originally Posted by Sjoekeloe View Post
    Custom map from the worldmap should work, just make it big enough.
    i dont know what you are talking about
    Quote Originally Posted by nivek1989 View Post
    You should be able to remove them by taking multiple separate pictures of your area, laying the layers on top of each other, and deleting the portions with the minimap dots from each map. Don't remove static npc dots like bankers though - only the moving dots.
    alright cool, i just finished eating so im gonna try and workout sps problem then i'll definitely try and do that. doesn't seem too hard at all

  16. #16
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    When he says custom map from the world map, he means grabbing the full RS map, then cutting out your local area for a SPS map. It does tend to be fairly accurate, but making your own should be even more accurate.

  17. #17
    Join Date
    Feb 2013
    Posts
    104
    Mentioned
    1 Post(s)
    Quoted
    32 Post(s)

    Default

    Quote Originally Posted by nivek1989 View Post
    When he says custom map from the world map, he means grabbing the full RS map, then cutting out your local area for a SPS map. It does tend to be fairly accurate, but making your own should be even more accurate.
    oh alright. well i'd rather just make it cuz that map doesn't look like the colors match the colors of the actual minimap

  18. #18
    Join Date
    Feb 2013
    Posts
    104
    Mentioned
    1 Post(s)
    Quoted
    32 Post(s)

    Default

    i reinstalled simba from scratch and it still didn't work. used the same sps map that i created, stood in many different places. same code as before that bud wiser confirmed worked for him

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
  •