SRL Archive - RS3 Help

SPS Error


Sin

2014-07-06 14:13:38

—- 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?

beefman

2014-07-06 16:54:10

Uninstall and reinstall simba.

Turpinator

2014-07-06 18:08:23

From: beefman
Uninstall and reinstall simba.


finally some sensible advice!


srs though. upload your code and map and stuff.

Sin

2014-07-06 18:36:58


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:


SPS.setup("canifis", "RUNESCAPE_OTHER");


The Mayor

2014-07-06 19:02:43

From: Sin

SPS.setup("canifis", "RUNESCAPE_OTHER"); 




Try:

SPS.setup('canifis', RUNESCAPE_OTHER); 

Turpinator

2014-07-06 19:20:23

From: The Mayor
Try:

SPS.setup('canifis', RUNESCAPE_OTHER); 


/me lols.

Sin

2014-07-06 19:45:58

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

Sin

2014-07-07 10:05:30

Reinstalled, force updated everything. Still no dice.

bonsai

2014-07-07 16:22:06

  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()

Sin

2014-07-07 17:02:30

From: bonsai
  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.

Turpinator

2014-07-07 23:12:00

From: Sin
It happens on every single script I run that uses SPS unfortunately :/
I'll give it a shot though.


-- 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.

bonsai

2014-07-08 03:28:01

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.