items-parser
is a CS2/CS:GO items_game.txt
file parser. The script extracts game's information, such as weapon skins, gloves, keychains, or stickers to a JSON file. While this repository includes pre-generated output, you can run the script yourself if you need to parse a different version of the files or want the absolute latest data before this repository is updated.
- Python 3.3 or newer
- Source2Viewer (a tool for exploring Valve's VPK archives)
- Python modules:
vdf
- CS2: To get CS2's
items_game.txt
file, use Source2Viewer. Expand "[730] Counter-Strike 2 ..." and opengame/csgo/pak01_dir.vpk
. Navigate toscripts/items
and you should be able to seeitems_game.txt
file. Right-click it and select "Export as is" to theitems/
folder within this project. Rename the exported file tocs2_items.txt
. - CS:GO: Install the
csgo_legacy
beta on Steam. Then, browse CS:GO's local files and copycsgo/scripts/items/items_game.txt
to theitems/
folder within this project. Rename the copied file tocsgo_items.txt
.
- CS2: To get CS2's language file, use Source2Viewer. Expand "[730] Counter-Strike 2 ..." and open
game/csgo/pak01_dir.vpk
. Navigate toresource
and you should be able to seecsgo_<LANGUAGE>.txt
files. Right-click the one you want to use and select "Export as is" to thelang/
folder within this project. Rename the exported file tocs2_lang.txt
. - CS:GO: Install the
csgo_legacy
beta on Steam. Then, browse CS:GO's local files and copycsgo/resource/csgo_<LANGUAGE>.txt
to thelang/
folder within this project. Rename the copied file tocsgo_lang.txt
.
Output gets written to the output/
folder.
-
Install Dependencies:
pip install vdf==3.4 # Or, if you are in the project's root folder pip install -r requirements.txt
-
Run the Parser:
# Make sure you are in the project's root folder python main.py