游侠NETSHOW论坛
标题:
WARFARE深度修改方法……入手(例:狙击手
[打印本页]
作者:
常规护航舰
时间:
2009-6-10 02:34:31
标题:
WARFARE深度修改方法……入手(例:狙击手
这个游戏越来越像一个完成度很高的MOD了
闲话休提,让我们迅速进入正题
由于其他文件复杂度过高,就只讲较为简单的步兵小队和步兵属性的修改
注意:以下的操作会改变游戏本体,请预先做好相应文件的备份,凡因该个人引起的版权及类似问题本人概不负责
————————————————————————————————————————————————————
进入该文件夹:
Warfare\basis\scripts\species
用文本编辑器(记事本之类)打开文件
squads.lua
和
humans.lua
squads.lua这个文件决定了游戏中各个小队的组成人员
而humans.lua这个文件则决定了游戏中每个个人的属性
具体每条语句是什么意思每个文件的靠前部分都会有一个说明,以下各自详解
首先我们来看看
squads.lua
打开以后翻几页,就会有这么一段
<Cell><Data ss:Type="String">sysname</Data></Cell>
<Cell><Data ss:Type="String">member1</Data></Cell>
<Cell><Data ss:Type="String">member2</Data></Cell>
<Cell><Data ss:Type="String">member3</Data></Cell>
<Cell><Data ss:Type="String">member4</Data></Cell>
<Cell><Data ss:Type="String">member5</Data></Cell>
<Cell><Data ss:Type="String">member6</Data></Cell>
<Cell><Data ss:Type="String">member7</Data></Cell>
<Cell><Data ss:Type="String">member8</Data></Cell>
<Cell><Data ss:Type="String">member9</Data></Cell>
<Cell><Data ss:Type="String">member10</Data></Cell>
<Cell><Data ss:Type="String">member11</Data></Cell>
<Cell><Data ss:Type="String">member12</Data></Cell>
<Cell><Data ss:Type="String">voices</Data></Cell>
<Cell><Data ss:Type="String">driving_classes</Data></Cell>
<Cell><Data ss:Type="String">reaction_blackboard</Data></Cell>
<Cell><Data ss:Type="String">exp_levels</Data></Cell>
<Cell><Data ss:Type="String">base_fighting_skill</Data></Cell>
<Cell><Data ss:Type="String">specialty</Data></Cell>
<Cell><Data ss:Type="String">hover_image</Data></Cell>
<Cell><Data ss:Type="String">hover_image_enemy</Data></Cell>
<Cell><Data ss:Type="String">nationality</Data></Cell>
<Cell><Data ss:Type="String">cost</Data></Cell>
这就是一个小队的组成数据了,会英文的很快就能知道每一行代表什么了,不过最好还是结合例子……
<Row ss:AutoFitHeight="0" ss:Height="15">
<Cell><Data ss:Type="String">us_rangers_sniper_01</Data></Cell>
<Cell><Data ss:Type="String">us_rangers_sniper_m24</Data></Cell>
<Cell><Data ss:Type="String">us_rangers_sniper_m24</Data></Cell>
<Cell ss:Index="14" ss:StyleID="s85"><Data ss:Type="String">us_sniper</Data></Cell>
<Cell><Data ss:Type="String">vehicle</Data></Cell>
<Cell><Data ss:Type="String">infantry</Data></Cell>
<Cell><Data ss:Type="String">commando</Data></Cell>
<Cell><Data ss:Type="String">spec_squad</Data></Cell>
<Cell><Data ss:Type="String">bomber</Data></Cell>
<Cell><Data ss:Type="String">UnitTypeIcon\rangers_sniper</Data></Cell>
<Cell><Data ss:Type="String">UnitTypeIcon\infantry_enemy</Data></Cell>
<Cell ss:StyleID="s86"><Data ss:Type="String">usa</Data></Cell>
<Cell><Data ss:Type="Number">300</Data></Cell>
</Row>
这个就是狙击手小队的数据,而在这里面我们可以知道,一个狙击手小队是由2名叫做“us_rangers_sniper_m24”的单位组成的
那么,如果你想增加狙击小队的人数?
添加一行“ <Cell><Data ss:Type="String">us_rangers_sniper_m24”即可……
比方说改成:
<Row ss:AutoFitHeight="0" ss:Height="15">
<Cell><Data ss:Type="String">us_rangers_sniper_01</Data></Cell>
<Cell><Data ss:Type="String">us_rangers_sniper_m24</Data></Cell>
<Cell><Data ss:Type="String">us_rangers_sniper_m24</Data></Cell>
<Cell><Data ss:Type="String">us_rangers_sniper_m24</Data></Cell>
<Cell><Data ss:Type="String">us_rangers_sniper_m24</Data></Cell>
<Cell ss:Index="14" ss:StyleID="s85"><Data ss:Type="String">us_sniper</Data></Cell>
<Cell><Data ss:Type="String">vehicle</Data></Cell>
<Cell><Data ss:Type="String">infantry</Data></Cell>
<Cell><Data ss:Type="String">commando</Data></Cell>
<Cell><Data ss:Type="String">spec_squad</Data></Cell>
<Cell><Data ss:Type="String">bomber</Data></Cell>
<Cell><Data ss:Type="String">UnitTypeIcon\rangers_sniper</Data></Cell>
<Cell><Data ss:Type="String">UnitTypeIcon\infantry_enemy</Data></Cell>
<Cell ss:StyleID="s86"><Data ss:Type="String">usa</Data></Cell>
<Cell><Data ss:Type="Number">300</Data></Cell>
</Row>
这样你开新游戏(开新的一关,也就是在任务选择画面开始,而不要读取一关进行中的旧存档,可能会出错跳出,也可能会毫无效果……),就会发现狙击手小队的人数变成了4人XD
同理,如果你想在一支队伍里增加别的成员,添加适当的语句即可
以下列一些常用的:
<Cell><Data ss:Type="String">us_rangers_01_m4</Data></Cell> 这是游骑兵突击步枪手
<Cell><Data ss:Type="String">us_rangers_01_gl</Data></Cell> 游骑兵榴弹发射器手
<Cell><Data ss:Type="String">us_delta_01_m16:us_delta_01_hk41</Data></Cell> 三角洲突击步枪手
<Cell><Data ss:Type="String">us_delta_01_minimi</Data></Cell> 三角洲机枪手
<Cell><Data ss:Type="String">us_delta_01_gl</Data></Cell> 三角洲榴弹发射器手
<Cell><Data ss:Type="String">us_delta_01_barret</Data></Cell> 三角洲狙击手
修改好存档即可,然后立即进游戏查看吧!
修改时要注意不要改错了……结果把敌人的队伍加强了就惨了;再者在不同的队伍里塞进别的成员,也会影响整个游戏的观感;过分影响游戏平衡也不是好事,更不要说还可能导致错误……请慎重行事
————————————————————————————————————————————————————
接下来是单个步兵的修改
让我们打开
humans.lua
这里同样也有说明段落,想深究的就仔细看吧
<Row ss:StyleID="s66">
<Cell><Data ss:Type="String">sysname</Data></Cell>
<Cell><Data ss:Type="String">health</Data></Cell>
<Cell><Data ss:Type="String">mass</Data></Cell>
<Cell><Data ss:Type="String">max_velocity</Data></Cell>
<Cell><Data ss:Type="String">max_acceleration</Data></Cell>
<Cell><Data ss:Type="String">max_deceleration</Data></Cell>
<Cell><Data ss:Type="String">climb_wall_velocity</Data></Cell>
<Cell ss:StyleID="s67"><Data ss:Type="String">max_walk_velocity</Data></Cell>
<Cell ss:StyleID="s67"><Data ss:Type="String">max_crouch_velocity</Data></Cell>
<Cell ss:StyleID="s67"><Data ss:Type="String">max_crawl_velocity</Data></Cell>
<Cell ss:StyleID="s67"><Data ss:Type="String">angle_velocity</Data></Cell>
<Cell ss:StyleID="s67"><Data ss:Type="String">category </Data></Cell>
<Cell><Data ss:Type="String">mesh</Data></Cell>
<Cell><Data ss:Type="String">gun_mounts</Data></Cell>
<Cell><Data ss:Type="String">ammunition</Data></Cell>
<Cell><Data ss:Type="String">cost_of_dead</Data></Cell>
<Cell><Data ss:Type="String">command_points</Data></Cell>
<Cell><Data ss:Type="String">modules</Data></Cell>
<Cell><Data ss:Type="String">destroy_effect</Data></Cell>
<Cell><Data ss:Type="String">destroy_flash</Data></Cell>
<Cell><Data ss:Type="String">animations</Data></Cell>
<Cell><Data ss:Type="String">abilities</Data></Cell>
<Cell><Data ss:Type="String">perks</Data></Cell>
<Cell><Data ss:Type="String">close_combat</Data></Cell>
<Cell><Data ss:Type="String">formation_place</Data></Cell>
<Cell><Data ss:Type="String">sprite_type</Data></Cell>
<Cell><Data ss:Type="String">vision_radius</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="String">detection_radius_stay</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="String">detection_radius_move</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="String">detection_radius_shoot</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="String">unit_class</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="String">detection_radius_mine</Data></Cell>
<Cell><Data ss:Type="String">unit_type</Data></Cell>
<Cell><Data ss:Type="String">voices</Data></Cell>
</Row>
接下来我们以狙击手小队的狙击手为例,来看看怎么能把狙击手的枪换成三角洲的.50!
首先找到狙击手的数据,其名字可以从之前小队的文件里查看
<Row>
<Cell ss:StyleID="s93"><Data ss:Type="String">us_rangers_sniper_m24</Data></Cell>
<Cell ss:StyleID="s80"><Data ss:Type="String">health_spec_squad</Data></Cell>
<Cell ss:StyleID="s84"><Data ss:Type="String">0.1</Data></Cell>
<Cell><Data ss:Type="String">velocity_us</Data></Cell>
<Cell ss:StyleID="s84"><Data ss:Type="Number">10</Data></Cell>
<Cell ss:StyleID="s84"><Data ss:Type="Number">20</Data></Cell>
<Cell><Data ss:Type="String">0.6</Data></Cell>
<Cell ss:StyleID="s94"><Data ss:Type="String">1.7</Data></Cell>
<Cell ss:StyleID="s94"><Data ss:Type="String">1.0</Data></Cell>
<Cell ss:StyleID="s94"><Data ss:Type="String">1.0</Data></Cell>
<Cell ss:StyleID="s85"><Data ss:Type="String">6</Data></Cell>
<Cell ss:StyleID="s85"/>
<Cell><Data ss:Type="String">us_delta_01</Data></Cell>
<Cell ss:StyleID="s90"><Data ss:Type="String">inf_m24 inf_hk41 inf_hg inf_sg</Data></Cell>
<Cell ss:StyleID="s90"><Data ss:Type="String">ammo_762x51s:140 inf_hg:6 light_sg:3 ammo_556_s:120</Data></Cell>
<Cell><Data ss:Type="Number">10</Data></Cell>
<Cell><Data ss:Type="Number">50</Data></Cell>
<Cell ss:StyleID="s84"/>
<Cell ss:StyleID="s84"/>
<Cell ss:StyleID="s84"/>
<Cell ss:StyleID="s84"><Data ss:Type="String">scripts/species/animations_rifle.txt</Data></Cell>
<Cell ss:StyleID="s84"/>
<Cell ss:StyleID="s84"/>
<Cell ss:StyleID="s84"/>
<Cell ss:StyleID="s84"><Data ss:Type="Number">1</Data></Cell>
<Cell ss:StyleID="s84"/>
<Cell><Data ss:Type="Number">120</Data></Cell>
<Cell ss:StyleID="s95"><Data ss:Type="Number">20</Data></Cell>
<Cell ss:StyleID="s95"><Data ss:Type="Number">50</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="Number">120</Data></Cell>
<Cell ss:StyleID="s84"><Data ss:Type="String">infantry</Data></Cell>
<Cell ss:StyleID="s84"><Data ss:Type="Number">3</Data></Cell>
<Cell ss:StyleID="s84"/>
<Cell ss:StyleID="s92"><Data ss:Type="String">us_sniper</Data></Cell>
<Cell ss:StyleID="s84"/>
<Cell ss:StyleID="s84"/>
<Cell ss:StyleID="s84"/>
<Cell ss:StyleID="s84"/>
<Cell ss:StyleID="s84"/>
<Cell ss:StyleID="s84"/>
</Row>
这一次修改的重点就是这两行了:
<Cell ss:StyleID="s90"><Data ss:Type="String">inf_m24 inf_hk41 inf_hg inf_sg</Data></Cell>
<Cell ss:StyleID="s90"><Data ss:Type="String">ammo_762x51s:140 inf_hg:6 light_sg:3 ammo_556_s:120</Data></Cell>
第1行便是该单位携带的武器,第2行则是他携带的弹药
那么具体要修改成什么呢?在这一点上你可以参考其他单位的武器弹药,来做出适当的选择
我们这里就选择把M24狙击枪改成三角洲狙击手的.50:
<Cell ss:StyleID="s90"><Data ss:Type="String">inf_barret inf_hk41 inf_hk41 inf_hg inf_sg</Data></Cell>
<Cell ss:StyleID="s90"><Data ss:Type="String">ammo_50cal_s2:100 inf_hg:6 light_sg:3 ammo_556_s:120</Data></Cell>
切记弹药也要一起修改!否则不用我说你也知道……
修改好以后存档即可
——————————————————————————————————————————————————
以上两步修改以后,你们的狙击手小队就变成了4人扛.50的恐怖队伍了!
其他单位和小队的修改也是依样画葫芦,你于是可以搞出全榴弹发射器的游骑兵(囧),或者全员轻机枪的陆战队(=_卅)……,不然就是12人的坦克杀手班(囧TL)…………
至于其他单位的修改,我目前尚未深究,敬请见谅……
完毕
[
本帖最后由 常规护航舰 于 2009-6-10 02:35 编辑
]
作者:
reichelite
时间:
2009-6-10 06:26:45
好啊,这下可以狠狠地改了,谢谢楼主的研究……
作者:
chenzh
时间:
2009-6-10 14:47:12
我的硬盘版目录下没有这些lua文件。
是xls文件,我猜也可以这么改吧。
作者:
maxnazi
时间:
2009-6-10 15:12:44
标题:
回复 #3 chenzh 的帖子
好像版本不一样 我的就没.xls文件
作者:
GETNOW
时间:
2009-8-13 14:22:38
用gnysk188851 (
http://game.ali213.net/viewthrea ... p;extra=&page=2
)等人是整一修改的是整一機槍班
,連槍帶彈改成.50Cal阻
后,首關,好在(?)先頭的雙.50Cal重阻人數不變,能做偵查
。。。一調齣來就越級昇為十二人的8重阻連[害怕],暴露在榴彈和坦克中間,這個人數在躲閃時相當不利orz
作者:
hunge
时间:
2009-9-12 00:39:47
问一下楼主,我改了一下Squads.xml,增加了各兵队人数,包括驾驶兵和坦克兵,不过都不超过7人,开始能正常运行游戏,但是玩了一段时间就频繁当机跳出游戏,而且是不定时跳出,就是说不是固定的错误引起的跳出。
我用EXCEL修改文件。
请问有没有解决的办法?
作者:
GETNOW
时间:
2009-10-30 21:55:22
标题:
这个问题我也有遇到,能解决一半问题吧~
不过要改好几个地方,除了那个不知在哪的CIA,我的Saudi与所有美军单位在援军都能使用载具
,缺点是部分超过5人部队有时在游戏中不能进入坦克或者维修载具[伤心啊] ,飞行单位的维修目前还没哪位高人愿意公布数据
欢迎光临 游侠NETSHOW论坛 (https://game.ali213.net/)
Powered by Discuz! X2