这是一个旨在帮助整合包制作者解决药水 ID 冲突的模组。
为了实现这一目标,它会执行以下操作:
1. 使用 ASM 将药水数组扩展至 2048
1. 追踪所有添加到药水数组中的药水。
2. 找出所有冲突的 ID。
3. 找出所有可用的 ID。
4. 创建一个文本文件,列出所有冲突并为每个冲突建议一个空闲 ID。(请参阅剧透部分以获取示例输出)
Potion Id Sorter 发现了 5 个药水 ID 冲突。
第一个药水是被覆盖的那个。第二个是当前分配给该 ID 的药水。
本模组已经找到了所有可用的药水 ID 并为每个冲突分配了一个。只需将其中一个冲突的药水更改为配置文件中为该添加药水的模组所建议的 ID 即可。
药水按以下格式列出:
[药水 1 类名]:[药水 1 名称] --> [药水 2 类名]:[药水 2 名称]
未给出模组 ID,但应该很容易从类名中推断出模组。只需在类路径中寻找模组名称,例如 "am2.buffs.ArsMagicaPotion" = Ars Magica,"vazkii.botania.common.brew.potion.PotionSoulCross" = Botania,"com.emoniph.witchery.brewing.potions.PotionChilled" = Witchery 等。
冲突: vazkii.botania.common.brew.potion.PotionAllure:botania.potion.allure --> com.emoniph.witchery.brewing.potions.PotionChilled:witchery:potion.chilled at id: 95 将其中之一更改为 87
冲突: vazkii.botania.common.brew.potion.PotionBloodthirst:botania.potion.bloodthirst --> com.emoniph.witchery.brewing.potions.PotionBrewingExpertise:witchery:potion.brewingexpertise at id: 94 将其中之一更改为 89
冲突: vazkii.botania.common.brew.potion.PotionEmptiness:botania.potion.emptiness --> com.emoniph.witchery.brewing.potions.PotionAttractProjectiles:witchery:potion.attractprojectiles at id: 93 将其中之一更改为 69
冲突: vazkii.botania.common.brew.potion.PotionFeatherfeet:botania.potion.featherFeet --> com.emoniph.witchery.brewing.potions.PotionSunAllergy:witchery:potion.allergysun at id: 92 将其中之一更改为 39
冲突: vazkii.botania.common.brew.potion.PotionSoulCross:botania.potion.soulCross --> com.emoniph.witchery.brewing.potions.PotionDarknessAllergy:witchery:potion.allergydark at id: 91 将其中之一更改为 88
此文件生成在 config 文件夹中。
在您解决了所有冲突后,建议移除该模组(除非您需要超过 127 个药水 ID),因为用于将药水数组扩展到 127 以上的 ASM 会破坏与服务端原版服务器的兼容性。
安装方法:
- 备份您的世界!
- 从 ".minecraft/mods" 文件夹中删除任何旧版本的 PotionIDHelper 和 BrandonsCore.jar 文件。
- 安装 Minecraft Forge
- 下载并将 PotionIDHelper 和 BrandonsCore.jar 两个文件放入 ".minecraft/mods" 文件夹中。
依赖项:
本模组仍处于测试阶段,可能会存在问题。请在此处报告任何错误:
This is a mod designed to help mod pack makers resolve potion id conflicts.
To do this it dose the following:
1. Uses ASM to extend the potion array to 2048
1. Tracks all potions as they are added to the potions array.
2. Finds all conflicting id's.
3. Finds all available id's.
4. Creates a text file listing all of the conflicts and suggests a free id for each one. (See spoiler for an example output)
Potion Id Sorter has found 5 potion id conflicts.
The first potion is the one that has been overwritten. The second is the potion currently assigned to the id.
This mod has already found all of the available potion id's and assigned one to each conflict. Simply change one of the conflicting potions to the id suggested in the config for the mod that adds the potion.
Potions are listed as:
[Potion 1 Class]:[Potion 1 Name] --> [Potion 2 Class]:[Potion 2 Name]
The mod id is not given but it should be easy to figure out the mod from the class. Just look for the mod name in the class path e.g. "am2.buffs.ArsMagicaPotion" = Ars Magica, "vazkii.botania.common.brew.potion.PotionSoulCross" = Botania, "com.emoniph.witchery.brewing.potions.PotionChilled" = Witchery etc.
Conflict: vazkii.botania.common.brew.potion.PotionAllure:botania.potion.allure --> com.emoniph.witchery.brewing.potions.PotionChilled:witchery:potion.chilled at id: 95 Change one of these to 87
Conflict: vazkii.botania.common.brew.potion.PotionBloodthirst:botania.potion.bloodthirst --> com.emoniph.witchery.brewing.potions.PotionBrewingExpertise:witchery:potion.brewingexpertise at id: 94 Change one of these to 89
Conflict: vazkii.botania.common.brew.potion.PotionEmptiness:botania.potion.emptiness --> com.emoniph.witchery.brewing.potions.PotionAttractProjectiles:witchery:potion.attractprojectiles at id: 93 Change one of these to 69
Conflict: vazkii.botania.common.brew.potion.PotionFeatherfeet:botania.potion.featherFeet --> com.emoniph.witchery.brewing.potions.PotionSunAllergy:witchery:potion.allergysun at id: 92 Change one of these to 39
Conflict: vazkii.botania.common.brew.potion.PotionSoulCross:botania.potion.soulCross --> com.emoniph.witchery.brewing.potions.PotionDarknessAllergy:witchery:potion.allergydark at id: 91 Change one of these to 88
This file is generated in the config folder.
Once you have resolved all of the conflicts it is recommended that you remove the mod (Unless you need more then 127 potion id's) because the asm used to extend the potion array past 127 breaks compatibility with vanilla servers.
Installation:
- Backup your world!
- Delete any old versions of PotionIDHelper and BrandonsCore.jar files from your ".minecraft/mods" folder.
- Install Minecraft Forge
- Download and drop both PotionIDHelper and BrandonsCore.jar files into your ".minecraft/mods" folder.
Requires:
This mod is still in beta and will likely have issues. Please report any bugs here:
评论 0
登录后参与评分
还没有评论,来抢沙发吧