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

TextureSwap

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

Date uploaded 3 weeks ago
Version 1.1.0
Download link RedDragon-TextureSwap-1.1.0.zip
Downloads 34
Dependency string RedDragon-TextureSwap-1.1.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

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

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

安装

  1. 让 BepInEx 生成插件目录。

  2. 用 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

压图

用仓库 TextureSwap/ 目录里的脚本(本包不包含):

Nia / Mei(DXT5,2048×2048)

python png_to_dxt5.py 我的图.png

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

python png_to_bc7.py 我的图.png

运行需要 Python + Pillow。BC7 需要同目录的 texconv.exe

制作立绘

仓库原图 文件夹里有 5 张原立绘:

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

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

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.