Results 1 to 9 of 9

Thread: Radial walking compass compatibility

  1. #1
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default Radial walking compass compatibility

    I'm trying to radial walk with any compass direction (instead of restricting to perfect north).
    What i'm currently doing is to add the radial recorded at north compass by (360-Round(rs_GetCompassAngleDegrees)) during run time. However, it seems to give me problem at certain radial.


    Referring to the picture above, if i want to search the unshaded area, my SR would be 340, and ER would be 360+20=380? But it ended up walking in the completely opposite direction!

    Any help will be appreciated.

  2. #2
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    ER would be 20, no? Doesn't it always go through the smallest arc?
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

  3. #3
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    I said it ages ago. But it is still not changed. mapwalk.simba needs a fix.

    Needs to be removed: (line 711)
    Simba Code:
    if (SD > ED) then
        Swap(SD, ED);

    Needs to be change: (line 47)
    Simba Code:
    Result := FixD(dir + 0.0)

    into:
    Simba Code:
    Result := dir;

    I don't think it will ever be changed. Try another method then walking with Radials.
    Working on: Tithe Farmer

  4. #4
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You use -20, 20.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  5. #5
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Footy View Post
    You use -20, 20.
    no because someone decided it would be smart to use this:
    https://github.com/MerlijnWajer/Simb.../math.inc#L149
    Working on: Tithe Farmer

  6. #6
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    I said it ages ago. But it is still not changed. mapwalk.simba needs a fix.

    Needs to be removed: (line 711)
    Simba Code:
    if (SD > ED) then
        Swap(SD, ED);

    Needs to be change: (line 47)
    Simba Code:
    Result := FixD(dir + 0.0)

    into:
    Simba Code:
    Result := dir;

    I don't think it will ever be changed. Try another method then walking with Radials.
    Send a pull request? I sent a trivial one a few months ago and they pulled it after a few weeks.
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

  7. #7
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    You are free to do so.

    edit:
    I have some problems with git. I fixed the FilterPointPie function making radialwalk possible, but didn't needed the radialwalk function. However, I said it in that thread, and in others multiple times, that radialwalk itself also needs a fix.
    Working on: Tithe Farmer

  8. #8
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Yeah I had this problem aswell, I believe I combined the results of two different radial walks, one from 345->359 degrees and one from 1->15 or something :P Hope to see this getting fixed soon!

    Script source code available here: Github

  9. #9
    Join Date
    Mar 2006
    Location
    Behind you
    Posts
    3,193
    Mentioned
    61 Post(s)
    Quoted
    63 Post(s)

    Default

    Use TPAWalk instead? So much Better.

    "Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."

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
  •