Results 1 to 12 of 12

Thread: SPS Error

  1. #1
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default SPS Error

    ---- Path exists (C:\Simba\Includes\SPS\img\runescape_other\CANIFIS .png)
    ---- FATAL ERROR: sps.setup(): Unable to load map or bitmap to map failed

    Seems to be all I get when I try to run any script which requires SPS. My plugins are upto date and I've force updated them quite a few times, as well as my SPS.
    The map exists and I've tried different folders, but no dice.

    Any suggestions?

  2. #2
    Join Date
    Jan 2013
    Location
    United kingdom
    Posts
    102
    Mentioned
    4 Post(s)
    Quoted
    34 Post(s)

    Default

    Uninstall and reinstall simba.

  3. #3
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Quote Originally Posted by beefman View Post
    Uninstall and reinstall simba.
    finally some sensible advice!


    srs though. upload your code and map and stuff.

  4. #4
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Simba Code:
    var
      myPath:TPointArray;
    begin
      myPath := [Point(325, 178), Point(308, 174), Point(286, 170), Point(271, 171), Point(251, 178), Point(238, 186), Point(222, 192), Point(206, 195), Point(186, 196), Point(166, 201), Point(151, 205), Point(130, 213), Point(116, 224), Point(98, 233), Point(91, 244), Point(83, 257), Point(77, 264)];
      if SPS.walkpath(myPath) then
        minimap.waitPlayerMoving();
    end;

    and in my setup:

    Simba Code:
    SPS.setup("canifis", "RUNESCAPE_OTHER");


  5. #5
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    Simba Code:
    SPS.setup("canifis", "RUNESCAPE_OTHER");


    Try:

    Simba Code:
    SPS.setup('canifis', RUNESCAPE_OTHER);

  6. #6
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Try:

    Simba Code:
    SPS.setup('canifis', RUNESCAPE_OTHER);
    /me lols.

  7. #7
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Ah yeah sorry I did only use one quotation, I typed that on my phone. Used to Java, lol.

  8. #8
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Reinstalled, force updated everything. Still no dice.

  9. #9
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Simba Code:
    if (fileExists(SPS_IMG_PATH + imgFolder + imgName + SPS_IMG_FMT)) then
      begin
        print('Path exists ('+SPS_IMG_PATH + imgFolder + imgName + SPS_IMG_FMT+')');

        self._accuracy := accuracy;
        self._tolerance := tolerance;
        self._minMatchPercent := minMatchPercent;
        self.__mapPath := SPS_IMG_PATH + imgFolder + imgName + SPS_IMG_FMT;

        if (spsAnyAngle) then
          self._minMatchPercent := 0.10;

        try
          bmp.init(client.getMBitmaps());
          bmp.loadFromFile(self.__mapPath);

          SPS_BitmapToMap(bmp, self._accuracy, self.__areaMap);
        except
          print(self.getName()+'.setup(): Unable to load map or bitmap to map failed', TDebug.FATAL);
        finally
          bmp.free();
        end;

    Check windows permissions on the file?

    It doesn't do much that could get you there. I guess you could add debugs to the bmp.xxx calls and SPS_BitmapToMap()

  10. #10
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by bonsai View Post
    Simba Code:
    if (fileExists(SPS_IMG_PATH + imgFolder + imgName + SPS_IMG_FMT)) then
      begin
        print('Path exists ('+SPS_IMG_PATH + imgFolder + imgName + SPS_IMG_FMT+')');

        self._accuracy := accuracy;
        self._tolerance := tolerance;
        self._minMatchPercent := minMatchPercent;
        self.__mapPath := SPS_IMG_PATH + imgFolder + imgName + SPS_IMG_FMT;

        if (spsAnyAngle) then
          self._minMatchPercent := 0.10;

        try
          bmp.init(client.getMBitmaps());
          bmp.loadFromFile(self.__mapPath);

          SPS_BitmapToMap(bmp, self._accuracy, self.__areaMap);
        except
          print(self.getName()+'.setup(): Unable to load map or bitmap to map failed', TDebug.FATAL);
        finally
          bmp.free();
        end;

    Check windows permissions on the file?

    It doesn't do much that could get you there. I guess you could add debugs to the bmp.xxx calls and SPS_BitmapToMap()
    It happens on every single script I run that uses SPS unfortunately :/
    I'll give it a shot though.

  11. #11
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    It happens on every single script I run that uses SPS unfortunately :/
    I'll give it a shot though.
    Simba Code:
    -- setupSRL(): True
    -- TSPSArea.init()
    ---- Using path "C:\Simba\Includes\SPS\img\runescape_surface\CANFIS.png"
    ---- Setup SPS area "CANFIS" in 31ms
    -- TSPSArea.init()
    -- Succesfully freed SMART[7568]
    Successfully executed.

    worked for me.
    spelled canifis wrong though. whoops.

    heres my sps plugins and sps include. as well as the script i used to test it.
    https://www.dropbox.com/s/6a45d4th1d0hm5m/Simba.zip

    should just be able to unzip that into your simba folder and overwrite.

  12. #12
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Maybe you have simba set to run as administrator and Sin doesn't?

    Seeing the code again this morning, the easiest thing is comment out the try/except/finally and let it crash.

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
  •