游民星空 > 攻略秘籍 > 攻略 > 正文

中世纪2:修改文件方法汇总

2007-07-14 00:04:03 来源:本站原创 作者:佚名 编辑:dsgames568 我要投稿

 

4.修改远洋战舰:在\mymod\data下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 War\data\unit_models\下面,而不是mymod下。然后用"F:\Medieval II Total War\medieval2.exe" --io.file_first或者"F:\Medieval II Total War\medieval2.exe" "@mymod.cfg" --io.file_first 来启动游戏。其中--io.file_first是指优先读取用户文件而不是pack中的文件。以后做mod可以不用mymod了。

以上只是在战斗地图中显示兵模,但是兵牌和兵种介绍上还是农民图案。还需要第二步修改:
新建并执行bat文件,内容为unpacker.exe --source=..\..\packs\*.pack --destination=c:\packs\ --filter=*文件名*.tga,其中文件名替换成你要修改的兵种的名字。然后到c:\packs\data\ui下找到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:全面战争专区

上一页 1 2 3 4 5 6 7 8 9 10 11 下一页
友情提示:支持键盘左右键“← →”翻页
标签:攻略
游民星空APP
随手浏览游戏攻略
code
常见问题
?
我要提问
    没有任何记录
    没有任何记录
    没有任何记录
单机游戏下载
休闲娱乐
综合热点资讯
游民星空联运游戏