【Mod大利好】帝国时代3决定版现已支持整合式加载模组文件
官网: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
<protomods>
<!-- remove a proto unit -->
<Unit mergeMode='remove' name='PropsPottedPlants'/>
<!-- modify a proto unit (add a new flag) -->
<Unit name='PropsPoles'>
<Flag>NotPlayerPlaceable</Flag>
</Unit>
<!-- modify a proto unit (add a Train and remove an existing Train) -->
<Unit name='Manor'>
<Train row='0' page='1' column='2'>Longbowman</Train>
<Train mergeMode='remove'>xpColonialMilitia</Train>
</Unit>
<!-- replace a proto unit -->
<Unit mergeMode='replace' id="1797" name='deIconUSCowboy'>
<DBID>2372</DBID>
<Icon>resources\art\units\spc\outlaws\cowboy_icon2.png</Icon>
<PortraitIcon>resources\art\units\spc\outlaws\cowboy_portrait2.png</PortraitIcon>
</Unit>
<!-- add a proto unit -->
<Unit name='MyNewProtoUnit'>
<DBID>2400</DBID>
<!-- ... proto unit data ... -->
</Unit>
</protomods>
techtreemods.xml
<techtreemods>
<!-- modify a tech (add effect - enable Pikeman for the Russians) -->
<Tech name ='Age0Russian'>
<Effects>
<Effect mergeMode='add' type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
<Target type ='ProtoUnit'>Pikeman</Target>
</Effect>
</Effects>
</Tech>
<!-- modify a tech (modify an effect by adding and removing - Sacred Cows now cost 10 food instead of 125
food) -->
<Tech name ='ypAge0IndiansSpecialTechs'>
<Effects>
<Effect mergeMode='remove' type ='Data' amount ='45.00' subtype ='Cost' resource ='Food' relativity
='Absolute'>
<Target type ='ProtoUnit'>ypSacredCow</Target>
</Effect>
<Effect mergeMode='add' type ='Data' amount ='-70.00' subtype ='Cost' resource ='Food' relativity
='Absolute'>
<Target type ='ProtoUnit'>ypSacredCow</Target>
</Effect>
</Effects>
</Tech>
</techtreemods>
stringmods.xml
<stringmods>
<StringTable>
<Language name='English'>
<!-- change the text of the Continue button on the Main Menu -->
<String _locID='20038'>ModContinue</String>
</Language>
</StringTable>
</stringmods>
泪目,耽误了多少好Mod…… 没有视频教学 根本看不懂 牛的!{:149:} 有没有傻瓜版 有没有汉化版的编辑器
页:
[1]