You are viewing a potentially older version of this package. View all versions.
RedDragon-TextureSwap-1.2.0 icon

TextureSwap

运行时替换已加载的立绘贴图 / Replaces loaded character textures at runtime.

Date uploaded 3 weeks ago
Version 1.2.0
Download link RedDragon-TextureSwap-1.2.0.zip
Downloads 55
Dependency string RedDragon-TextureSwap-1.2.0

This mod requires the following mods to function

BepInEx-BepInExPack_IL2CPP-6.0.788 icon
BepInEx-BepInExPack_IL2CPP

BepInEx pack for IL2CPP x64 Unity games. Preconfigured and ready to use.

Preferred version: 6.0.788

README

InFalsusTextureSwap

更换游戏的看板立绘,运行时替换,不改游戏文件。

Replaces the game's character illustrations at runtime without modifying game files.

安装(r2modman / Gale)

  1. 启动游戏,让 BepInEx 生成插件目录。

  2. 在 r2modman / Gale 里用 Browse profile folder / 打开配置目录 打开当前 profile。

  3. 进入:

    BepInEx/plugins/InFalsusTextureSwap/
    
  4. 把 InFalsusTextureSwap.txt 和你的 .dxt5 / .bc7 数据文件放进这个目录,和 DLL 同级。

  5. 重启游戏。

手动安装同理:DLL、配置和数据文件都放 BepInEx/plugins/InFalsusTextureSwap/。

写配置

InFalsusTextureSwap.txt,一行一条 贴图名 = 数据文件:

Nia_UIcharacterillust = aaa.dxt5

贴图名字:

Nia_UIcharacterillust
Mei_UIcharacterillust
Ayame_UIcharacterillust
Iris_UI_characterillust
Story_UIcharacterillust

注意 Iris 多一个下划线:Iris_UI_characterillust。

  • 数据文件后缀决定格式:.dxt5、.bc7、.rgba(RGBA32)。
  • 数据必须和目标贴图的格式、尺寸一致。

压图

使用仓库下 TextureSwap/ 目录里的脚本或 release 里的 TextureSwap-Tools:

Nia / Mei(DXT5,2048×2048)

png_to_dxt5.exe 我的图.png

Ayame / Iris / Story(BC7,4096×4096)

png_to_bc7.exe 我的图.png

exe 版不需要 Python;用仓库里的 .py 版才需要 Python + Pillow。BC7 需要同目录的 texconv.exe

制作立绘

使用该仓库或在社交平台找我获取原立绘:

  1. 把要改的立绘原图拉伸成 4:5。
  2. 在绘图软件里把原图放下层做参考,上层放你的立绘并调整。
  3. 导出后再压成 1:1。

详细步骤见仓库的 TextureSwap/README.md。

说明

  • r2 / Thunderstore 包只包含 BepInEx 版。MelonLoader 版在 GitHub Release 的 melonloader/ 里,放进 Mods/。
  • 只支持 DXT5、BC7、RGBA32 目标;CopyTexture 要求源和目标在同一格式组。

CHANGELOG

更新记录 / Changelog

1.3.0

  • 支持热重载
  • 优化替换逻辑:场景载入 / 文件变化时替换材质 _MainTex
  • 修复问题
  • Supports hot reload
  • Optimized replacement logic: replace material _MainTex when scene loads / file changes
  • Fixed issues

1.2.0

  • 修复bc7没关掉发光层的问题
  • Fix the issue where bc7 didn't turn off the glow layer.

1.1.0

  • 增加 BepInEx 6 IL2CPP 构建。
  • Added a BepInEx 6 IL2CPP build.