Detour - Loading an entire continent (800+ tiles) menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Detour - Loading an entire continent (800+ tiles)

    All-

    Just curious from those that are using recast/detour - is it possible to load ALL of azeroth into memory? Basically so that I can query a super long route? Right now I'm unable to as I'm limited based on this:
    Code:
    	// Init ID generator values.
    	m_tileBits = dtIlog2(dtNextPow2((unsigned int)params->maxTiles));
    	m_polyBits = dtIlog2(dtNextPow2((unsigned int)params->maxPolys));
    	// Only allow 31 salt bits, since the salt mask is calculated using 32bit uint and it will overflow.
    	m_saltBits = dtMin((unsigned int)31, 32 - m_tileBits - m_polyBits);
         
    	if (m_saltBits < 10)
    		return DT_FAILURE | DT_INVALID_PARAM;
    I know that I will need my max polys to be much larger than the below.
    Code:
            _navMesh = dtAllocNavMesh();
            dtNavMeshParams *params = new dtNavMeshParams();
            params->tileWidth = GRID_SIZE;
            params->tileHeight = GRID_SIZE;
            params->orig[0] = -(32*GRID_SIZE);
            params->orig[1] = -(32*GRID_SIZE);
            params->orig[2] = -(32*GRID_SIZE);
            params->maxTiles =  850;
            params->maxPolys =  1000;
    Thoughts?

    ~ Tanaris
    https://tanaris4.com

    Detour - Loading an entire continent (800+ tiles)
  2. #2
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can either change it to use 64-bit poly identifiers or patch that if condition (the salt is only really needed if your tiles are reloaded a lot - it's useful for tiles that change).
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  3. #3
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perfect thanks - I was debating patching but wasn't sure what I would break.

    I'll switch to 64-bit IDs

    Edit: Switched to 64-bit and it's working well. I'm using these parameters:
    Code:
            params->maxTiles =  1000;
            params->maxPolys =  65536;
    Just curious, in theory, I *should* be able to generate a path from IF to SW, right? I'm trying it now but I only get about 30% there and it stops. I get a total of 108 waypoints.

    I think the problem may be that I created ONE mesh per ADT, vs splitting the ADT into 16 tiles. But not sure if that would cause this specific problem. (I realize some polys may have been lost by doing one mesh per ADT, so it's just a theory). Does that sound right? Or could it be something else?
    Last edited by Tanaris4; 12-22-2011 at 11:14 AM.
    https://tanaris4.com

Similar Threads

  1. Recast/Detour - 16 tiles per ADT - Proper method to save/load?
    By Tanaris4 in forum WoW Memory Editing
    Replies: 5
    Last Post: 12-29-2011, 12:48 PM
  2. Recast + Detour - Connecting tiles
    By Tanaris4 in forum WoW Memory Editing
    Replies: 12
    Last Post: 12-21-2011, 04:04 PM
  3. Classic and TBC Continent Load Screens
    By BlizzhackerD in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 12-14-2010, 10:01 PM
  4. Make FireFox Load Pages Faster
    By LightWave in forum Community Chat
    Replies: 4
    Last Post: 08-31-2006, 09:30 PM
  5. Access the entire world for Alliance at any level, free
    By mantalcore in forum World of Warcraft Exploits
    Replies: 10
    Last Post: 08-19-2006, 04:01 PM
All times are GMT -5. The time now is 08:02 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