wcc_lite is part of the official MODkit and is a utility for packing/cooking and unpacking/uncooking Witcher 3 game files. The following is taken from the MODkit documentation (download here)
Uncooking Game[]
wcc_lite uncook -indir=<game_path>\content -outdir=<dirpath>\Uncooked -imgfmt=png
Usage[]
uncook indir=<dirpath> outdir=<dirpath> [options]
- indir
- Path to the bundled directory.
- outdir
- Path to the unbundled directory.
NOTE: If any of paths contain spaces put in quotations
Options[]
- -skiperrors
- Upon failure, skips to the next file.
- -targetdir=<dirpath>
- Relative inner path to be extracted
- -unbundleonly
- Unbundles data without uncooking it
- -uncookonly
- Assumes data in unbundled dir is unbundled already
- -uncookext=<...>
- Comma delimited list of file extensions to uncook. If options missing will uncook all available.
- Example: extensions=xbm,w2mesh
- -imgfmt=<imgopt>
- Image format for XBM files. Choose one of bmp, png, jpg, or tga. Default is tga.
Exporting Assets[]
wcc_lite export -depot=<dirpath> \Uncooked -file=<filepath> -out=<filepath>
Usage[]
- depot=local
- Use local depot (r4data)
- depot=absolutepath
- Use depot at given directory
- file=relativepath
- Local (depot) path for the file to export
- out=absolutepath
- Output absolute path for the exported file
Supported resource types and formats[]
w2mesh
(Mesh) exportable into 1 file format(s):fbx
: Autodesk FBX
xbm
(2D Texture) exportable into 5 file format(s):dds
: DirectDraw Surfacebmp
: Windows Bitmapjpg
: Joint Photographics Experts Grouptga
: Truevision Targapng
: Portable Network Graphics
Importing Assets[]
call wcc_lite import -depot=<dirpath>\Uncooked -file=<filepath> -out=<filepath>
Usage[]
- depot=local
- Use local depot (r4data)
- depot=absolutepath
- Use depot at given directory
- file=inputfile
- Absolute path to file to import
- out=outputfile
- Relative (depot) path for the output file
Cooking Mod[]
wcc_lite cook -platform=pc -mod=<mod_dirpath>\Uncooked -basedir=<dirpath>\Uncooked -outdir=<dirpath>\Cooked
Building texture.cache[]
wcc_lite buildcache textures -basedir=<dirpath>\Uncooked -platform=pc -db=<dirpath>\Cooked\cook.db -out=<dirpath>\Packed\modXXX\content \texture.cache
Packing Mod into Bundles[]
wcc_lite pack -dir= <dirpath> \Cooked -outdir= <dirpath> \Packed\modXXX\content
Generating Mod metadata.store file[]
wcc_lite metadatastore -path= <dirpath> \Packed\modXXX\content
Generating File List[]
wcc_lite dumpbundleinfo -indir="<game_path>\content" -outfile="<file_path>"