Results 1 to 3 of 3

Thread: SPS issues (bugs?)

  1. #1
    Join Date
    Jul 2012
    Posts
    279
    Mentioned
    5 Post(s)
    Quoted
    46 Post(s)

    Default SPS issues (bugs?)

    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:
    Simba Code:
    [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:

    Simba Code:
    [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:

    Simba Code:
    [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.

  2. #2
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    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


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  3. #3
    Join Date
    Jul 2012
    Posts
    279
    Mentioned
    5 Post(s)
    Quoted
    46 Post(s)

    Default

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

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
  •