Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
This project was created in hopes to make building navmeshes for FFXI easier, and more efficient. It has been a learning experience in both c# and c++, it’s not perfect and I plan on making more improvements.
Using this project you should be able to build .obj files using collision data stored in the Dats, and build navmeshes using those .obj files.
- Run Ffxi_Navmesh_Builder.exe as Admin.
- Make sure your ffxi installation is correctly set, you can do this on the “dat” tab and click “set ffxi installation Path" and editing the textbox.
-
You will need to install .net5 to be able to use this application. please download .net5 from (https://dotnet.microsoft.com/download/dotnet/5.0)
-
FFXI Installed.
-
Download or Clone the repo.
git clone https://github.com/xenonsmurf/Ffxi_Navmesh_Builder.git
-
Run Ffxi_Navmesh_Builder.exe as Admin.
navmesh settings all meshes are dumped with, changing these settings will affect performance for Topaz.
- float m_tileSize = 256;
- float m_cellSize = 0.40f;
- float m_cellHeight = 0.20f;
- float m_agentHeight = 1.8f;
- float m_agentRadius = 0.3f;
- float m_agentMaxClimb = 0.5f;
- float m_agentMaxSlope = 46.0f;
- float m_regionMinSize = 8;
- float m_regionMergeSize = 20;
- float m_edgeMaxLen = 12.0f;
- float m_edgeMaxError = 1.3f;
- float m_vertsPerPoly = 6.0f;
- float m_detailSampleDist = 6.0f;
- float m_detailSampleMaxError = 1.0f;
- float m_tileSize = 64; <<<< this can be changed for small zones.
- float m_cellSize = 0.20f;
- float m_cellHeight = 0.010f;
- float m_agentHeight = 1.8f;
- float m_agentRadius = 0.7f; <<<< if you make this too big it will break the mesh. 0.7f has been tested on most zones.
- float m_agentMaxClimb = 0.5f; <<<< this might need changing for some zones. max climb changes from 0.3f to 0.5f, trial and error
- float m_agentMaxSlope = 46.0f;
- float m_regionMinSize = 8;
- float m_regionMergeSize = 20;
- float m_edgeMaxLen = 12.0f;
- float m_edgeMaxError = 1.3f;
- float m_vertsPerPoly = 6.0f;
- float m_detailSampleDist = 6.0f;
- float m_detailSampleMaxError = 1.0f;
Here you can dump the zone collision data to obj files,
-
Click Load Zones. This will read the English ZoneList.dat and populate the DataGridView with the zones found in the .dat.
-
Select the zone you want to build the collision OBJ file for.
-
Click "Build a obj file for selected Zone." this will build an obj file using collision data from the main zone.dat plus any submodels that are loaded.
4 Click "Build obj files for all zones." this will build all obj for all zones using collision data from the main zone.dat plus any submodels that are loaded.
here you can build navmeshes using FFXINAV.dll
-
These settings are the "Default settings Topaz NavMeshes are made with. Changes to these settings will affect performance on the server.
-
Click "Apply NavMesh Settings" this is a must, ffxinav.dll needs these settings to be able to build navmeshes.
-
Click "Select obj file to build a NavMesh for." this will build a navmesh for the selected obj.
-
Click "Build NavMeshes for all obj files." this will build navmeshes for all obj files.
When you click stop it will finish the Current NavMesh build.
* 1. Place the zone.obj file in RecastDemo/Meshes/.
* 2. Place the navmesh.nav in the same folder as RecastDemo.exe "RecastDemo".
* 3. Rename "navmesh.nav" to "all_tiles_navmesh.bin".
* 4. Open RecastDemo.exe-> on the right hand side click -> choose sample -> Tile Mesh.
Iput Mesh -> select the .obj file you want to edit.
* 5. Once the .obj is loaded on screen -> scroll down and click load. you will see the mesh load on screen as "blue".
This might take a long time depending on the size of the zone.
* 6. To remove tiles, on the left hand side click "Create Tiles" then on the mesh click Shift+ left mouse button.
* 7. To rebuild the tile click on the part of the mesh with left mouse button.
* 8. You can create off-mesh links with the tool on the left hand side.
once you have added all your off-mesh links you then need to click "Create Tiles" and "Build all Tiles".
* 9. When you are finished click save from the tool menu on the right hand side.
* 10.It will save as "all_tiles_navmesh.bin" you will need to rename this to "ZoneName.nav".
when I select a zone from the list to build a collision obj file for nothing happens or I get an error?.
- open an issue and check what info is in log.bin.
- If this happens,you can...
- lower the agent radius
- you can open the obj file in blender and delete the door,
- you can open the obj and navmesh in recastdemo and add an offmesh links.
- CanSeeDestination.
- Unload.
- Initialize // needs path to log config file (Default_Config.conf which is included).
- Load // loads the navmesh.
- LoadOBJFile.
- DumpNavMesh.
- GetLogMessage.
- FindPath.
- FindRandomPath.
- FindClosestPath. // this prevents exploits with navmesh / impassible terrain
- IsValidPosition. // can be used to make a grid for A star pathfinding. (if you didn't want to use recast detour to find a path).
- GetDistanceToWall. //this is distance to navmesh edge
- GetRotation.
- IsNavMeshEnabled.
- PathPoints.
- NavMeshSettings. //Lets you change the NavMesh settings before building a new mesh
- GetWaypoints. //returns the waypoints in the path
See the open issues for a list of proposed features (and known issues).
Discord xenonsmurf#3618
Project Link: https://github.com/xenonsmurf/Ffxi_Navmesh_Builder
- Devi Ltti, and Atom0s for their patience with my stupid questions.
- Thorny for his improvements to ffxinav.dll
- Vulture for his original dat.cs (collision mesh extraction tool).
- The DarkStar project / Topaz team for providing invaluable insight into the underlying workings of the game.