SRL Archive - OSR Help

[SPS] missing experiment cave map?


aaron126

2013-04-10 02:25:00

Hey, I'm messing around with some scripts, and since i like to train in the experiment caves, I decided I'd play with some scripting in that area. I was planning to use SPS, but I can't seem to be able to set it up, cause it's missing the experiment cave map in the Includes\SPS\img\runescape_other foler.

map is here: http://images.wikia.com/runescape/images/archive/d/dc/20110104112243!Experiment_cave.png

I'm completely new to pascal and simba, however I'm an experienced java / C / C++ programmer. If I'm wrong about this, or am missing something, please correct me.
thanks ^^

The Killer

2013-04-10 05:38:53

Download the map and place it in: C:\Simba\ Includes\SPS\img\runescape_other

The Mayor

2013-04-10 05:43:27

and at the start of your script call:

 SPS_setup(runescape_other,['NameOfSavedMap']);

aaron126

2013-04-10 06:19:23

been working on this for the past few hours, for some reason the SPS_GetMyPos() function is ALWAYS returning -1, -1 coordinates for the map.

aaron126

2013-04-10 06:25:18

EDIT:
found the culprit,

if ((FoundMatches / Searches) > SPS_MatchesPercent) then
Result := SPS_LocalToGlobal(SPS_GetTopLeftCoords(SPS_Areas), // the top left of the total area
P.X * SPS_Accuracy + (Minimap.Width / 2),
P.Y * SPS_Accuracy + (Minimap.Width / 2));

using sps-osr, that if statement would always skip setting result. Not quite sure what it's for, but i commented the if statement out and it works now, at least for getting coordinates from that function

The Killer

2013-04-10 06:38:00

Well gz for sorting it out :p and thankyou for posting so others can see your solution.

aaron126

2013-04-10 06:52:59

it's a really bad solution, though.
by commenting that out, (from what can gather) it would mean that the coordinates it returns could be wrong sometimes, which even if it's wrong once could throw off a script entirely. i think the real issue has something to do with the map.. anyone have a better solution?

dzpliu

2013-04-10 06:58:49

i dont know what is wrong with using custom maps, im getting negative coordinates on my EOC bot as well.
i used this method learnt from someone else.
manually repeat POS:=SPS_getPOS(), writein(inttostr(POS)), let the script run and manually record down the coordinates.

aaron126

2013-04-10 08:21:49

now that I look at the map I found through google, it is significantly different than the minimap ingame.
explains why it was having such a hard time figuring out the coordinates based on the image.


the first image I created myself, through printscreening. it isn't accurate, but shows the colors needed.
So I'm back to square one… which is needing the experiments cave map. any volunteers to make it? :D