贴图提取器:https://github.com/123456abcdef/cr-sc-dump#
下载完压缩包后在此文件夹根目录执行 cmd
下载 python 依赖库, 在控制台输入或粘贴:
pip install -r requirements.txt
下载完成后,可以输入转换代码进行转换 png,也可通过以下 python 代码进行批量转换,这样更方便,可以将此代码给 ai 优化一下格式:
import os import subprocess sctx_folder = "in_sctx_files" output_folder = "out-png" for folder in [sctx_folder, output_folder]: if not os.path.exists(folder): os.makedirs(folder) sctx_files = [f for f in os.listdir(sctx_folder) if f.endswith(".sctx")] if not sctx_files: exit() for file in sctx_files: sctx_path = os.path.join(sctx_folder, file) file_base = os.path.splitext(file)[0] output_path = os.path.join(output_folder, f"{file_base}.png") try: subprocess.run( ["python", "dumpsc.py", sctx_path, "-o", output_folder], check=True, text=True, capture_output=True ) except subprocess.CalledProcessError as e: print(f"Error processing {file}: {e.stderr}") except Exception as e: print(f"Error: {e}")