你好我是 发表于 2025-2-25 02:24:36

想添加科技效果但出了问题

想添加科技效果但出了问题

由于世界时代MOD最近一次更新让不少原本可共用的MOD失效
决定便宜行事直接将一些卡牌效果整到市场科技中
于是先添加如下
<techtreemods>

    <Tech name ='HCXPWindRunner'>
           <Effects>
                  <Effect mergeMode='remove' type="Data" amount="1.10" subtype="MaximumVelocity" relativity="BasePercent">
                       <Target type ='ProtoUnit'>AbstractInfantry</Target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="1.50" subtype="MaximumVelocity" relativity="BasePercent">
                       <Target type ='ProtoUnit'>AbstractInfantry</Target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="1.50" subtype="MaximumVelocity" relativity="BasePercent">
                       <Target type ='ProtoUnit'>AbstractCavalry</Target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="1.50" subtype="MaximumVelocity" relativity="BasePercent">
                       <Target type ='ProtoUnit'>AbstractLightInfantry</Target>
                  </Effect>
           </Effects>
    </Tech>

    <Tech name ='HuntingDogs'>
           <Effects>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">FishingBoat</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">FishingBoat</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">deFishingBoatAfrican</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">deFishingBoatAfrican</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" action="Gather" amount="1.25" subtype="WorkRate" unittype="AbstractFish" relativity="BasePercent">
                  <target type="ProtoUnit">AbstractFishingBoat</target>
                  </Effect>
           </Effects>
    </Tech>

    <Tech name ='ypMarketHuntingDogs'>
           <Effects>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">FishingBoat</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">FishingBoat</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">ypFishingBoatAsian</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">ypFishingBoatAsian</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">deFishingBoatAfrican</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">deFishingBoatAfrican</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" action="Gather" amount="1.25" subtype="WorkRate" unittype="AbstractFish" relativity="BasePercent">
                  <target type="ProtoUnit">AbstractFishingBoat</target>
                  </Effect>
           </Effects>
    </Tech>

    <Tech name ='InuitHuntingDogs'>
           <Effects>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">FishingBoat</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">FishingBoat</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">ypFishingBoatAsian</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">ypFishingBoatAsian</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">deFishingBoatAfrican</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">deFishingBoatAfrican</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" action="Gather" amount="1.25" subtype="WorkRate" unittype="AbstractFish" relativity="BasePercent">
                  <target type="ProtoUnit">AbstractFishingBoat</target>
                  </Effect>
           </Effects>
    </Tech>

    <Tech name ='TupiHuntingDogs'>
           <Effects>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">FishingBoat</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">FishingBoat</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">ypFishingBoatAsian</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">ypFishingBoatAsian</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">deFishingBoatAfrican</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">deFishingBoatAfrican</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" action="Gather" amount="1.25" subtype="WorkRate" unittype="AbstractFish" relativity="BasePercent">
                  <target type="ProtoUnit">AbstractFishingBoat</target>
                  </Effect>
           </Effects>
    </Tech>

    <Tech name ='LatinHuntingDogs'>
           <Effects>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">FishingBoat</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">FishingBoat</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">ypFishingBoatAsian</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">ypFishingBoatAsian</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">deFishingBoatAfrican</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">deFishingBoatAfrican</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" action="Gather" amount="1.25" subtype="WorkRate" unittype="AbstractFish" relativity="BasePercent">
                  <target type="ProtoUnit">AbstractFishingBoat</target>
                  </Effect>
           </Effects>
    </Tech>

    <Tech name ='Switchblades'>
           <Effects>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">FishingBoat</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">FishingBoat</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">ypFishingBoatAsian</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">ypFishingBoatAsian</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="-20.00" subtype="Cost" resource="Wood" relativity="Absolute">
                  <target type="ProtoUnit">deFishingBoatAfrican</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" amount="0.70" subtype="TrainPoints" relativity="BasePercent">
                  <target type="ProtoUnit">deFishingBoatAfrican</target>
                  </Effect>
                  <Effect mergeMode='add' type="Data" action="Gather" amount="1.25" subtype="WorkRate" unittype="AbstractFish" relativity="BasePercent">
                  <target type="ProtoUnit">AbstractFishingBoat</target>
                  </Effect>
           </Effects>
    </Tech>

</techtreemods>
到这裡都是成功的,但接着将捕鲸速度
                  <Effect mergeMode='add' type="Data" action="Gather" amount="1.20" subtype="WorkRate" unittype="AbstractWhale" relativity="BasePercent">
                  <target type="ProtoUnit">AbstractFishingBoat</target
                  </Effect>
也加进去后就失效了
此外加入如伐木速度之类的也都无效
请问有没有大老能协助看问题出在哪?谢谢

补充内容 (2025-2-25 15:59):
已解決,只是少了個>

こはね 发表于 2025-2-25 22:09:42

{:4_89:}少了个>不会报错吗,理应整个文件失效才对

你好我是 发表于 2025-2-28 17:22:02

こはね 发表于 2025-2-25 22:09
少了个>不会报错吗,理应整个文件失效才对

报错倒没有,只是进入游戏后所有修改均未生效
页: [1]
查看完整版本: 想添加科技效果但出了问题