魂狼下载:专业免费游戏下载中心

中世纪2-修改皮肤方法

编辑:admin 时间:2012-02-27 15:08:38 来源:魂狼

游侠会员:kucat80<原创>

第一步,打开data目录下的descr_mount.txt文件。在
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; horses
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
后找以下脚本
type                                barded horse
class                                horse
model                                Mount_Barded_Horse
radius                                1.8
x_radius                        0.8
y_offset                        0.7
height                                2.5
mass                                6
banner_height                0
bouyancy_offset                1.8
water_trail_effect        horse_water_trail
root_node_height        1.0
;rider_offset                0.0, 0.45, 0.35
rider_offset                0.0, 0.38, 0.70
这是对游戏中欧洲封建骑士骑的那种马的描述,我们复制一遍后做以下修改,
type                                hospitaller horse(新的马的名称,兵种文件中用到)
class                                horse
model                                Mount_Hos_Horse(马所用的模型类别,对应之后我们要在battle_models.modeldb中新建的模型类别)
radius                                1.8
x_radius                        0.8
y_offset                        0.7
height                                2.5
mass                                6
banner_height                0
bouyancy_offset                1.8
water_trail_effect        horse_water_trail
root_node_height        1.0
;rider_offset                0.0, 0.45, 0.35
rider_offset                0.0, 0.38, 0.70
保存后关闭,这个文件就算完工了。

第二步,用记事本打开data/unit_models目录下的battle_models.modeldb文件(也可以用其他文本编辑器),找到以下内容
18 mount_barded_horse 1.12 3 60 unit_models/Mounts/Barded_Horse/mount_barded_horse_lod0.mesh 121 60

unit_models/Mounts/Barded_Horse/mount_barded_horse_lod1.mesh 1225 60

unit_models/Mounts/Barded_Horse/mount_barded_horse_lod2.mesh 10000 18 7 england 70

unit_models/Mounts/Barded_Horse/textures/horse_barding_england.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 50 unit_sprites/england_Mount_Barded_Horse_sprite.spr 8

scotland 71 unit_models/Mounts/Barded_Horse/textures/horse_barding_scotland.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 51 unit_sprites/scotland_Mount_Barded_Horse_sprite.spr

6 france 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_france.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 49 unit_sprites/france_Mount_Barded_Horse_sprite.spr 3

hre 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hre.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 46 unit_sprites/hre_Mount_Barded_Horse_sprite.spr 7

denmark 70 unit_models/Mounts/Barded_Horse/textures/horse_barding_denmark.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 50 unit_sprites/denmark_Mount_Barded_Horse_sprite.spr 5

spain 68 unit_models/Mounts/Barded_Horse/textures/horse_barding_spain.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 48 unit_sprites/spain_Mount_Barded_Horse_sprite.spr 8

portugal 71 unit_models/Mounts/Barded_Horse/textures/horse_barding_portugal.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 51 unit_sprites/portugal_Mount_Barded_Horse_sprite.spr

5 milan 68 unit_models/Mounts/Barded_Horse/textures/horse_barding_milan.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 48 unit_sprites/milan_Mount_Barded_Horse_sprite.spr 6

venice 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_venice.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 49 unit_sprites/venice_Mount_Barded_Horse_sprite.spr 12

papal_states 75 unit_models/Mounts/Barded_Horse/textures/horse_barding_papal_states.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 55

unit_sprites/papal_states_Mount_Barded_Horse_sprite.spr 6 sicily 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_sicily.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 49 unit_sprites/sicily_Mount_Barded_Horse_sprite.spr 6

poland 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_poland.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 49 unit_sprites/poland_Mount_Barded_Horse_sprite.spr 6

russia 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_russia.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 49 unit_sprites/russia_Mount_Barded_Horse_sprite.spr 7

hungary 70 unit_models/Mounts/Barded_Horse/textures/horse_barding_hungary.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 50 unit_sprites/hungary_Mount_Barded_Horse_sprite.spr 5

slave 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_rebels.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 48 unit_sprites/slave_Mount_Barded_Horse_sprite.spr 4

merc 68 unit_models/Mounts/Barded_Horse/textures/horse_barding_mercs.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 47 unit_sprites/merc_Mount_Barded_Horse_sprite.spr 7

normans 70 unit_models/Mounts/Barded_Horse/textures/horse_barding_england.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 50 unit_sprites/normans_Mount_Barded_Horse_sprite.spr 6

saxons 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hre.texture 69

unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 49 unit_sprites/saxons_Mount_Barded_Horse_sprite.spr 0

1 5 Horse 14 fs_heavy_horse 0  0 0 -1 0 0 0 0 0 0
隔一个空格之后复制一遍,改成以下内容
15 mount_hos_horse 1.12 3 60 unit_models/Mounts/Barded_Horse/mount_barded_horse_lod0.mesh 121 60 unit_models/Mounts/Barded_Horse/mount_barded_horse_lod1.mesh 1225 60 unit_models/Mounts/Barded_Horse/mount_barded_horse_lod2.mesh 10000 18 7 england 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 50 unit_sprites/england_Mount_Barded_Horse_sprite.spr 8 scotland 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 51 unit_sprites/scotland_Mount_Barded_Horse_sprite.spr 6 france 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 49 unit_sprites/france_Mount_Barded_Horse_sprite.spr 3 hre 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 46 unit_sprites/hre_Mount_Barded_Horse_sprite.spr 7 denmark 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 50 unit_sprites/denmark_Mount_Barded_Horse_sprite.spr 5 spain 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 48 unit_sprites/spain_Mount_Barded_Horse_sprite.spr 8 portugal 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 51 unit_sprites/portugal_Mount_Barded_Horse_sprite.spr 5 milan 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 48 unit_sprites/milan_Mount_Barded_Horse_sprite.spr 6 venice 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 49 unit_sprites/venice_Mount_Barded_Horse_sprite.spr 12 papal_states 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 55 unit_sprites/papal_states_Mount_Barded_Horse_sprite.spr 6 sicily 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 49 unit_sprites/sicily_Mount_Barded_Horse_sprite.spr 6 poland 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 49 unit_sprites/poland_Mount_Barded_Horse_sprite.spr 6 russia 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 49 unit_sprites/russia_Mount_Barded_Horse_sprite.spr 7 hungary 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 50 unit_sprites/hungary_Mount_Barded_Horse_sprite.spr 5 slave 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 48 unit_sprites/slave_Mount_Barded_Horse_sprite.spr 4 merc 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 47 unit_sprites/merc_Mount_Barded_Horse_sprite.spr 7 normans 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 50 unit_sprites/normans_Mount_Barded_Horse_sprite.spr 6 saxons 66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture 69 unit_models/Mounts/Barded_Horse/textures/horse_barding_normal.texture 49 unit_sprites/saxons_Mount_Barded_Horse_sprite.spr 0 1 5 Horse 14 fs_heavy_horse 0  0 0 -1 0 0 0 0 0 0
其中的66 unit_models/Mounts/Barded_Horse/textures/horse_barding_hop.texture就是我们一会要新建的贴图文件名,66代表之后内容有多少个字符。保存后退出。

第三步,我们要改贴图了。解压出dataunit_modelsmountsbarded_horsetextureshorse_barding_hre.texture文件,当然其他国家的也可以,复制一份,重命名成horse_barding_hop.texture。接下来用论坛一位前辈制作的转换工具TextureConvertor将horse_barding_hop.texture文件转换成horse_barding_hop.dds文件,就可以用ps加载插件之后打开编辑了。编辑完成之后,再将horse_barding_hop.dds转换回horse_barding_hop.texture即可。
第三步,在medieval2.preference.cfg里加上
[io]
file_first = true
再把文件改回只读即可,添加新的马匹大功告成。改兵种贴图的也是大致如此。
最后,我们修改data文件夹下的export_descr_unit.txt,让我们的医院骑士骑上新的马,找到Knights Hospitaller,把mount后面改成我们新建的hospitaller horse即可,完工。

热门游戏