interface DecompilerArgs {
    all?: boolean;
    block?: string;
    debug?: boolean;
    decompile?: boolean;
    gltfAnimationList?: string;
    gltfExportAnimations?: boolean;
    gltfExportExtras?: boolean;
    gltfExportFormat?: "gltf" | "glb";
    gltfExportMaterials?: boolean;
    gltfTexturesAdapt?: boolean;
    input?: string;
    output?: string;
    recursive?: boolean;
    recursiveVpk?: boolean;
    textureDecodeFlags?: string;
    toolsAssetInfoShort?: boolean;
    vpkCache?: boolean;
    vpkDecompile?: boolean;
    vpkDir?: boolean;
    vpkExtensions?: string;
    vpkFilepath?: string;
    vpkList?: boolean;
    vpkVerify?: boolean;
}

Properties

all?: boolean

Print the content of each resource block in the file.

Can be specified using --all or -a.

block?: string

Print the content of a specific block, example: DATA, RERL, REDI, NTRO.

Can be specified using --block or -b.

debug?: boolean

Print debug information.

decompile?: boolean

Decompile supported resource files. Alias of vpkDecompile.

Can be specified using --decompile.

gltfAnimationList?: string

Can be specified using --gltf_animation_list.

gltfExportAnimations?: boolean

Can be specified using --gltf_export_animations.

gltfExportExtras?: boolean

Export additional Mesh properties into glTF extras.

Can be specified using --gltf_export_extras.

gltfExportFormat?: "gltf" | "glb"

Exports meshes/models in given glTF format. Must be either 'gltf' (default) or 'glb'.

Can be specified using --gltf_export_format.

gltfExportMaterials?: boolean

Whether to export materials during glTF exports.

Can be specified using --gltf_export_materials.

gltfTexturesAdapt?: boolean

Whether to perform any glTF spec adaptations on textures (e.g. split metallic map).

Can be specified using --gltf_textures_adapt.

input?: string

Input file to be processed. With no additional arguments, a summary of the input(s) will be displayed.

Can be specified using --input or -i.

output?: string

Output path to write to. If input is a folder (or a VPK), this should be a folder.

Can be specified using --output or -o.

recursive?: boolean

If specified and given input is a folder, all subdirectories will be scanned too.

Can be specified using --recursive.

recursiveVpk?: boolean

If specified along with --recursive, will also recurse into VPK archives.

Can be specified using --recursive_vpk.

textureDecodeFlags?: string

Can be specified using --texture_decode_flags.

toolsAssetInfoShort?: boolean

Whether to print only file paths for tools_asset_info files.

Can be specified using --tools_asset_info_short.

vpkCache?: boolean

Use cached VPK manifest to keep track of updates. Only changed files will be written to disk.

Can be specified using --vpk_cache.

vpkDecompile?: boolean

Decompile supported resource files.

Can be specified using --vpk_decompile or -d.

vpkDir?: boolean

Print a list of files in given VPK and information about them.

Can be specified using --vpk_dir.

vpkExtensions?: string

File extension(s) filter, example: "vcss_c,vjs_c,vxml_c".

Can be specified using --vpk_extensions or -e.

vpkFilepath?: string

File path filter, example: "panorama" or "scripts/items/items_game.txt".

Can be specified using --vpk_filepath or -f.

vpkList?: boolean

Lists all resources in given VPK. File extension and path filters apply.

Can be specified using --vpk_list or -l.

vpkVerify?: boolean

Verify checksums and signatures.

Can be specified using --vpk_verify.