视频1 视频21 视频41 视频61 视频文章1 视频文章21 视频文章41 视频文章61 推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37 推荐39 推荐41 推荐43 推荐45 推荐47 推荐49 关键词1 关键词101 关键词201 关键词301 关键词401 关键词501 关键词601 关键词701 关键词801 关键词901 关键词1001 关键词1101 关键词1201 关键词1301 关键词1401 关键词1501 关键词1601 关键词1701 关键词1801 关键词1901 视频扩展1 视频扩展6 视频扩展11 视频扩展16 文章1 文章201 文章401 文章601 文章801 文章1001 资讯1 资讯501 资讯1001 资讯1501 标签1 标签501 标签1001 关键词1 关键词501 关键词1001 关键词1501 专题2001
《上古卷轴5:天际》如何为你的MOD加入选择界面,写入NMM加载脚本,完成FOMOD的封包
2023-05-04 00:57:20 责编:小OO
文档


首先你需要一个干净的XML文件,这里给大家一个写好开头的XML
<?xml version="1.0" encoding="utf-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=http://qconsulting.ca/fo3/ModConfig5.0.xsd>这个文件需要放在MOD的压缩包的根目录FOMOD文件夹里面,当然我们是没有FOMOD文件夹的,所以我们要在解压后的MOD文件夹新建一个FOMOD文件夹
你们要做的是用记事本打开XML编辑
然后我们可以开始编写XML了,我们拿一个比较麻烦的MOD来说明如何实现NMM加载MOD的选择界面,这个MOD就是被弃坑的天际战争。由于弃坑的太突然,所以没有NMM版本,所以我开始为大家写一个XML,让大家能够自定义选择,下面是先行设置。
打开原来的天际战争汉化版文件夹,发现如下文件,先划分文件夹,由于XML导入文件是认文件夹,不认文件名,所以单个ESP必须放在文件夹里面,文件夹的名字不支持任何符号,所以修正后,文件夹如下所示

《上古卷轴5》专题站:http://www.ali213.net/zt/esv/

《上古卷轴5》专题站:http://www.ali213.net/zt/esv/

文件夹的划分完成了,大家可以看到我把材质的文件夹放到了主目录,因为下面要用到。下面写代码:

<?xml version="1.0" encoding="utf-8"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://qconsulting.ca/fo3/ModConfig5.0.xsd">

<moduleName>天际战争完美汉化版</moduleName>

<moduleDependencies>

<fileDependency file="Skyrim.esm" state="Active"></fileDependency>

</moduleDependencies>

<requiredInstallFiles>

<folder source="textures" />

</requiredInstallFiles>

<installSteps order="Explicit">

<installStep name="Options">

<optionalFileGroups>

《上古卷轴5》专题站:http://www.ali213.net/zt/esv/

这里我们可以看到,天际战争的先决条件是skyrim.esm被激活

<requiredInstallFiles>

<folder source="textures" />

</requiredInstallFiles>

requiredinstallfiles:这个是要求先安装的主体文件,由于天际战争的材质就一个所以我们在folder source(文件夹包含的资源)里面写入文件夹的名称。

如果是其他的MOD,就要求我们一个个把文件夹的路径写入。

特别注意:XML里面的路径是以主文件夹开始算的,比如textures在主目录下,所以我们写入textures。

<installSteps order="Explicit">:安装步骤命令

<installStep name="Options">:安装步骤名称

<optionalFileGroups>:可选文件群组

======代码======

<group name="1. 难度选择" type="SelectExactlyOne">

<plugins order="Explicit">

<plugin name="友好时代">

<description>没有改变原游戏,打斗很少,你不会到处受到敌人的攻击,难以见到英雄与反派之间的对决同时也很难看到厉害的敌人,游戏本体不会受MOD太大影响

.</description>

<files>

<folder source="WiS IV MAIN FILE\lore friendly" destination="" />

</files>

<typeDescriptor>

<type name="Optional" />

</typeDescriptor>

</plugin>

<plugin name="正常模式">

<description>彩虹模式的加强版,打斗相对更多,可能会影响游戏主体任务

</description>

<files>

<folder source="WiS IV MAIN FILE\nomal mode" destination="" />

</files>

<typeDescriptor>

<type name="Optional" />

</typeDescriptor>

</plugin>

《上古卷轴5》专题站:http://www.ali213.net/zt/esv/

因为我们写入的N个plugin

所以在后面加一个终止符

</plugins>

完成了N个难度的plugin的修饰后,

这个难度的group我们就完成了

所以再加一句

</group>

至此我们完成了第一个group。

然后我们按照同样的格式。

写入N个你需要写入的group

分group是有规律的,比如,可共存的将type设置为SelcectAny

这样这个group下面的所有的plugin都可以共存,都可以选择,选不选就任玩家选择了

不能共存的,就设置为SelectExactlyOne。

完成了全部的group的修饰后

然后为整个XML写上修饰终止符

</optionalFileGroups>

</installStep>

</installSteps>

</config>

我们可以发现,这些就是最开始的修饰符的对应的终止修饰符。至此我们完成了一个MOD的NMM加载信息脚本的XML的文件写入。

重新打包MOD,NMM载入后,我们会发现这样的界面

《上古卷轴5》专题站:http://www.ali213.net/zt/esv/

PS:是可以加入图片,但是你得在做好海报,然后在对应的name类后面加入修饰图片路径

比如我在模块name的后面加了一个路径

<moduleImage path="fomod\img\wis.jpg" />

然后我们发现在“天际战争完美汉化版”的字体旁边出现了海报。

对应的,你想在哪个版块加入你的图片,只要设置好路径和文件即可.

《上古卷轴5》专题站:http://www.ali213.net/zt/esv/

这个是我写的天际战争的XML,大家可以拿去研究,或者看看我汉化的东方同伴管理MOD,我也为那个MOD写了一个简单的XML,对比一下就能发现规律了

下一步,我将开始教大家如何写info.XML,这是一个介绍界面,只要你在NMM安装之前,点击NMM列表的MOD压缩包,就会在右边窗口出现MOD的更新信息。待编辑ING

<?xml version="1.0" encoding="utf-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://qconsulting.ca/fo3/ModConfig5.0.xsd">
<moduleName>天际战争完美汉化版</moduleName>
<moduleImage path="fomod\img\wis.jpg" />
<moduleDependencies>
<fileDependency file="Skyrim.esm" state="Active"></fileDependency>
</moduleDependencies>
<requiredInstallFiles>
<folder source="textures" />
</requiredInstallFiles>
<installSteps order="Explicit">
<installStep name="Options">
<optionalFileGroups>
<group name="1. 难度选择" type="SelectExactlyOne">
<plugins order="Explicit">
<plugin name="友好时代">
<description>没有改变原游戏,打斗很少,你不会到处受到敌人的攻击,难以见到英雄与反派之间的对决同时也很难看到厉害的敌人,游戏本体不会受MOD太大影响
.</description>
<files>
<folder source="WiS IV MAIN FILE\lore friendly" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="正常模式">
<description>彩虹模式的加强版,打斗相对更多,可能会影响游戏主体任务
</description>
<files>
<folder source="WiS IV MAIN FILE\nomal mode" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="噩梦黑暗时代">
<description>大量的敌人,当你高级别时,能一下遇到三十个敌人在一起,当你等级低时很可能遇到高等级敌人,严重影响游戏本身任务

《上古卷轴5》专题站:http://www.ali213.net/zt/esv/

</description>
<files>
<folder source="WiS IV MAIN FILE\dark age nighemare" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="黑暗彩虹">
<description>你也许穿过一个森林只看见一支鹿,回家的时候连续遇到吸血鬼。能在附近找到很荒凉的营地,但随后几分钟会发现几名法师和强盗混战。这个难度是黄金,黑暗时代的混合,并且是彩虹模式的沉浸版。
</description>
<files>
<folder source="WiS IV MAIN FILE\dark rainbow" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="黄金时代">
<description>游戏性改变很大,双倍的敌人,双倍的打斗,沿岸将有更多的敌人,比较小机会见到强劲的敌人
</description>
<files>
<folder source="WiS IV MAIN FILE\golden age" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
</plugins>
</group>
<group name="2. 英雄和反派" type="SelectExactlyOne">
<plugins order="Explicit">
<plugin name="普通版">
<description>英雄和反派的行为举止正常.</description>
<files>
<folder source="WiS IV Heroes Villains\easy" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="疯狂版">
<description>英雄和反派的行为举止变得疯狂.</description>
<files>
<folder source="WiS IV Heroes Villains\hard" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
</plugins>
</group>
<group name="3. 定制内容" type="SelectAny">
<plugins order="Explicit">
<plugin name="治疗与重生">
<description>NPC具有治疗自己和重生别人的能力,增加敌人和己方的生命力,这样游戏会持续的更久,不会几个敌人一下解决掉了搞的很没意思。</description>
<files>
<folder source="WiS IV plugins\Heal Other Resurrect" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="强力(蓄力)攻击">
<description>强力(蓄力)攻击造成以往三倍的伤害。</description>
<files>
<folder source="WiS IV plugins\Bash Power Attack" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="瘟疫">
<description>疾病传播得更加疯狂,造成生命,魔法,体力的严重损害。</description>
<files>
<folder source="WiS IV plugins\Disease" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="强力弓箭">
<description>双倍弓箭伤害</description>
<files>
<folder source="WiS IV plugins\Double Arrow Damage" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="摔落惩罚">
<description>摔落双倍伤害</description>
<files>
<folder source="WiS IV plugins\Double Fall Damage" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="NPC技能">
<description>NPC技能增长的更快,原游戏为每级2-3点,现在为每级5-7点。.</description>
<files>
<folder source="WiS IV plugins\Perks for NPCs" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="种族修改">
<description>巨人等等种族真实化.</description>
<files>
<folder source="WiS IV plugins\Races" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="潜行者的噩梦">
<description>潜行将更加困难。在潜行模式下进攻敌人,他们会搜你个2分钟 (原游戏为15-30秒)。光天化日之下将更加难以潜行,双倍难于原游戏。</description>
<files>
<folder source="WiS IV plugins\Difficult Stealth" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="水下作战">
<description>水下作战。NPC和敌人可以游泳,你躲河里再也没用了。除了不死族怕水以外。</description>
<files>
<folder source="WiS IV plugins\Water Wars" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="矛与盾的纠结">
<description>装甲与防守,很有意思,战斗时间将变长。盾牌吸收100%的伤害,体力充足了话挡格双倍,装甲提升三倍,武器将造成更小的伤害
</description>
<files>
<folder source="WiS IV plugins\Armors Blocks" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
</plugins>
</group>
<group name="4. 等级关联" type="SelectExactlyOne">
<plugins order="Explicit">
<plugin name="等级倍数X1">
<description>天际战争世界的NPC和怪物等级.</description>
<files>
<folder source="WiS IV plugins\Leveled World\X1" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="等级倍数X2">
<description>天际战争世界的NPC和怪物等级是玩家的两倍.</description>
<files>
<folder source="WiS IV plugins\Leveled World\X2" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="等级倍数X3">
<description>天际战争世界的NPC和怪物等级是玩家的三倍.</description>
<files>
<folder source="WiS IV plugins\Leveled World\X3" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="等级倍数X4">
<description>天际战争世界的NPC和怪物等级是玩家的四倍.</description>
<files>
<folder source="WiS IV plugins\Leveled World\X4" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="等级倍数X10">
<description>天际战争世界的NPC和怪物等级是玩家的十倍.</description>
<files>
<folder source="WiS IV plugins\Leveled World\X10" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="等级倍数X30">
<description>天际战争世界的NPC和怪物等级是玩家的三十倍.</description>
<files>
<folder source="WiS IV plugins\Leveled World\X30" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
</plugins>
</group>
<group name="5. 刷怪速度" type="SelectExactlyOne">
<plugins order="Explicit">
<plugin name="缓慢">
<description>5天重生怪,已清理的区域要10天。.</description>
<files>
<folder source="WiS IV Blood Coins\slow" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="正常">
<description>1天重生怪,已清理区域要2天。.</description>
<files>
<folder source="WiS IV Blood Coins\normal" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="疯狂">
<description>5天重生怪,已清理区域要1天。.</description>
<files>
<folder source="WiS IV Blood Coins\insane" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
</plugins>
</group>
<group name="6. NPC血量" type="SelectExactlyOne">
<plugins order="Explicit">
<plugin name="一半">
<description>NPC生命值减半.</description>
<files>
<folder source="WiS IV plugins\Life Npc\half" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
<plugin name="两倍">
<description>NPC生命值X2.</description>
<files>
<folder source="WiS IV plugins\Life Npc\double" destination="" />
</files>
<typeDescriptor>
<type name="Optional" />
</typeDescriptor>
</plugin>
</plugins>
</group>
</optionalFileGroups>
</installStep>
</installSteps>
</config>

《上古卷轴5》专题站:http://www.ali213.net/zt/esv/

下载本文
显示全文
专题