View Single Post
AwesomeMan
Member
Join Date: Jun 2013
Old 12-02-2014 , 08:39   Re: Using Navigation Meshes to find path?
Reply With Quote #6

Quote:
Originally Posted by Oshizu View Post
It might be caused by too long time of loading navigation perhaps?
This can be userful to you:


If it's not some infinite loop and loading just takes long time it should be fine. Change in core.cfg "SlowScriptTimeout" to 30 secondsmaybe
30 seconds gives the same, i set it to 0, gave it good few minutes but it doesn't continue past the 'Connection Count: (large number here)'.

In the navmesh plugin, there's this:
Code:
for (new iDirection = 0; iDirection < NAV_DIR_COUNT; iDirection++)
            {
                new iConnectionCount;
                ReadFileCell(hFile, iConnectionCount, UNSIGNED_INT_BYTE_SIZE);
                
                LogMessage("Connection count: %d", iConnectionCount);
                
                if (iConnectionCount > 0)
                {
                    if (iConnectionsStartIndex == -1) iConnectionsStartIndex = iGlobalConnectionsStartIndex;
                
                    for (new iConnectionIndex = 0; iConnectionIndex < iConnectionCount; iConnectionIndex++) 
                    {
                        iConnectionsEndIndex = iGlobalConnectionsStartIndex;
                    
                        new iConnectingAreaID;
                        ReadFileCell(hFile, iConnectingAreaID, UNSIGNED_INT_BYTE_SIZE);
                        
                        new iIndex = PushArrayCell(g_hNavMeshAreaConnections, iConnectingAreaID);
                        SetArrayCell(g_hNavMeshAreaConnections, iIndex, iDirection, NavMeshConnection_Direction);
                        
                        iGlobalConnectionsStartIndex++;
                    }
                }
            }
For every connection it does a loop, and in console it says the connection count is roughly 13million. Which is what I think causes the error. I believe the connection count shouldn't be anywhere as big. Perhaps it's reading the the NAV file wrongly?
AwesomeMan is offline