Skip to content

items_games.txt update #4

Description

@acSpock

With the recent updates the data model no longer keeps paint_kits, paint_kits_rarity in one giant object and this is leading to an incomplete skin list for each weapon. I believe the VDF parser you're using is not correctly parsing the vdf into a complete JS object - specifically with the get weapons method and the skins object inside each weapon

edit: one hacky way to do it is to use a different vdf parser for the items_games and schema file (the only one that works is the simple-vdf) and modify the csgo-data-parser file to include like so

you'll have to add simple-vdf to the package.json and then at the top of the csgo data parser file add

var simplevdf = require('simple-vdf'),
// ---- ITEMGAME FILE ---
			var itemsFile = fs.readFileSync(this.itemsFilePath, 'utf8');
			this.itemsData = simplevdf.parse(itemsFile);

			// ---- SCHEMA FILE ---
			var schemaFile = fs.readFileSync(this.schemaFilePath, 'utf8');
			this.schemaData =simplevdf.parse(schemaFile);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions