Skip to content

The definitive BombSquad pathmaker. Converts map collision meshes (.cob) into efficient JSON navigation data for bot AI and pathfinding systems (e.g., NaviBot).

License

Notifications You must be signed in to change notification settings

BroBordd/pathmaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pathmaker

Pathmaker is a Python utility designed to generate navmesh (pathfinding) data for BombSquad bots by processing collision mesh files.

It converts the proprietary .cob collision mesh format, which contains geometry information, into a structured JSON graph format suitable for pathfinding algorithms.

What it Does

  1. Reads Collision Mesh: Takes a BombSquad map's collision mesh file (e.g., cragCastleLevelCollide.cob).
  2. Extracts Walkable Surfaces: Identifies triangles with an appropriate slope to determine walkable areas.
  3. Generates Navigation Graph: Creates a graph where nodes represent the center of walkable triangles, and edges connect adjacent walkable nodes.
  4. Outputs JSON: Saves the resulting graph data as a .json file.

How to Use

1. Acquire the Collision Mesh

The input file is typically found in the game's files within the meshes folder.

Example File Path:

[game_path]/meshes/mapNameLevelCollide.cob

2. Run the Script

The pathmaker.py script takes the input file and an optional output file path.

Basic Usage:

python pathmaker.py <input.cob>

This will automatically generate a file named _navguide.json (e.g., cragCastleLevelCollide_navguide.json).

Usage with Custom Output Name:

python pathmaker.py <input.cob> <output_filename.json>

Output Files

The script generates two potential JSON files:

  1. <map_name>_navguide.json (Full): The complete navigation graph.
  2. <map_name>_simplified.json (Simplified): A smaller, sampled graph generated automatically if the full mesh exceeds 500 nodes, offering faster loading at the cost of precision.

NaviBot Reference

The JSON files generated by Pathmaker are intended to be consumed by pathfinding systems within BombSquad mods.

This data format is used directly by the NaviBot mod for path planning and navigation:

About

The definitive BombSquad pathmaker. Converts map collision meshes (.cob) into efficient JSON navigation data for bot AI and pathfinding systems (e.g., NaviBot).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published