逗游网:值得大家信赖的游戏下载站!

微信:doyo_game
关注逗游
单机首页 游戏库 排行榜 资讯 攻略 专题 合集 工具补丁 手机游戏 正版商城
所在位置:攻略中心 > 单机攻略 > 中世纪2:全面战争之王国 > 正文

修改文件方法汇总 中世纪2:全面战争之王国

发布时间:2011-09-10 来源:游民星空  作者:佚名   编辑:屎蛋儿

 

4.修改远洋战舰:在mymoddata下export_descr_unit文件
有些势力如蒙古,俄罗斯等没大船不能去美国;现以俄国为例子教大家改出个大船。
先在游戏里看看哪些是该势力能造的船,注意一定要本国的船,挪用它国的船会出问题的。
我看到 ladya 是俄国拥有的船,查找数据如下:
type             ladya
dictionary       ladya      ; Lad'Ya
category         ship
class            light
voice_type       Light
soldier          Peasants, 30, 0, 1                            (30改成50或60)
ship             light warship                                 (把这个改成 heavy warship )
attributes       sea_faring, can_withdraw
formation        50, 50, 75, 75, 1, square
stat_health      1, 0
stat_pri         10, 0, no, 0, 0, melee, melee_simple, slashing, none, 25, 1
;stat_pri_ex      0, 0, 0
stat_pri_attr    no
stat_sec         0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
;stat_sec_ex      0, 0, 0

stat_sec_attr    no
stat_pri_armour  0, 4, 0, flesh
;stat_armour_ex   0, 0, 0, 0, 4, 0, 0, flesh
stat_sec_armour  0, 0, flesh
stat_heat        0
stat_ground      0, 0, 0, 0
stat_mental      5, normal, trained
stat_charge_dist 30
stat_fire_delay  0
stat_food        60, 300
stat_cost        1, 570, 150, 100, 100, 570, 4, 140
armour_ug_levels 0
armour_ug_models Peasants
ownership        russia
;unit_info        10, 0, 4
照括号里的修改后,该船就能下西洋啦!!!
原文件未经格式化,阅读起来很困难。但稍加改变后就能一目了然。单独一行的1或者2表示这个模型有几个国家使用。添加新国家就像红字部分那样,把原有的复制过来,再把国家名字改掉。国家前面的数字是固定的,照搬即可。所有国家对应的数字分别为:7 england,6 france,3 hre,5 spain,6 venice,6 sicily,5 milan,8 scotland,9 byzantium,6 russia,5 moors,5 turks,5 egypt,7 denmark,8 portugal,6 poland,7 hungary,12 papal_states,6 aztecs,7 mongols,8 timurids。注意空格不能多也不能少,但是插入回车没关系。希望有人能做个小程序把整个文件转换成格式化文件。改好的battle_models.modeldb应该始终放在Medieval II Total Wardataunit_models下面,而不是mymod下。然后用"F:Medieval II Total Warmedieval2.exe" --io.file_first或者"F:Medieval II Total Warmedieval2.exe" "@mymod.cfg" --io.file_first 来启动游戏。其中--io.file_first是指优先读取用户文件而不是pack中的文件。以后做mod可以不用mymod了。

以上只是在战斗地图中显示兵模,但是兵牌和兵种介绍上还是农民图案。还需要第二步修改:
新建并执行bat文件,内容为unpacker.exe --source=....packs*.pack --destination=c:packs --filter=*文件名*.tga,其中文件名替换成你要修改的兵种的名字。然后到c:packsdataui下找到unit_info和units2个文件夹,分别把里面别的国家名字的文件夹改成你指定的国家名字即可(分别保留一个文件夹,多余的删除)。最后把这两个文件夹复制到mymod里对应的目录下。

附:battle_models.modeldb修改实例
原文:
dismounted_gothic_knights 1 4 73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod0.mesh 121 73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod1.mesh 900 73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod2.mesh 2500 73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod3.mesh 6400 1 3 hre 77 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_hre.texture 80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 53 unit_sprites/hre_Dismounted_Gothic_Knights_sprite.spr 1 3 hre 56 unit_models/AttachmentSets/Final Heater_hre_diff.texture 56 unit_models/AttachmentSets/Final Heater_hre_norm.texture 0  

格式化后的原文:
dismounted_gothic_knights 1 
4 73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod0.mesh
121 73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod1.mesh 
900 73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod2.mesh 
2500 73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod3.mesh 6400 

3 hre 
77 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_hre.texture
80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 

53 unit_sprites/hre_Dismounted_Gothic_Knights_sprite.spr 

3 hre
56 unit_models/AttachmentSets/Final Heater_hre_diff.texture 
56 unit_models/AttachmentSets/Final Heater_hre_norm.texture 0

修改后的内容:(红字部分为修改或新增的内容)
dismounted_gothic_knights 1 
4 73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod0.mesh 
121 73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod1.mesh 
900 73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod2.mesh 
2500 73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod3.mesh 6400 

3 hre
77 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_hre.texture 
80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 
53 unit_sprites/hre_Dismounted_Gothic_Knights_sprite.spr 
6 france 
77 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_hre.texture 
80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 
53 unit_sprites/hre_Dismounted_Gothic_Knights_sprite.spr 

3 hre 
56 unit_models/AttachmentSets/Final Heater_hre_diff.texture 
56 unit_models/AttachmentSets/Final Heater_hre_norm.texture 0  
6 france 
56 unit_models/AttachmentSets/Final Heater_hre_diff.texture 
56 unit_models/AttachmentSets/Final Heater_hre_norm.texture 0
进入《中世纪2:全面战争之王国》专区
查看更多《中世纪2:全面战争之王国》攻略
标签:中世纪2:全面战争之王国 
https://www.doyo.cn/article/3471复制本文地址
阅读本文后,您的心情是:(选择后可查看结果)
 
恶心
愤怒
强赞
感动
路过
无聊
雷囧
关注
今日关注游戏
游戏专题
IGN 9分以上作品 愿者上钩钓鱼的那点趣事 深冬之寒,来一起看看游戏中精美的雪景吧