This guide explains how to create a 2D navigation map system for water-based movement using the Nav Point Editor tool.
At the end of this process, youβll have three essential binary files for your pathfinding system:
nav_matrix.datβ the walkability map (land/water)nav_vec.datβ the list of navigation points (nodes)matrix_int.datβ the full connection and distance matrix between nodes
- Create a main map image 2400Γ1800 pixels.
- Add 64px borders on all four sides (usable area = 2272Γ1672).
- Save as
main_map.png.
- Create a 640Γ472 image.
- Use:
- Black (1) = Land
- Blue (0) = Water
- Exclude the 64px borders.
- Save as
collision_map.png.
- Use 'CompImage.py' tool to select the main map first, then the collision map, and overlay them to visually verify that both align correctly.
Use 'ImgConv.py' converter tool to transform each pixel into binary values:
First 4 bytes:
[2 bytes] β Width = 640
[2 bytes] β Height = 472
Then:
| Color | Binary |
|---|---|
| Black | 00 |
| Blue | 01 |
Output to be renamed in β nav_matrix.dat
- Launch Mapmaker.py.
- Click to place nodes on water only (blue).
- Default ~350 nodes.
- Right-click to remove or drag to move.
Click Save Points to generate nav_vec.dat.
Format:
[2 bytes] Number of points
[2 bytes] Padding
For each point:
[2 bytes] X coordinate
[2 bytes] Y coordinate
Click Generate Matrix to create matrix_int.dat using Dijkstraβs algorithm.
Each pair (i, j) contains:
[4 bytes] Distance
[2 bytes] Next Node
Use Verify All to ensure all nodes are reachable.
| Color | Meaning |
|---|---|
| π΄ Red | Isolated node |
| π£ Purple | Unreachable node |
| π Orange | Weak connection |
If Everything is Okay nothing will happen,
| File | Description |
|---|---|
nav_matrix.dat |
Walkability (land/water) |
nav_vec.dat |
Node list |
matrix_int.dat |
Distance matrix |
Move those files in navdata
Enjoy!







