中世纪2-教你添加新兵种

游饭天堂会员:sagius 声明:

中世纪2-教你添加新兵种

  • 本文将涉及一些未经格式化的文件,对修改的描述可能较为繁琐。对此不感兴趣的朋友,请参阅jyh4nt的相关论题:链接。

  • 后续内容非原创,参考了国外论坛的深入讨论。本文仅为归纳与个人感想。所提及的修改已通过测试。本文末尾提供测试修改后的文件下载,供参考。

  • 本文所参考的国外论坛帖子链接如下:

  • 链接1
  • 链接2

  • 所有提到的修改均经过测试。

  • 由于无法贴图,本文末尾附加了所有内容的Word档下载,以便更清晰明了。


以下是具体操作步骤:

  • 添加新的部队
  • 打开游戏目录 data\export_descr_unit.txt,搜索“Lancers”,复制其兵种描述。
  • 在复制内容后空两行,每行前加两个空格,粘贴复制的文字。
  • 修改 typedictionaryownship 这三项。
  • 修改后的结果如下(示例): type Camel Lancers dictionary Camel_Lancers ; Lancers category cavalry class heavy voice_type Heavybanner faction main_cavalry banner holy crusade_cavalry soldier Lancers, 32, 0, 1 mount camel mount_effect elephant 4, camel 4 attributes sea_faring, hide_forest, hardy, can_withdraw, can_formed_charge, knight formation 2, 4.4, 3, 6, 2, square, wedge stat_health 1, 0 stat_pri 13, 4, no, 0, 0, melee, melee_blade, piercing, spear, 0, 0.7; stat_pri_ex 0, 0, 0 stat_pri_attr nostat_sec 14, 0, no, 0, 0, melee, melee_blade, piercing, sword, 0, 0.7; stat_sec_ex 0, 0, 0 stat_sec_attr nostat_pri_armour 10, 6, 0, metal; stat_armour_ex 10, 11, 12, 0, 6, 0, 0, metal stat_sec_armour 0, 0, flesh stat_heat 6 stat_ground 0, 2, 4, 0 stat_mental 11, impetuous, trained stat_charge_dist 45 stat_fire_delay 0 stat_food 60, 300 stat_cost 1, 1130, 410, 130, 100, 1130, 4, 230 armour_ug_levels 5, 6, 6 armour_ug_models Lancers, Lancers, Lancers ownership portugalera 2 portugal unit_info 13, 0, 16
  • 保存并退出。

  • 贴图部分

  • 打开游戏目录 data\unit_models\battle_models.modeldb,搜索“Lancers”。
  • 格式化文件内容,确保所有数字和字符在同一行,保留空格。
  • 修改文件以使葡萄牙可以使用Lancers模型。
  • 具体修改方法请参考上文。

  • 兵牌

  • data\ui\units\portugaldata\ui\unit_info\portugal 下找到并复制法国Lancers的图片,分别重命名为 camel_lancers.tgacamel_lancers_info.tga

  • 兵种介绍

  • 使用 strings.bin converter 程序修改 data\text\export_units.txt.strings.bin 文件。
  • 插入以下行: {Camel_lancers}Camel Lancers {Camel_lancers_descr}This is the lang introduce text about it {Camel_lancers_descr_short}This is the short one about it
  • 保存并退出。

  • 修改建筑文件

  • 打开 export_descr_buildings.txt,搜索 building core_building
  • 在每一级城墙的 capability 中插入: recruit_pool "Camel Lancers" 4 0.5 4 0 requires factions { Normans, }
  • 数字分别代表招募数、补充速度、招募上限、士兵经验值。

完成以上步骤后,新部队即可在游戏中使用。注意确认修改生效,并决定修改原版或MOD文件。

免责声明:本站发布的游戏攻略(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场。
如果本文侵犯了您的权益,请联系站长邮箱进行举报反馈,一经查实,我们将在第一时间处理,感谢您对本站的关注!