Facing some Navigation troubles menu

User Tag List

Results 1 to 3 of 3
  1. #1
    hjalplos's Avatar Member
    Reputation
    6
    Join Date
    Dec 2019
    Posts
    40
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Facing some Navigation troubles

    I've been using Trinity Mmaps builder for making mmaps and then my slightly modified navigation c++ dll. The problem I'm facing is that I can sucessfully do the m_navMeshQuery->findPath and the numberof polygons seems to be normal.
    The problem comes later when I want to build a straight path or smooth path. Both of them stopped working for unknown reasons.
    I can draw the polygons on the ground and all seems like before. I'm probably missing something that's right infront of me but I tried to debug it all day.
    For smooth path it returns at findSteerTarget.

    if (!getSteerTarget(iterPos, targetPos, SMOOTH_PATH_SLOP, polys, npolys, steerPos, steerPosFlag, steerPosRef))
    {
    printf("!getSteerTarget \n");
    break;
    }

    Facing some Navigation troubles
  2. #2
    hjalplos's Avatar Member
    Reputation
    6
    Join Date
    Dec 2019
    Posts
    40
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I made a unit test with python and the exact same code works like it should with the same mmaps.
    Could the new protection cause this? I'm manually mapping now that's like the only new thing and using a fixed path to mmaps.
    In python I use ctypes.cdll.LoadLibrary maybe I fucked up somewhere then in the manual mapping.

  3. #3
    hjalplos's Avatar Member
    Reputation
    6
    Join Date
    Dec 2019
    Posts
    40
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    problem was with static vars inside functions so for example
    inline bool dtVequal(const float* p0, const float* p1)
    {
    static const float thr = dtSqr(1.0f/16384.0f);
    const float d = dtVdistSqr(p0, p1);
    return d < thr;
    }

    works if you just remove the static variables.. probably well known by all by now but for me this was new cause I never MMapped before. This should work if the mapper supports TLS?

Similar Threads

  1. Objectmanager - Some offset trouble
    By Ploski in forum WoW Memory Editing
    Replies: 10
    Last Post: 08-13-2009, 10:07 AM
  2. Some Trouble With Race2Race..
    By Zing in forum World of Warcraft Model Editing
    Replies: 11
    Last Post: 01-18-2008, 01:30 PM
  3. Some Website trouble.
    By V!persting in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 12-27-2007, 09:58 PM
  4. Having some trouble with making my server public without hamachi.
    By Life_Hero in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 10-25-2007, 06:20 AM
  5. Blizz is in some trouble. youll love this :)
    By WoWLegend in forum World of Warcraft General
    Replies: 23
    Last Post: 09-26-2006, 08:01 AM
All times are GMT -5. The time now is 07:16 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search