之前说过添加新单位、新建筑都会没声音,解决办法与这个类似。
这个教程是复制山羊(调用名是ypGoat)的_snds.xml文件给肥羊(调用名是ypGoatFat)添加语音,这个单位原本就有(中国“大迁徙”卡片运送),不过没有添加_snds.xml文件定义语音,所以就没有语音。
方法:
1.用AOE3ED在游戏目录\Sound\SoundXML3.bar搜索ypgoat
2.将提取出来的文件转换格式,并且重命名为ypGoatFat_snds.xml
3.打开ypGoatFat_snds.xml,将<protounit name="ypGoat">改成<protounit name="ypGoatFat">
4.保存。放到游戏目录\sound文件夹里面(至于要不要转回xmb格式就随便)。
<?xml version="1.0" encoding="utf-8"?> <protounitsounddef> <protounit name="KafuuChino"> <soundtype name="Select"> <soundset name="KafuuChinoSelect"/> </soundtype> <soundtype name="Grunt"> <soundset name="KafuuChinoGrunt"/> </soundtype> <soundtype name="Death"> <soundset name="KafuuChinoDeath"/> </soundtype> <soundtype name="Creation"> <soundset name="KafuuChinoRevived"/> </soundtype> <soundtype name="Acknowledge"> <targetlogic> <choice name="default"> <soundset name="KafuuChinoAcknowledge"/> </choice> <choice name="Gaia"> <soundset name="KafuuChinoAcknowledge2"/> </choice> <choice name="Tree"> <soundset name="KafuuChinoAcknowledge2"/> </choice> <choice name="enemy"> <soundset name="KafuuChinoAttack"/> </choice> <choice name="Huntable"> <soundset name="KafuuChinoAcknowledge2"/> </choice> </targetlogic> </soundtype> <soundtype name="KnockOut"> <soundset name="KafuuChinoDisabled"/> </soundtype> <soundtype name="KnockOutRevived"> <soundset name="KafuuChinoRevived2"/> </soundtype> <soundtype name="Ransomed"> <soundset name="KafuuChinoRevived2"/> </soundtype> <soundtype name="Claim"> <soundset name="KafuuChinoClaim"/> </soundtype> </protounit> </protounitsounddef>
<soundset name="KafuuChinoRevived" volume="1.0000" maxnum="2" distance="1.0000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[98].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[97].wav" volume="1.0000"/> </soundset> <soundset name="KafuuChinoAttack" volume="1.0000" maxnum="5" distance="0.1000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[105].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[107].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[108].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[109].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[115].wav" volume="1.0000"/> </soundset> <soundset name="KafuuChinoSelect" volume="1.0000" maxnum="1" distance="1.0000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[39].wav" volume="1.0000"/> </soundset> <soundset name="KafuuChinoAcknowledge" volume="1.0000" maxnum="3" distance="1.0000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[20].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[115].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[20].wav" volume="1.0000"/> </soundset> <soundset name="KafuuChinoAcknowledge2" volume="1.0000" maxnum="3" distance="0.5000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[20].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[18].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[115].wav" volume="1.0000"/> </soundset> <soundset name="KafuuChinoRevived2" volume="1.0000" maxnum="2" distance="1.0000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[2].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[42].wav" volume="1.0000"/> </soundset> <soundset name="KafuuChinoDisabled" volume="1.0000" maxnum="3" distance="1.0000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[122].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[123].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[127].wav" volume="1.0000"/> </soundset> <soundset name="KafuuChinoGrunt" volume="1.0000" maxnum="4" distance="1.0000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[118].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[119].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[120].wav" volume="1.0000"/>volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino_Magician5_A[3].wav" volume="1.0000"/> </soundset> <soundset name="KafuuChinoHeal" volume="1.0000" maxnum="1" distance="1.0000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[115].wav" volume="1.0000"/> </soundset> <soundset name="KafuuChinoClaim" volume="1.0000" maxnum="3" distance="1.0000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[25].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[124].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[125].wav" volume="1.0000"/> </soundset> <soundset name="KafuuChinoWin" volume="1.0000" maxnum="3" distance="1.0000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[25].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[124].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[125].wav" volume="1.0000"/> </soundset> <soundset name="KafuuChinoAttackPower" volume="1.0000" maxnum="1" distance="1.0000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[106].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[117].wav" volume="1.0000"/> </soundset> <soundset name="KafuuChinoBattle" volume="1.0000" maxnum="10" distance="1.0000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[98].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[101].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[102].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[103].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[104].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[106].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[130].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[130].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[130].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[130].wav" volume="1.0000"/> </soundset> <soundset name="KafuuChinoBattle2" volume="1.0000" maxnum="5" distance="1.0000"> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[101].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[102].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[130].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[130].wav" volume="1.0000"/> <sound filename="Is the order a rabbit\kafuuchino\Voice_Gochiusa_Chino[130].wav" volume="1.0000"/> </soundset>