资源描述
教程:三国各MOD间兵种的提取和载入这里我以提取“三国1.8A”里“势力刘备”的“校刀手”,载入为“三国1.7A”中的“势力张鲁”新兵种为例.为了方便 我先建立几个需要文件夹和文件文件夹:newsoldier,sprites,text,ui,unit_info,units,romano_british,models_unit,sanguo,textures文件:export_units.txt,descr_model_battle.txt,export_descr_unit.txt,export_descr_unit_enums.txt这里简单列了一下文件夹之间和文件的逻辑关系,在下面步骤中我就直接引用不介绍了newsoldierspritesnewsoldiertext export_units.txtnewsoldieruiunit_inforomano_britishnewsoldieruiunitsromano_britishnewsoldiermodels_unitsanguotexturesnewsoldier descr_model_battle.txt export_descr_unit.txt export_descr_unit_enums.txt1、从1.8A中提取 A:打开bi-data-text中文件export_units搜索找到“校刀手”复制:Xiaodaoshou_Liubei校刀手Xiaodaoshou_Liubei_descr校刀手nn關雲長麾下部隊精兵,皆手持大刀,所向披靡。Xiaodaoshou_Liubei_descr_short校刀手nn關雲長麾下部隊精兵,皆手持大刀,所向披靡。把上面复制内容粘贴到文件夹newsoldier-text中文件export_units,保存B:打开 bi-data中文件export_descr_unit搜索找到“校刀手”复制:;校刀手type Xiaodaoshou Liubeidictionary Xiaodaoshou_Liubeicategory infantryclass spearmenvoice_type Light_1soldier chu_generaldao2,18,0,0.90mount_effect horse +3,camel +1attributes sea_faring,hide_forest,frighten_mounted,very_hardyformation 1.0, 1.2, 2.4, 2.8, 4, squarestat_health 1, 0stat_pri 9,28,no,0,0,melee,blade,slashing,sword,25,1stat_pri_attr ap,spear,spear_bonus_6stat_sec 0,0,no,0,0,no,no,no,none,0,1stat_sec_attr nostat_pri_armour 7,14,0,leatherstat_sec_armour 0,0,fleshstat_heat 2stat_ground -1,-2,-2,-2stat_mental 21,disciplined,highly_trainedstat_charge_dist 30stat_fire_delay 0stat_food 60,300stat_cost 1,904,231,86,69,361.6ownership slave把上面复制内容粘贴到文件夹newsoldier中文件export_descr_unit,保存C:打开newsoldier-text中文件export_descr_unit_enums写入这段:;校刀手Xiaodaoshou_LiubeiXiaodaoshou_Liubei_descrXiaodaoshou_Liubei_descr_short保存注:如果在文件bi-data中文件export_descr_unit_enums,如果里面有相关内容直接复制就行了。如果没有 ,按格式写一段也没关系D:打开bi-data中文件descr_model_battle搜索找到“校刀手”复制:;校刀手;-type chu_generaldao2skeleton fs_slow_2handedindiv_range 40texture empire_east, bi/data/models_unit/sanguo/textures/Shu_Dadao.tga texture empire_east_rebels, bi/data/models_unit/sanguo/textures/Shu_Dadao.tga model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, 15model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, 30model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, 40model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, maxmodel_sprite empire_east_rebels, 60.0, bi/data/sprites/empire_east_chu_generaldao2_sprite.sprmodel_sprite empire_east, 60.0, bi/data/sprites/empire_east_chu_generaldao2_sprite.sprmodel_tri 400, 0.5f, 0.5f, 0.5把上面复制内容粘贴到文件夹newsoldier中文件descr_model_battle,保存E:打开bi-data-ui-unit_info-empire_east 找到校刀手文件图片 Xiaodaoshou_Liubei_info ,复制粘贴到newsoldier-ui-unit_info-romano_britishF:打开bi-data-ui-units-empire_east 找到校刀手文件图片 #Xiaodaoshou_Liubei ,复制粘贴到newsoldier-ui-units-romano_britishG:打开bidatamodels_unitsanguotextures找到文件Shu_Dadao.tga,复制粘贴到newsoldiermodels_unitsanguotextures底下注:这里要找的文件就是根据D步骤中要复制那段原码来找的texture empire_east, bi/data/models_unit/sanguo/textures/Shu_Dadao.tga H:打开bidatamodels_unitsanguo找到文件文件Shu_Dadao.cas,复制粘贴到newsoldiermodels_unitsanguo底下注:这里要找的文件就是根据D步骤中要复制那段原码来找的model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, 15model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, 30model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, 40model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, maxI:打开bidatasprites搜索empire_east_chu_generaldao2_sprite找到文件empire_east_chu_generaldao2_sprite.sprempire_east_chu_generaldao2_sprite_000empire_east_chu_generaldao2_sprite_001复制粘贴到newsoldiersprites 底下注:这里要找的文件就是根据D步骤中要复制那段原码来找的model_sprite empire_east_rebels, 60.0, bi/data/sprites/empire_east_chu_generaldao2_sprite.sprmodel_sprite empire_east, 60.0, bi/data/sprites/empire_east_chu_generaldao2_sprite.spr2、调整A、打开newsoldier中文件export_descr_unit把这两句stat_cost 1,904,231,86,69,361.6ownership slave修改为stat_cost 1,904,231,86,69,361.6ownership romano_britishB、打开newsoldier中文件descr_model_battle把原来那段复制内容修改为;校刀手;-type chu_generaldao2skeleton fs_slow_2handedindiv_range 40texture romano_british, bi/data/models_unit/sanguo/textures/Shu_Dadao.tga model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, 15model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, 30model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, 40model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, maxmodel_sprite romano_british, 60.0, bi/data/sprites/empire_east_chu_generaldao2_sprite.sprmodel_tri 400, 0.5f, 0.5f, 0.53、载入到1.7AA、把newsoldier底下文件夹models_unit复制到bidata 底下粘贴B、把newsoldier底下文件夹sprites复制到bidata 底下粘贴C、把newsoldier底下文件夹ui复制到bidata 底下粘贴D、打开newsoldiertext中文件export_units复制这段Xiaodaoshou_Liubei校刀手Xiaodaoshou_Liubei_descr校刀手nn關雲長麾下部隊精兵,皆手持大刀,所向披靡。Xiaodaoshou_Liubei_descr_short校刀手nn關雲長麾下部隊精兵,皆手持大刀,所向披靡。打开bidatatext中文件export_units,找到白耳兵并在它下面粘贴(注:放在哪里这里没有特别要求)E、打开newsoldier中文件descr_model_battle复制这段;校刀手;-type chu_generaldao2skeleton fs_slow_2handedindiv_range 40texture romano_british, bi/data/models_unit/sanguo/textures/Shu_Dadao.tga model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, 15model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, 30model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, 40model_flexi bi/data/models_unit/sanguo/Shu_Dadao.cas, maxmodel_sprite romano_british, 60.0, bi/data/sprites/empire_east_chu_generaldao2_sprite.sprmodel_tri 400, 0.5f, 0.5f, 0.5打开bidata中文件descr_model_battle,找到白耳兵并在它下面粘贴(注:放在哪里这里没有特别要求)F:打开newsoldier中文件export_descr_unit复制这段;校刀手type Xiaodaoshou Liubeidictionary Xiaodaoshou_Liubeicategory infantryclass spearmenvoice_type Light_1soldier chu_generaldao2,18,0,0.90mount_effect horse +3,camel +1attributes sea_faring,hide_forest,frighten_mounted,very_hardyformation 1.0, 1.2, 2.4, 2.8, 4, squarestat_health 1, 0stat_pri 9,28,no,0,0,melee,blade,slashing,sword,25,1stat_pri_attr ap,spear,spear_bonus_6stat_sec 0,0,no,0,0,no,no,no,none,0,1stat_sec_attr nostat_pri_armour 7,14,0,leatherstat_sec_armour 0,0,fleshstat_heat 2stat_ground -1,-2,-2,-2stat_mental 21,disciplined,highly_trainedstat_charge_dist 30stat_fire_delay 0stat_food 60,300stat_cost 1,904,231,86,69,361.6ownership romano_british打开bidata中文件export_descr_unit,找到白耳兵并在它下面粘贴(注:放在哪里这里没有特别要求)G、打开newsoldier中文件export_descr_unit_enums复制这段Xiaodaoshou_LiubeiXiaodaoshou_Liubei_descrXiaodaoshou_Liubei_descr_short打开bidata中文件export_descr_unit_enums,找到Baierbin_Liubei并在它下面粘贴
展开阅读全文