francisdb / vpxtool

Terminal based frontend and utilities for Visual Pinball
Apache License 2.0
17 stars 4 forks source link

Feature request: Ability to extract individual files from a .vpx file #305

Open jueank opened 4 months ago

jueank commented 4 months ago

As an example, I would like to extract only the gamedata.json. This could also be implemented in a way to omit all large files (images, sound and potentially gameitems folders) and only extract everything else (say: the files in the base folder of the extracted table, which are typically small in size). Or alternatively allow wildcards to specify what to extract.

francisdb commented 4 months ago

With the idea to later import only those files?

jueank commented 4 months ago

This is the more generic approach to retrieving individual json attributes from a specific file. I figured, extracting a subset of files or a single file from a .vpx file is a useful functionality for vpxtool in general. Especially if someone is not interested in the many large files (images, sound, ...) but rather wants to read the text based (json) files or want to modify it and store it back later. Not sure though, what your idea of vpxtool is in general and how this feature request matches. For me, thinking of vpxtool as the Swiss Army knife of the vpx file format, this sounds like a good fit.