Skip to content

Repository files navigation

CS2 VMap Parsing + Place Name Extraction

The CLI is written for Bun. The parseVmap library will work with either Bun or Node.

If you want to read about how this library came about, click here.

The Problem

In CS:GO, you could extract place names from maps by parsing the nav file. In 2, place names are stored as env_cs_place entities.

Decompilation

First, decompile your map with Source 2 Viewer. We need the entire map decompiled, entities and all. Don't change the folder structure after decompile.

Usage

Import the vmap file as a string. Call parseVMap with that string.

importparseVMapfrom'cs2-vmap-tools';constvmap=parseVMap(/* string here */)
bun cli.js --input=".\de_vertigo.vmap"

Installation

bun add cs2-vmap-tools

About

A utility for converting decompiled vmap files to JSON and extracting callouts.

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages