Skip to content

hjbdev/cs2-vmap-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

import parseVMap from 'cs2-vmap-tools';

const vmap = 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

Watchers

Forks

Releases

No releases published

Packages

No packages published