打印[罗马全面战争] 罗马全面战争修改之增加一个新兵种圣殿骑士骑士团当家Perfect帖子2386 精华10 佛罗林币10605 枚功勋0 注册时间2004-3-13发短消息加为好友当前离线楼主大中小发表于2004-11-1 12:09 AM 只看该作者罗马全面战争修改之增加一个新兵种玩了一段时间的罗马,是不是有点厌烦了,想自己加个新兵种进去,具体步骤是这样的:1、先制作一个新兵种的dds文件,就是皮肤,具体方法请看/forum/thread-10943-1-1.html,会3dmax的朋友还可以修改Rome - Total War\Data\models_unit里的cas文件,这个是兵种的3d模型,也就是骨架,可以做一个全新的兵种。
做好的皮肤(dds文件)放在Rome - Total War\Data\models_unit\TEXTURES 里,起个新名字,比如是UNIT_EASTERN_LIGHT_INFANTRY_CHINA.TGA,然后打开Rome - Total War\Data下的descr_model_battle,加入下面的内容:引用:type Chinese_cavalryskeleton fs_hc_spearman, fs_hc_swordsmanindiv_range 40texture parthia, data/models_unit/textures/UNIT_EASTERN_LIGHT_INFANTRY_CHINA.TGAmodel_flexi data/models_unit/unit_eastern_heavy_infantry_high.cas, 15model_flexi data/models_unit/unit_eastern_heavy_infantry_med.cas, 30model_flexi data/models_unit/unit_eastern_heavy_infantry_low.cas, 40model_flexidata/models_unit/unit_eastern_heavy_infantry_lowest.cas, maxmodel_sprite parthia, 60.0, data/sprites/china_HEA VY_INFANTRY_SPRITE.SPRmodel_tri 400, 0.5f, 0.5f, 0.5f详细说一下:引用:type Chinese_cavalry这是兵种的内部名字。
引用:skeleton fs_hc_spearman, fs_hc_swordsman这是兵种的动作文件,什么兵该有什么样的动作,fs_hc_spearman是马上用长矛的,fs_hc_swordsman是马上用剑的,还有其他的,大家可以看其他兵种就明白了。
修改这里可以让兵种出现不同的动作,比如长矛兵可以象标枪兵那样把矛投出去等。
引用:texture parthia,data/models_unit/textures/UNIT_EASTERN_LIGHT_INFANTRY_CHINA.TGA这就是新兵种的皮肤所在位置,一定不要弄错了!引用:model_flexi data/models_unit/unit_eastern_heavy_infantry_high.cas, 15model_flexi data/models_unit/unit_eastern_heavy_infantry_med.cas, 30model_flexi data/models_unit/unit_eastern_heavy_infantry_low.cas, 40model_flexidata/models_unit/unit_eastern_heavy_infantry_lowest.cas, max这些是3d模型的设定,如果你只是修改了皮肤(dds文件),而没有修改cas文件,这些可以不变;如果修改了cas文件,就把文件名换换,指向新修改的cas文件。
(其实cas文件可以只有一个,不用向游戏原来那样分成high,med,low,lowest四个,但格式一样要按原来的,比如改成这样:引用:model_flexi data/models_unit/unit_eastern_heavy_infantry.cas, 15 model_flexi data/models_unit/unit_eastern_heavy_infantry.cas, 30 model_flexi data/models_unit/unit_eastern_heavy_infantry.cas, 40 model_flexi data/models_unit/unit_eastern_heavy_infantry.cas, max 引用:model_sprite parthia, 60.0, data/sprites/china_HEA VY_INFANTRY_SPRITE.SPR这个是兵种最小化时使用的文件,要和前面的model_flexi所用兵种一致,就是说前面是骑兵的,这里不能改步兵,不然会跳出游戏。
添加了上述内容后保存即可。
2、打开Rome - Total War\Data里的export_descr_unit,设定兵种的具体数值,详细说明看/forum/thread-9834-1-1.html,加入如下内容:引用:type Chinese cavalrydictionary Chinese_cavalry ; Chinese cavalrycategory cavalryclass heavyvoice_type Medium_1soldier Chinese_cavalry, 27, 0, 1mount light horsemount_effect elephant -8, camel -4attributes sea_faring, hide_forestformation 1.5, 4, 3, 6, 4, square, wedgestat_health 1, 0stat_pri 7, 7, no, 0, 0, melee, blade, piercing, spear, 25 ,1stat_pri_attr nostat_sec 5, 3, no, 0, 0, melee, simple, piercing, sword, 25 ,1stat_sec_attr nostat_pri_armour 3, 3, 4, metalstat_sec_armour 0, 1, fleshstat_heat -1stat_ground 0, 1, -4, 1stat_mental 4, normal, trainedstat_charge_dist 40stat_fire_delay 0stat_food 60, 300stat_cost 1, 350, 110, 70, 100, 550ownership parthia需要说明的是:引用:soldier Chinese_cavalry, 27, 0, 1这里是兵种的模型说明,要和descr_model_battle里的type Chinese_cavalry一致引用:mount light horsemount_effect elephant -8, camel -4这是骑兵,象兵等才有,单独的士兵可以没有这两项修改这个文件要慎重,不要改得太夸张,不然进不了游戏,修改完后保存即可。
3、打开Rome - Total War\Data\text里的export_units,设定兵种的说明,要按照里面的格式,加入一下内容:引用:{Chinese_cavalry} Chinese Cavalrymen{Chinese_cavalry_descr}Superior\nImpetuous\nCan Form Wedge\n\nChinese cavalry are superb horsemen: armoured lancers who can put many infantry units to flight. They are heavy cavalry who seek the good opinion of their people by acts of bravery. They are eager to prove their worth and the lure of glory is what drives them.\n\nThey are equipped as armoured lancers wearing heavy Scythian mail, reinforced with bronze and iron scales in vulnerable spots. They do not bother with shields so that both hands are free to manipulate the lance.\n\nOn the battlefield Scythian nobles are often used to break through an enemy line after it has been weakened by archery, carrying all before them in a disciplined, dangerous charge.{Chinese_cavalry_descr_short}nChinese cavalry are superb horsemen: armoured lancers who can put many infantry units to flight. They are heavy cavalry who seek the good opinion of their people by acts of bravery. They are eager to prove their worth and the lure of glory is what drives them.\n\nThey are equipped as armoured lancers wearing heavy Scythian mail, reinforced with bronze and iron scales in vulnerable spots. They do not bother with shields so that both hands are free to manipulate the lance.\n\nOn the battlefield Scythian nobles are often used to break through an enemy line after it has been weakened by archery, carrying all before them in a disciplined, dangerous charge.兵种的名字(Chinese_cavalry)不能错,要和export_descr_unit里的dictionary Chinese_cavalry ; Chinese cavalry一致。