Administrator
Administrator
发布于 2026-09-12 / 3 阅读
1
0

Wallpaper Engine PKG提取器/TEX转图像转换器

项目地址:https://github.com/notscuffed/repkg

stars:3.7k⭐

重新打包

用 C# 编写的 Wallpaper Engine PKG 解包器/TEX 转换器。

PKG 和 TEX 格式由我逆向工程。

欢迎报告错误。

特征

  • 提取 PKG 文件

  • 将 PKG 文件转换为壁纸引擎项目

  • 将 TEX 转换为图像

  • 转储 PKG/TEX 信息

命令

  • help - 显示这些命令,使用help "extract"和help "info"查看它们的选项

  • 提取 - 提取指定的 PKG/TEX 文件或文件夹中的文件

-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
  • 信息 - 转储 PKG/TEX 信息

-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

示例

只需解压 PKG 文件,并将 TEX 条目转换为图像,然后输出到当前目录下创建的文件夹中即可。

repkg extract E:\Games\steamapps\workshop\content\123\scene.pkg

在指定目录的子文件夹中查找 PKG 文件,并将它们创建为输出目录中的壁纸引擎项目。

repkg extract -c E:\Games\steamapps\workshop\content\123

查找指定目录子文件夹中的 PKG 文件,仅将 TEX 条目转换为 png 格式,然后将其放入 ./output 目录,并省略 PKG 文件中的路径:

repkg extract -e tex -s -o ./output E:\Games\steamapps\workshop\content\123

将指定文件夹中的所有 TEX 文件转换为图像

repkg extract -t -s E:\path\to\dir\with\tex\files



评论