正好有这个需求,查到的这个项目:
notscuffed/repkg
下面几张截图粗略演示方法:
打开Visual Studio编译RePKG项目,然后:
随便打开个terminal跑一下就行:
如果你高兴的话,甚至可以把这个路径加入环境变量:
setx /m PATH "%PATH%;新的路径"
Ps
复制
这条命令慎用,可能产生麻烦的后果
下面为项目README,项目遵循的是MIT协议:
Wallpaper engine PKG unpacker/TEX converter, written in C#.
PKG and TEX formats reverse engineered by me.
Feel free to report errors.
help "extract"
and help "info"
to see options for them-o, --output (Default: ./output) Output directory
-i, --ignoreexts Don't extract files with specified extensions (delimited by comma ",")
-e, --onlyexts Only extract files with specified extensions (delimited by comma ",")
-d, --debuginfo Print debug info while extracting/decompiling
-t, --tex Convert all TEX files into images from specified directory in input
-s, --singledir Should all extracted files be put in one directory instead of their entry path
-r, --recursive Recursive search in all subfolders of specified directory
-c, --copyproject Copy project.json and preview.jpg from beside PKG into output directory
-n, --usename Use name from project.json as project subfolder name instead of id
--no-tex-convert Don't convert TEX files into images while extracting PKG
--overwrite Overwrite all existing files
-s, --sort Sort entries a-z
-b, --sortby (Default: name) Sort by ... (available options: name, extension, size)
-t, --tex Dump info about all TEX files from specified directory
-p, --projectinfo Keys to dump from project.json (delimit using comma) (* for all)
-e, --printentries Print entries in packages
--title-filter Title filter
Simply extract PKG and convert TEX entries into images to output folder created in current directory
repkg extract E:\Games\steamapps\workshop\content\123\scene.pkg
Find PKG files in subfolders of specified directory and make wallpaper engine projects out of them in output directory
repkg extract -c E:\Games\steamapps\workshop\content\123
Find PKG files in subfolders of specified directory and only convert TEX entries to png then put them in ./output omitting their paths from PKG:
repkg extract -e tex -s -o ./output E:\Games\steamapps\workshop\content\123
Convert all TEX files to images from specific folder
repkg extract -t -s E:\path\to\dir\with\tex\files
本文作者:博主: gyrojeff 文章标题:[notscuffed/repkg] Wallpaper Engine内容提取工具
本文地址:https://cloud.tencent.com/developer/article/1827333
版权说明:若无注明,本文皆为“gyro永不抽风!”原创,转载请保留文章出处。
许可协议:署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 转载请保留原文链接及作者!
我的博客即将同步至腾讯云+社区,邀请大家一同入驻