翔鹰帝国网|帝国时代论坛|帝国时代系列|神话时代
 找回密码
 注册翔鹰会员(昵称)
搜索
查看: 2953|回复: 5

【Mod大利好】帝国时代3决定版现已支持整合式加载模组文件

[复制链接]

352

主题

57

精华

35万

积分

教皇

帝國榮譽元帥

耕战
64323
鹰币
97876
天龙币
0
回帖
200

翔鹰建站十周年纪念章翔鹰十周年帝国Online纪念章特级帝国勋章特级嘉禾勋章特级皇家勋章蛟龙勋章十字军勋章智将勋章

附庸关系0
 楼主| 发表于 2022-6-10 09:22:36 | 显示全部楼层 |阅读模式
官网:https://support.ageofempires.com/hc/en-us/articles/360062106732-Additive-Data-Mods

简而言之,modder无须每次游戏更新后重新复制修改一整串xml文件了!微软终于做了点人事……

在Data路径内按下表规则命名模组文件『*mods.xml』并定义同名xml根节点元素『<*mods></*mods>』。
除字符串模组外,每个xml数据节点均可指定四种 mergeMode(整合模式)属性之一:modify, add, remove, replace(修改、增加、移除、替换),对原始数据集的对应节点进行操作。如不指定,默认为若存在则修改,不存在则增加。


Base fileMod fileRoot node name
protoy.xmlprotomods.xml<protomods>
techtreey.xmltechtreemods.xml<techtreemods>
civs.xmlcivmods.xml<civmods>
politiciandata.xmlpoliticianmods.xml<politicianmods>
nuggets.xmlnuggetmods.xml<nuggetmods>
protounitcommands.xmlprotounitcommandmods.xml<protounitcommandmods>
cultures.xmlculturemods.xml<culturemods>
maptypes.xmlmaptypemods.xml<maptypemods>
mapspecifictechs.xmlmapspecifictechmods.xml<mapspecifictechmods>
attacktime.xmlattacktimemods.xml<attacktimemods>
abilities\abilities.xmlabilities\abilitymods.xml<abilitymods>
abilities\powers.xmlabilities\powermods.xml<powermods>
randomnames.xmlrandomnamemods.xml<randomnamemods>
strings\<language>\*.xmlstrings\<language>\stringmods.xml<stringmods>
economymode.xmleconomymodemods.xml<economymodemods>
personalities.xmlpersonalitiesmods.xml<personalitiesmods>
homecity<civ>.xmlhomecity<civ>.mods.xml<homecitymods>
tactics\<type>.tacticstactics\<type>.mods.tactics<tacticsmods>
uitechtree\techtreedata_<civ>.xmluitechtree\techtreedata_<civ>.mods.xml<uitechtreemods>


示例:

protomods.xml
  1. <protomods>
  2.     <!-- remove a proto unit -->
  3.     <Unit mergeMode='remove' name='PropsPottedPlants'/>
  4.     <!-- modify a proto unit (add a new flag) -->
  5.     <Unit name='PropsPoles'>
  6.         <Flag>NotPlayerPlaceable</Flag>
  7.     </Unit>
  8.     <!-- modify a proto unit (add a Train and remove an existing Train) -->
  9.     <Unit name='Manor'>
  10.         <Train row='0' page='1' column='2'>Longbowman</Train>
  11.         <Train mergeMode='remove'>xpColonialMilitia</Train>
  12.     </Unit>
  13.     <!-- replace a proto unit -->
  14.     <Unit mergeMode='replace' id="1797" name='deIconUSCowboy'>
  15.         <DBID>2372</DBID>
  16.         <Icon>resources\art\units\spc\outlaws\cowboy_icon2.png</Icon>
  17.         <PortraitIcon>resources\art\units\spc\outlaws\cowboy_portrait2.png</PortraitIcon>
  18.     </Unit>
  19.     <!-- add a proto unit -->
  20.     <Unit name='MyNewProtoUnit'>
  21.         <DBID>2400</DBID>
  22.         <!-- ... proto unit data ... -->
  23.     </Unit>
  24. </protomods>
复制代码

techtreemods.xml
  1. <techtreemods>
  2.      <!-- modify a tech (add effect - enable Pikeman for the Russians) -->
  3.      <Tech name ='Age0Russian'>
  4.         <Effects>
  5.             <Effect mergeMode='add' type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
  6.                 <Target type ='ProtoUnit'>Pikeman</Target>
  7.             </Effect>
  8.         </Effects>
  9.     </Tech>
  10.     <!-- modify a tech (modify an effect by adding and removing - Sacred Cows now cost 10 food instead of 125
  11. food) -->
  12.     <Tech name ='ypAge0IndiansSpecialTechs'>
  13.         <Effects>
  14.             <Effect mergeMode='remove' type ='Data' amount ='45.00' subtype ='Cost' resource ='Food' relativity
  15. ='Absolute'>
  16.                 <Target type ='ProtoUnit'>ypSacredCow</Target>
  17.             </Effect>
  18.             <Effect mergeMode='add' type ='Data' amount ='-70.00' subtype ='Cost' resource ='Food' relativity
  19. ='Absolute'>
  20.                 <Target type ='ProtoUnit'>ypSacredCow</Target>
  21.             </Effect>
  22.         </Effects>
  23.     </Tech>
  24. </techtreemods>
复制代码

stringmods.xml
  1. <stringmods>
  2.    <StringTable>
  3.       <Language name='English'>
  4.          <!-- change the text of the Continue button on the Main Menu -->
  5.          <String _locID='20038'>ModContinue</String>
  6.       </Language>
  7.    </StringTable>
  8. </stringmods>
复制代码









Authenticated by YTY Tech ®, Clm0081 Inc.®, and Snowstar Labs ®;

鈦星伺服器禪宗組
忠正尚武特殊警备战空输司令部
GL帝国生死以,岂因HF避趋之。
回复

使用道具 举报

0

主题

0

精华

92

积分

骑士

耕战
11
鹰币
9099
天龙币
0
回帖
10
附庸关系0
发表于 2022-6-22 13:04:11 | 显示全部楼层
泪目,耽误了多少好Mod……
回复

使用道具 举报

0

主题

0

精华

6

积分

扈从

耕战
0
鹰币
30
天龙币
0
回帖
6
附庸关系0
发表于 2022-10-28 18:45:02 | 显示全部楼层
没有视频教学   根本看不懂
回复

使用道具 举报

0

主题

0

精华

1

积分

扈从

耕战
0
鹰币
10
天龙币
0
回帖
2
附庸关系0
发表于 2023-7-1 09:09:02 | 显示全部楼层
牛的!
回复

使用道具 举报

0

主题

0

精华

1

积分

扈从

耕战
0
鹰币
10
天龙币
0
回帖
2
附庸关系0
发表于 2023-11-13 09:54:42 | 显示全部楼层
有没有傻瓜版
回复

使用道具 举报

0

主题

0

精华

0

积分

扈从

耕战
0
鹰币
10
天龙币
0
回帖
2
附庸关系0
发表于 2024-4-3 00:58:12 | 显示全部楼层
有没有汉化版的编辑器
回复

使用道具 举报

本版积分规则

排行榜|小黑屋|翔鹰帝国

GMT+8, 2024-4-26 04:23 , Processed in 0.147156 second(s), 80 queries , File On.

Powered by Hawk Studio  QS Security Corp.® Licensed

Copyright © 2001-2023, Hawkaoe.net All Rights Reserved

快速回复 返回顶部 返回列表