鸣潮vv2.1.12026年10月10日 更新

受伤效果移除工具 v2.1.1

从 v2.1 起,Kuro 在游戏设置中加入了受伤效果开关,可在游戏内统一关闭,因此无需担心 Mod 受影响,也不再需要这个 Python 脚本。有些 Mod 作者(例如 CaveRabbit)为受伤效果做了额外优化,我也想使用这些出色的 Mod,所以不能关闭游戏设置中的该选项。因此,我仍会维护这个 Python 脚本,用于修复作者未原生支持受伤效果的 Mod。警告:此工具……

From v2.1, Kuro added Injured Effect Toggle in Game Setting. You can universally turn this off in game so you don't need to worry about mod breaks and don't need this python script. 

As some mod authors put extra effort to support nice injured effect like CaveRabbit, and I want to use these awesome mods so I can't turn the above game setting off. For this reason, I still maintain this python script to fix the mods that do not support injured effect natively from the authors.

WARNING:

  • This tool modifies mod.ini files. Make sure to create a backup of your mods before using it.
  • It is recommended to test with a small set of mods first, and never run this tool or any script in the top-level folder (such as the program files folder). Only run it in your mod folder.
  • If you need to undo the changes, use the injured_remover_reverter.py script to restore the files.

Important Information - Please Read Before Using:

Script 1: injured_remover.py

This script performs the following actions:

  1. Collects all non-disabled .ini files in the mod folder.
  2. Loops through each file to check if any existing injured hashes are present. If an injured hash is found, it assumes the mod author has already implemented the injured effect and skips the file. (see screenshot 2)
  3. Identifies all blocks with hashes that have corresponding injured hashes.
  4. Creates a backup of the .ini file before making any modifications.
  5. Copies the identified blocks, renames them by appending _Injured at the end, and replaces the hashes with the corresponding injured hashes.
  6. Appends these new blocks at the bottom of the file for easy management.

Result: The only modifications made to the mod.ini file will appear at the very bottom (see screenshot 1).

Script 2: injured_remover_reverter.py

This script restores the original state of the modified mod.ini files by replacing them with the previously created backups.


Important Usage Notes:

  • Compatibility with Mod Managers: If you're using mod managers such as InGameModManager or Namspace Merger, they are compatible with this tool. However, you must revert the changes in the Last In, First Out (LIFO) order, for example:

    • If you applied the mod manager first and then used injured_remover.py, revert in the following order: revert Injured Remover then revert Mod Manager
    • If you applied injured_remover.py first and then the mod manager, revert in the following order: revert Mod Manager then revert Injured Remover

Limitations:

  • You need to install Python to run the script (no executable is provided to avoid false antivirus alerts and to allow users to inspect the script for transparency).
  • This tool removes all injured effects, regardless of whether the mod author modified the injured textures or not.
    • For example, some mod authors may not have altered face textures, and keeping the default injured effect would be fine & cool. However, since the script cannot detect whether a specific texture was modified, all injured effects will be removed.

Installation Instructions:

1/ Download & install Python https://www.python.org/downloads/windows/ 2/ Put the python scripts injured_remover.py and injured_remover_reverter.py into a folder together with the mods' folders you want to fix. Let's say it is folderA. 3/ Execute python script - there are 2 methods:

  1. Open the folderA in File Explorer, then type cmd into the location/path field (screenshot 3). This will open terminal (cmd) with the FolderA directly, no need to change the path to this folder. Then on the terminal (cmd), type python injured_remover.py or python injured_remover_reverter.py depending on your need.
  2. If method 1 doesn't work for you due to certain windows config. Then open folderA in File Explorer and copy the text on the location/path field (screenshot 4). Then press Startbutton, type cmd and enter to open terminal (cmd). Then follow the steps in screenshot 5.

Non-supported Characters

This version supports all characters except the ones listed below (support for them will be added soon)

  • None

Special Thanks

A heartfelt thanks to the following individuals for their invaluable contributions:

  • SpectrumQT – For creating the incredible tools such as WWMI, XXMI, the tool that gathers the injured hashes and their corresponding normal hashes, etc; and for the valuable advice he is always willing to share. Without him, there would be no XXMI, and the amazing modding picture we enjoy today might not even exist, or at least not to the extent we have now. Huge respect to him!
  • CaveRabbit – For providing valuable feedback and insightful advice.
  • Heng - For encouraging me to post this tool although he has been working on the equivalent tool. (sorry can't add Heng to special thanks on GameBanana section since idk his gamebanana username, talked to him on discord)
  • Agulag, K.dog, vonbolt, and other people on Discord - For helping me with different things like getting the data, testing the tool, etc.
  • All of the users for using, reporting, giving feedback & saying kind words to me.

This is truly my joy and a great pleasure to see this tool being used by some of the mod authors—especially my favorite ones—whom I’ve always wished I could support beyond just financially through platforms like Patreon, Ko-fi, Fanbox**,** and others.

I sincerely hope this community continues to grow stronger and stronger with all of you, the great people, around.


Feedback and bug reports are always welcome! If you encounter any issues, please share them in the comment section. I'll do my best to provide support as soon as I can.

来源与文件

当前文件

  • injuredremover_v211.zip(ID:1388550),3474 字节
  • GameBanana 项目版本:v2.1.1

来源贡献名单

  • Contributors
    • SpectrumQT:Data Provider & Advisor
  • Special Thanks
    • caverabbit:Advisor

前往 GameBanana 原作品页面。安装与下载要求以原作者及平台说明为准。

<!-- aoe-mods-source:gamebanana:20357:mod:570711 -->

下载模块

共 1 个来源
立即下载推荐来源
前往下载