正在加载
中世纪2-修改皮肤方法
时间:2023-01-05 来源:本站 作者:佚名
电脑大家应该不怎么陌生吧!现在电脑已经普及到大多数人的家庭之中了,电脑的用途非常地广,不同年龄段、不同行业的人对电脑的用处不同。但是对于很多的年轻人来说电脑最大的用途就是玩游戏了。电脑游戏大家肯定玩过吧!它可以使人上瘾。

第一步,打开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代表之后内容有多少个字符。保存后退出。 

第三步,我们要改贴图了。解压出data\unit_models\mounts\barded_horse\textures\horse_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即可,完工。
 

 


玩游戏可以在很大程度上让大家放松放松,但是我建议大家不要把过多的时间投入到工作当中,因为这样的话大家很有可能上瘾,这样不利于大家的工作或者是学习。