Extract Items/Skins/... from raw VDF data files
npm install node-csgo-parsernpm install node-csgo-parser --save
js
var parser = require('./csgo-data-parser'),
var schemaFilePath = './test/test-data/schema.txt',
langFilePath = './test/test-data/csgo_english.txt',
itemsFilePath = './test/test-data/items_game.txt',
outLogFilePath = './out/logs/parser.log';
var csgoDataParser = new parser(schemaFilePath, langFilePath, itemsFilePath, 'debug', outLogFilePath);
`
Must pass schema file (like schema.txt), language file (like csgo_english.txt) and item file (like item_data.txt) at VDF format
- Schema file can be find in Steam API
- Language file can be find in game data files (steam-data/csgo/resource/csgo_language.txt)
- Items File can be find both in game data files () and in Steam API (Note : You need do get the items_game_url information)
$3
A sample script is at example.js`.
winston.Logger
boolean
boolean
String
Array.<Weapon>
Array.<Collection>
Array.<String>
Array.<Prefab>
Array.<Prefab>
Array.<Sticker>
Array.<MusicKit>
Array.<Rarity>
String | Path to schema file. |
String | Path to csgo_lang file. |
String | Path to items_game file. |
String | Winston Log Level, if > info no timing data for generations. |
String | Choosen file path to write logs. |
CSGODataParser
winston.Logger - Winston based Parser's Logger.
CSGODataParser
boolean - True if datas initialized, false otherwise
CSGODataParser
boolean - True if initialized, false otherwise
CSGODataParser
String - traduction if langfile initialized and key is present, key otherwise
String | valve key i18n values (like #PaintKit_aa_fade_Tag) |
CSGODataParser
Array.<Weapon> - List of Objects. One object represent one Weapon.
CSGODataParser
Array.<Collection> - List of Collections. One object represent one Collection.
CSGODataParser
Array.<String> - One string represent one exterior type - I18N Name
CSGODataParser
Array.<Prefab> - List of Object. One object represent one case
CSGODataParser
Array.<Prefab> - List of Object. One object represent one case key
CSGODataParser
Array.<Sticker> - List of Sticker. One object represent one sticker
CSGODataParser
Array.<MusicKit> - List of MusicKit. One object represent one music kit
CSGODataParser
Array.<Rarity> - List of Rarity objects. One object represent one rarity.