Page 10 of 13 FirstFirst ... 89101112 ... LastLast
Results 226 to 250 of 317

Thread: SRL Positioning System (OFFICIAL THREAD)

  1. #226
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    someone needs to change the walktopoint or walkpath so that it does't do setrun(or whatever it does) because it clicks the run button every time its called.

  2. #227
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by KingKong View Post
    someone needs to change the walktopoint or walkpath so that it does't do setrun(or whatever it does) because it clicks the run button every time its called.
    SPS_WalkPath calls RunEnergy(20);, so perhaps GetMMLevels is broken?

  3. #228
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Is there any way for us to help you create other maps/surfaces?

  4. #229
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by Infantry001 View Post
    Is there any way for us to help you create other maps/surfaces?
    Just take a look at SPS.simba and look

    SCAR Code:
    // Should be called in scripts to setup SPS
    // Needs to be called each time the surface changes (i.e. from runescape_surface to essence_mine)
    procedure SPS_Setup(surface: integer; areas: TStringArray);
    begin
      SPS_Areas := areas;

      case surface of
        RUNESCAPE_SURFACE:
          with SPS_Surface do
          begin
            Name        := 'Runescape Surface';
            ImagePath   := SPS_IMG_PATH + 'runescape_surface\';
            FactorX     := 400;
            FactorY     := 400;
            TileOffsetX := -1;
            TileOffSetY := -1;
            Tolerance   := 0.3;
          end;

        DUNGEON_ESSENCE_MINE:
          with SPS_Surface do
          begin
            Name        := 'Essence Mine';
            ImagePath   := SPS_IMG_PATH + 'essence_mine\';
            FactorX     := 400;
            FactorY     := 1;
            TileOffsetX := -1;
            TileOffSetY := -1;
            Tolerance   := 0.5;
          end;

        DWARVEN_MINE:
          with SPS_Surface do
          begin
            Name        := 'Dwarven Mine';
            ImagePath   := SPS_IMG_PATH + 'dwarven_mine\';
            FactorX     := 400;
            FactorY     := 340;
            TileOffsetX := -1;
            TileOffSetY := -1;
            Tolerance   := 0.35;
          end;

        RUNECRAFTING_ALTARS:
          with SPS_Surface do
          begin
            Name        := 'Runecrafting Altars';
            ImagePath   := SPS_IMG_PATH + 'RUNECRAFTING_ALTARS\';
            FactorX     := 400;
            FactorY     := 400;
            TileOffsetX := -1;
            TileOffSetY := -1;
            Tolerance   := 0.2;
          end;
      end;

      SPS_Surface.Constant := surface;

      if (SPS_Debug) then
      begin
        SPS_DebugStr('[SPS] SPS_Surface: ' + SPS_Surface.Name);
        SPS_DebugStr('[SPS] SPS_Areas: ' + toStr(SPS_Areas));
      end;

      SPS_Loaded := false;
    end;

    First of all create a constant named corresponding to the dungeons name. (I.E Essence Mine -> ESSENCE_MINE)

    as for the array.

    Name - Name it again until its stuck under your tongue...
    ImagePath - Location of the images (which youll provide later.)
    FactorX,FactorY - I believe the dimensions of all the split images of the dungeon?
    TileoffsetX, TileoffsetY - default -1, really thats all i see from all the other ones.
    Tolerance - To your desire.

    As for the image files, simply take the whole dungeon map, and cut it into the dimensions set in FactorX and FactorY.

    Am i getting close anyone? No? Man...

  5. #230
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah, I meant the actual image itself. Where do you find the entire image of a dungeon/surface?

    (I don't play runescape much, so please excuse my ignorance)

  6. #231
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Infantry001 View Post
    Yeah, I meant the actual image itself. Where do you find the entire image of a dungeon/surface?

    (I don't play runescape much, so please excuse my ignorance)
    Open the world map in the game, and at the bottom there's a surface drop down box with a bunch of different dungeons to select from.

  7. #232
    Join Date
    Nov 2010
    Posts
    61
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    Open the world map in the game, and at the bottom there's a surface drop down box with a bunch of different dungeons to select from.
    By anychance does anyone know the surface/dungeon that the sorceress gerden is in? I cant seem to find it on any of the maps.

    Scripts In Progress
    KillerYews - 75%
    KillerCrafter - 25%
    KillerSmelter - 25%

  8. #233
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by KillerTHC View Post
    By anychance does anyone know the surface/dungeon that the sorceress gerden is in? I cant seem to find it on any of the maps.
    I don't believe there is currently an SPS map for that area.

  9. #234
    Join Date
    Nov 2010
    Posts
    61
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NCDS View Post
    I don't believe there is currently an SPS map for that area.
    I understand that, what I meant was where I could find it on the RS map, like what dungeon it is in, ie what map would I have to select from the drop down box in RS, so I could add it to SPS.

    I now have the general idea of how to add the map to SPS, my only problem is obtaining a full image of the map. Would it be possible to use many images of my minimap spliced together to form one bigger map for SPS?
    Last edited by KillerTHC; 12-15-2011 at 02:45 PM.

    Scripts In Progress
    KillerYews - 75%
    KillerCrafter - 25%
    KillerSmelter - 25%

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

    Default

    Quote Originally Posted by KillerTHC View Post
    I now have the general idea of how to add the map to SPS, my only problem is obtaining a full image of the map. Would it be possible to use many images of my minimap spliced together to form one bigger map for SPS?
    Yes.

  11. #236
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Doesn't Cohen have a tool that does this? Or does it work differently?
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


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

    Default

    Quote Originally Posted by Camo Developer View Post
    Doesn't Cohen have a tool that does this? Or does it work differently?
    Coh3n's tool opens the worldmap and graps images from it I guess.

  13. #238
    Join Date
    Nov 2010
    Posts
    61
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by marpis View Post
    Coh3n's tool opens the worldmap and graps images from it I guess.
    Where can I find Coh3n's tool? Also how does the FactorX and FactorY work? Are they the dimensions of the split images? Or are they the dimensions of the whole map image? Also I noted that in your mathematics post you talk about the images being 100 x 100 pixels, however when I go into the img folder I see that they are actually 500 x 500 pixels. What size should the split images be?

    Scripts In Progress
    KillerYews - 75%
    KillerCrafter - 25%
    KillerSmelter - 25%

  14. #239
    Join Date
    Dec 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Tried using SPS walking to just do a circle across the two bridges in lumbridge
    Code:
    SPS_Setup(RUNESCAPE_SURFACE ,['11_9','12_9']);
      MyPath := [Point(4726, 3784), Point(4777, 3785), Point(4754, 3736), Point(4719, 3686), Point(4705, 3631), Point(4748, 3618), Point(4820, 3622), Point(4849, 3670), Point(4874, 3710), Point(4857, 3754), Point(4790, 3756), Point(4763, 3784), Point(4729, 3784)];
      WriteLn(SPS_GetMyPos());
      SPS_WalkPath(MyPath);
      if (SPS_WalkPath(MyPath)) then
        WriteLn('We made it!');
    and all that did was print out the GetMyPos and then say We made it! after not moving

    i was following the sample code pretty closely so I dont know whats wrong

  15. #240
    Join Date
    Dec 2009
    Location
    R_GetPlayerLoc;
    Posts
    2,235
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by nubsrevenge View Post
    Tried using SPS walking to just do a circle across the two bridges in lumbridge
    Code:
    SPS_Setup(RUNESCAPE_SURFACE ,['11_9','12_9']);
      MyPath := [Point(4726, 3784), Point(4777, 3785), Point(4754, 3736), Point(4719, 3686), Point(4705, 3631), Point(4748, 3618), Point(4820, 3622), Point(4849, 3670), Point(4874, 3710), Point(4857, 3754), Point(4790, 3756), Point(4763, 3784), Point(4729, 3784)];
      WriteLn(SPS_GetMyPos());
      SPS_WalkPath(MyPath);
      if (SPS_WalkPath(MyPath)) then
        WriteLn('We made it!');
    and all that did was print out the GetMyPos and then say We made it! after not moving

    i was following the sample code pretty closely so I dont know whats wrong
    By default it will try to move to the last point I believe.... It probably saw that it was near your last point and returned true.
    "Logic never changes, just the syntax" - Kyle Undefined?

    Remember, The Edit Button Is There For A Reason!!!

  16. #241
    Join Date
    Dec 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Yago View Post
    By default it will try to move to the last point I believe.... It probably saw that it was near your last point and returned true.
    thank you, that was the problem, its working for me now if a little inaccurate lol

  17. #242
    Join Date
    Nov 2011
    Posts
    234
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Nvm.
    Last edited by jordi1104; 12-22-2011 at 10:22 PM. Reason: Wrong section probably and wrong problem.

  18. #243
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i dont have the .DLL file,what should i do?

  19. #244
    Join Date
    May 2011
    Location
    In an Island.
    Posts
    1,413
    Mentioned
    2 Post(s)
    Quoted
    149 Post(s)

    Default

    If you have the newest simba, you should have SPS.
    While on Simba, Click on View > Extensions . Make sure you have srl enabled and update it.

    If that doesn't work, download from the link of the first page, that .dll file

    ~onilika
    ''If you want something you've never had, you have to do something you've never done''


    total leve 2715/1b exp +... exterminated.

  20. #245
    Join Date
    Nov 2011
    Location
    Jozi, South Africa
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Post How do I add to the available SPS surfaces ?

    Would someone in the know please explain to me how I go about adding to the available SPS surfaces.

    Apart from growing my own understanding, I also want to contribute to the community.

    Any takers ?
    Ciao
    NM

  21. #246
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by NickMystre View Post
    Would someone in the know please explain to me how I go about adding to the available SPS surfaces.

    Apart from growing my own understanding, I also want to contribute to the community.

    Any takers ?
    I think most of the maps have been made here. Marpis said he was going to add them to SPS2.

  22. #247
    Join Date
    Nov 2011
    Location
    Jozi, South Africa
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Arrow [Resolved] - How do I add to the available SPS surfaces ?

    Quote Originally Posted by Coh3n View Post
    I think most of the maps have been made here. Marpis said he was going to add them to SPS2.
    OK! I'll keep on looking. Thx!

    EDIT: Will certainly check out the maps though, if only to look over and admire Heros' handy work.
    Ciao
    NM

  23. #248
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    The Dominion Tower map has now been added thanks to mika.

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

    Default

    Fantastic news! Thanks

    Forum account issues? Please send me a PM

  25. #250
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    SPS 2.0 has now been released. Updated first post to reflect changes.

Page 10 of 13 FirstFirst ... 89101112 ... LastLast

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
  •