SRL Archive - Help

SPS issues (bugs?)


Wardancer

2013-02-03 04:32:11

I've been having quite a few problems with SPS, some of which I can't explain. The root of the issue is when I use SPS_Setup twice (well, more than once). It completely messes up SPS_GetMyPos and makes it difficult (I couldn't manage to) to start a new path.

Example of using two different maps:

[SPS] SPS_Setup() took 32 ms. Areas: ['9_7']
SPS_GetMyPos: Finished in 328 ms. Result = (3847, 3179)
[SPS] SPS_Setup() took 110 ms. Areas: ['banktodungeon1']
SPS_GetMyPos: Finished in 889 ms. Result = (395, 219)

As you can see, the position does change. It's just way off. This is what I should be getting:


[SPS] SPS_Setup() took 125 ms. Areas: ['banktodungeon1']
SPS_GetMyPos: Finished in 717 ms. Result = (259, 123)

Also, I have to point out that the off coordinate for my SPS map change depending on the area used in the first setup.

Finally, a nice pearl that happens if you try to setup the same area twice in a row:


[SPS] SPS_Setup() took 110 ms. Areas: ['banktodungeon1']
SPS_GetMyPos: Finished in 827 ms. Result = (255, 123)
[SPS] SPS_Setup() took 125 ms. Areas: ['banktodungeon1']
SPS_GetMyPos: Finished in 795 ms. Result = (-1, -1)
Successfully executed.

It has the same result with non custom maps.

It's a bit too late for me to put more thoughts into this. I'm about to put make one gigantic SPS custom map for all I need to avoid this issue, but I'd love to hear other solutions.

DannyRS

2013-02-03 05:43:47

I always have problems with trying to swap maps aswell, I think coh3n updated to fix it tho?

I believe using the surface maps with format X_X means that you need to use the Full surface map to create the points, because the position is multiplied, guessing for MSI reasons?

-1, -1 means the map area is not close enough to what the real minimap looks like and the algorithm can't calculate where you are, I've never had problems using entire custom maps, and these day's I normally take the area from the included map, then add building floor color and shading, add static NPC dots and such, if you look at my edgegold smelter map, url in script, it works well for edge, whereas the included one messes up quite alot,

Not sure I completely understood what you meant ;), also don't make your map grabs only one circle at each point, add some extra off-normal position grabs, because you don't want the ever be near a black area on your map in the game when using SPS

Wardancer

2013-02-03 09:51:21

Just to be clear, the maps do work individually. They just don't work if I try switching.