闪电战核心单位修改

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

闪电战核心单位修改
先要找到历史战役的第一个章节,例如德裹战役的第一个章节是Poland(“波兰”),用解压程序如WinRAR打开data.pak文件,找到Scenarios\Chapters\German\Poland\Script.lua文件,用文本编辑器打开它,你会在文件的前半部分找到这样一小段命令:
AddNewSlot ("Sdkfz_222");
AddNewSlot ("Pz_Kpfw_II_Ausf_F");
AddNewSlot ("Pz_Kpfw_II_Ausf_F");
AddNewSlot ("10_5mmLeFh18");
AddNewSlot ("10_5mmLeFh18");
AddNewSlot ("10_5mmLeFh18");
这就是增加核心单位的命令语句,你可以增加或修改。

例如将第一句AddNewSlot ("Sdkfz_222");改为AddNewSlot ("Pz_Kpfw_VI_Tiger_Ausf_A_H");(改为增加一辆“虎I”作为核心单位)
或者将AddNewSlot ("10_5mmLeFh18");改为AddNewSlot ("17cmK18");(将105轻型榴弹炮改为17cm重炮)。

再或者直接增加命令语句来增多你的核心单位也可以,但你的每一种核心部队超过6个,那么超出部分将不会在地图上显示出来,除非你在每张地图上增加核心单位
60_cm_Morser_Karl_Gerat_040 改一个卡尔大炮
JagdPanzer_Elefant_Ferdinand_SdKfz184 非迪南
Wirbelwind 狂风
Pz_Kpfw_MAUS 耗子
Pz_Kpfw_VI_Tiger_II_Aus_ B 虎2 注意b前面的空格
M26_General_Pershing_USA 潘兴
Jagdtiger_SdKfz186 猎虎
CoastBattery_Todt 不用说了,闪电战里最最终极武器海岸要塞炮托蒂
一定要注意大小写,少一个空格都会让你跳出来!
谢谢,我都是在每一个章节里的Script.lua中找。

先备分好data.pak文件除了波兰,每一个章节中的Script.lua文件中都有下面的字段表示该关可以使用的武器不断的把后面的章节中的新增武器复制粘贴到france那一关,就可以在第二关使用整个战争的武器
-- adding base upgrades
AddBaseUpgrade( "Sdkfz_234_Puma" );
AddBaseUpgrade( "Hummel_Sdkfz165" );
AddBaseUpgrade( "5-barrel 21cm Nebelwerfer 42" );
AddBaseUpgrade( "Jagdpanzer_38t_Hetzer" );
AddBaseUpgrade( "Pz_Kpfw_V_Panther_Ausf_D" );
AddBaseUpgrade( "Sdkfz_231" );
AddBaseUpgrade( "Pz_38t_Ausf_A" );
AddBaseUpgrade( "Pz_Kpfw_III_Ausf_E" );
AddBaseUpgrade( "Sturmgeschutz_III_Ausf_A_B_C" );
AddBaseUpgrade( "10_cm_ K_18" );
AddBaseUpgrade( "8.8-cm FlaK18" );
AddBaseUpgrade( "Pz_38t_Ausf_A" ); -- add Pz38t after Africa
AddBaseUpgrade( "Pz_Kpfw_II_Ausf_F" ); -- add Pz II F after Africa
AddBaseUpgrade( "Pz_Kpfw_III_Ausf_J" );
AddBaseUpgrade( "Pz_Kpfw_IV_Ausf_D" );
AddBaseUpgrade( "2_cm_FlaK30_38" );
AddBaseUpgrade( "7_62_cm_Pak36" );
AddBaseUpgrade( "Sturmgeschutz_III_Ausf_D" );
AddBaseUpgrade( "15_cm_sFH18" );
AddBaseUpgrade( "7.5-cm Pak40" );
AddBaseUpgrade( "Pz_Kpfw_IV_Ausf_G" );
AddBaseUpgrade( "Sturmgeschutz_III_Ausf_F" );
AddBaseUpgrade( "6-barrel 15cm Nebelwerfer 41" );
AddBaseUpgrade( "Wespe_SdKfz124" );
AddBaseUpgrade( "Panzerjager_Nashorn_Sdkfz164" );
AddBaseUpgrade( "15cmK39" );
AddBaseUpgrade( "Jagdtiger_SdKfz186" );
AddBaseUpgrade( "JagdPanzer_Elefant_Ferdinand_SdKfz184" );
AddBaseUpgrade( "Pz_Kpfw_VI_Tiger_Ausf_A_H" );
AddBaseUpgrade( "Pz_Kpfw_VI_Tiger_II_Aus_ B" );
AddBaseUpgrade( "Wirbelwind" );
AddBaseUpgrade( "17cmK18" );
AddBaseUpgrade( "10.5-cm_Flak38" );
AddBaseUpgrade( "Pz_Kpfw_V_Panther_Ausf_G" );
AddBaseUpgrade( "Pz_Kpfw_MAUS" );
我已经添加完了,把上面的字段覆盖到第二关就是france那一关的Script.lua中,注意和原来的格式一定要一致,最后一个和下面的字段之间只有一个回车,否则跳出来不要找我,然后从头开打,到第二关就可以使用所有的德军武器了。

注意一定要先备分好data.pak文件!!!!表太变态了,改来改去可以体验在最短的时间里通关的乐趣,但是少了一份真实,所以我现在已经不改游戏了,一关一关的打比较真实!!!
升级所需要的经验修改,首先打开winrar,在选项里面设置查看器,选择外部查看器,外部查看器的名称选择C:\WINDOWS\NOTEPAD.EXE,确定。

备份data.pak文件。

用winrar打开data目录里的data.pak文件,再打开路径是data.pak\Units 中的AIPrices.xml 文件,先改炮兵,找到如下字段
<Type>art_gun</Type>
<Levels>
<item Exp="0" BonusSpeed="1" BonusRelaxTime="1" BonusDispersion="1" BonusSight="1" BonusFireRange="1" BonusRotate="1"/>
<item Exp="50" BonusSpeed="1" BonusRelaxTime="0.7" BonusDispersion="0.7"
<item Exp="350" BonusSpeed="1" BonusRelaxTime="0.6" BonusDispersion="0.6" BonusSight="1.15" BonusFireRange="1.15" BonusRotate="1.3"/>
<item Exp="1500" BonusSpeed="1" BonusRelaxTime="0.5" BonusDispersion="0.5" BonusSight="1.2" BonusFireRange="1.2" BonusRotate="1.5"/>
</Levels>
<!--artillery gun-->
</item>
<item>
<Type>art_howitzer</Type>
<Levels>
<item Exp="0" BonusSpeed="1" BonusRelaxTime="1" BonusDispersion="1" BonusSight="1" BonusFireRange="1" BonusRotate="1"/>
<item Exp="100" BonusSpeed="1" BonusRelaxTime="0.9" BonusDispersion="0.9" BonusSight="1.1" BonusFireRange="1.1" BonusRotate="1.1"/>
<item Exp="700" BonusSpeed="1" BonusRelaxTime="0.75" BonusDispersion="0.75" BonusSight="1.15" BonusFireRange="1.2" BonusRotate="1.3"/>
<item Exp="3500" BonusSpeed="1" BonusRelaxTime="0.6" BonusDispersion="0.6" BonusSight="1.2" BonusFireRange="1.3" BonusRotate="1.5"/>
</Levels>
<!--artillery howitzer-->
</item>
<item>
<Type>art_heavy_gun</Type>
<Levels>
<item Exp="0" BonusSpeed="1" BonusRelaxTime="1" BonusDispersion="1" BonusSight="1" BonusFireRange="1" BonusRotate="1"/>
<item Exp="100" BonusSpeed="1" BonusRelaxTime="0.9" BonusDispersion="0.9" BonusSight="1.1" BonusFireRange="1.1" BonusRotate="1.1"/>
<item Exp="700" BonusSpeed="1" BonusRelaxTime="0.75" BonusDispersion="0.75" BonusSight="1.15" BonusFireRange="1.2" BonusRotate="1.3"/>
<item Exp="3500" BonusSpeed="1" BonusRelaxTime="0.6" BonusDispersion="0.6" BonusSight="1.2" BonusFireRange="1.3" BonusRotate="1.5"/>
</Levels>
<!--artillery heavy gun-->
看到没有item Exp=“***”***就是升级所需要的经验,改小点推荐是50,100,150。

然后是装甲战车,找到如下字段:
<Type>arm_light</Type>
<Levels>
<item Exp="0" BonusSpeed="1" BonusRelaxTime="1" BonusDispersion="1" BonusSight="1" BonusFireRange="1" BonusRotate="1"/>
<item Exp="200" BonusSpeed="1" BonusRelaxTime="0.9" BonusDispersion="0.9"
<item Exp="1300" BonusSpeed="1" BonusRelaxTime="0.75" BonusDispersion="0.75" BonusSight="1.1" BonusFireRange="1.1" BonusRotate="1.3"/>
<item Exp="5000" BonusSpeed="1" BonusRelaxTime="0.6" BonusDispersion="0.6" BonusSight="1.15" BonusFireRange="1.15" BonusRotate="1.5"/>
</Levels>
<!--armor light-->
</item>
<item>
<Type>arm_medium</Type>
<Levels>
<item Exp="0" BonusSpeed="1" BonusRelaxTime="1" BonusDispersion="1" BonusSight="1" BonusFireRange="1" BonusRotate="1"/>
<item Exp="200" BonusSpeed="1" BonusRelaxTime="0.9" BonusDispersion="0.9" BonusSight="1.05" BonusFireRange="1.05" BonusRotate="1.1"/>
<item Exp="1300" BonusSpeed="1" BonusRelaxTime="0.75" BonusDispersion="0.75" BonusSight="1.1" BonusFireRange="1.1" BonusRotate="1.3"/>
<item Exp="5000" BonusSpeed="1" BonusRelaxTime="0.6" BonusDispersion="0.6" BonusSight="1.15" BonusFireRange="1.15" BonusRotate="1.5"/>
</Levels>
<!--armor medium-->
由于新游戏都是轻型和中型战车,而且没有自走火炮,所以改这两个就行了,和改炮兵一样。

退出保存,重新开始游戏,就可以在短时间内升到精英单位了。

表太变态了,改来改去可以体验在最短的时间里通关的乐趣,但是少了一份真实,所以我现在已经不改游戏了,一关一关的打比较真实!!!
战车的火炮和装甲的修改-以t-34模型为例
目标:使t-34模型的火炮为虎2的火炮,副武器为wribelwind的武器,前后左右装甲值为500 备份data目录下的data.pak文件
用winrar打开data.pak文件,打开路径是data.pak\Units\Technics\USSR\Tanks\T_34中的“1.xml”文件,找到下面的字段
<Weapon>dt7_62</Weapon></item><item Priority="0" Ammo="102" Direction="65535" ReloadCost="283" ShootPoint="17" Recoil="1" RecoilLength="5.83767" RecoilTime="50" ModelPart="4" RecoilShakeTime="400" RecoilShakeAngle="0.0523599"><Weapon>f34</Weapon></item><item Priority="1" Ammo="1800" Direction="65535" ReloadCost="1" ShootPoint="14" Recoil="0" RecoilLength="0" RecoilTime="50" ModelPart="-1" RecoilShakeTime="400" RecoilShakeAngle="0.0523599"><Weapon>dt7_62</Weapon></item></Guns><ArmorLeft
Min="49" Max="77"/><ArmorRight Min="49" Max="77"/><ArmorTop Min="19" Max="34"/><ArmorBottom Min="5" Max="21"/><ArmorFront Min="70" Max="106"/><ArmorBack Min="70" Max="76"/>
把f34改成88mm_kwk43_l71,把dt7_62改成20mm_flakvierling,
把min=“***”和max=“***”中的***改成500,退出存盘。

一定要先备份好data.pak文件,要是改的失败还可以还原!
表太变态了,改来改去可以体验在最短的时间里通关的乐趣,但是少了一份真实,所以我现在已经不改游戏了,一关一关的打比较真实!!!
武器的修改以88公厘炮为例
备份data目录下的data.pak文件
用winrar打开data.pak文件,打开路径是data.pak\Weapons
找到88_flak_18.xml文件打开,改前半部的字段就可以了
<?xml version="1.0"?>
<base><History><PreviousPath>s:\complete\weapons\german\artillery\88mm_flak18\current.wpn< /PreviousPath><PreviousDate>24.01.2003</PreviousDate><PreviousTime>15:00:35</PreviousTi me><PreviousOwner>Alexander.Valencia</PreviousOwner><Action>Exported
as</Action><CurrentPath>s:\versions\current\data\weapons\88mm_flak_18.xml</CurrentPath><C urrentDate>24.01.2003</CurrentDate><CurrentTime>15:00:36</CurrentTime><CurrentOwner>Al exander.Valencia</CurrentOwner></History><RPG Dispersion="3.47" AimingTime="0.5" AmmoPerBurst="1" RangeMax="65" RangeMin="5" Ceiling="10600" DeltaAngle="10" RevealRadius="0"><KeyName>88mm
Flak-18</KeyName><StatsType>Weapon</StatsType><Shells><item TrajectoryType="0" Piercing="136" PiercingRandom="50" DamagePower="110" DamageRandom="55" Area="1.5" Area2="2.9" ProjectileSpeed="200" DetonationPower="0" BrokeTrackProbability="0" FireRate="60" RelaxTime="1" DamageType="0" TraceProbability="0"
改几个主要数据:
AimingTime="0.5" 瞄准时间
AmmoPerBurst="1" 弹药爆炸范围
RangeMax="65" 平地最大射程
RangeMin="5" 平地最小射程
Ceiling="10600" 射击高度
DeltaAngle="10" 发射角度
Piercing="136" 穿甲
PiercingRandom="50"穿甲随机
DamagePower="110" 伤害
DamageRandom="55" 伤害随机
ProjectileSpeed="200"炮弹速度
如果不是远程炮,改最远射程也无法起到远程炮的效果
"60_cm_Morser_Karl_Gerat_040"卡尔大炮怎么会不对哪,卡尔大炮和旋风自走炮应该是炮兵单位,而不是战车单位,
“Wirbelwind”是旋风的呀,代码是引号里的,一定要注意格式和大小写,差一点都不行的!“T_28_USA”
“Jagdpanther_SdKfz173”猎豹
“Jagdtiger_SdKfz186”猎虎
“Sturmpanzer_IV_Brummbar_SdKfz166”熊式榴弹炮
“BM_8-48”
盟军的,齐了!
-- adding depot upgrades
AddBaseUpgrade( "105mm_M2A1_USA" ); AddBaseUpgrade( "155mm_M1_USA" ); AddBaseUpgrade( "155mm_M1A1_USA" ); AddBaseUpgrade( "25pdr_QFH_GB" ); AddBaseUpgrade( "25pdr_QFH_Polish" ); AddBaseUpgrade( "2pdr_QFG_GB" ); AddBaseUpgrade( "3inch_Mortar_GB" ); AddBaseUpgrade( "4_5_inch_Gun_GB" ); AddBaseUpgrade( "40mm_Bofors_GB" ); AddBaseUpgrade( "6pdr_QFG_GB" ); AddBaseUpgrade( "76mm_M1A1_USA" ); AddBaseUpgrade( "81mm_M29A1_USA" ); AddBaseUpgrade( "90mm_M2_USA" ); AddBaseUpgrade( "T34_Calliope_USA" ); AddBaseUpgrade( "Bishop_GB" );
AddBaseUpgrade( "Crusader_AA_GB" ); AddBaseUpgrade( "M10_Wolverine_USA" ); AddBaseUpgrade( "M13_GMC_USA" ); AddBaseUpgrade( "M15_GMC_USA" ); AddBaseUpgrade( "M16_GMC_USA" ); AddBaseUpgrade( "M36_Slugger_USA" ); AddBaseUpgrade( "M7_Priest_USA" ); AddBaseUpgrade( "Sexton_II_GB" ); AddBaseUpgrade( "T_28_usa" );
AddBaseUpgrade( "7TP_Polish" );
AddBaseUpgrade( "Cruiser_MKVI_Crusader_GB" ); AddBaseUpgrade( "Cruiser_MKVIII_Cromwell_GB" ); AddBaseUpgrade( "Humber_MK1_GB" ); AddBaseUpgrade( "Infantry_MKII_Matilda_GB" ); AddBaseUpgrade( "Infantry_MKIII_Valentine_GB" ); AddBaseUpgrade( "Infantry_MKIV_Churchill_GB" ); AddBaseUpgrade( "M26_General_Pershing_USA" ); AddBaseUpgrade( "M3_General_Stuart_USA" ); AddBaseUpgrade( "M3_Grant_GB" ); AddBaseUpgrade( "M4A1_General_Sherman_USA" ); AddBaseUpgrade( "M4A3_76W_General_Sherman_USA" ); AddBaseUpgrade( "M4A3_General_Sherman_USA" ); AddBaseUpgrade( "M5_General_Stuart_USA" ); AddBaseUpgrade( "M8_Greyhound_USA" );
AddBaseUpgrade( "S35_Somua_France" );
S军的
记得备份啊
修改data\data.pak\Scenarios\Chapters\USSR\Leningrad\script.lua
-- adding units to depot
AddBaseUpgrade( "37_mm_61_K" );
AddBaseUpgrade( "JSU_152" );
AddBaseUpgrade( "JS_3" );
AddBaseUpgrade( "M4A2_Sherman_Lend_Lease" ); AddBaseUpgrade( "JSU_122" );
AddBaseUpgrade( "57-mm ZIS-2" );
AddBaseUpgrade( "76-mm ZIS-3" );
AddBaseUpgrade( "85-mm_52-K" );
AddBaseUpgrade( "BM_13" );
AddBaseUpgrade( "T-70" );
AddBaseUpgrade( "MKII_Matilda_Lend_Lease" ); AddBaseUpgrade( "122-mm_A-19" );
AddBaseUpgrade( "SU_85" );
AddBaseUpgrade( "SU_152" );
AddBaseUpgrade( "BM_8-48" );
AddBaseUpgrade( "KV_1C" );
AddBaseUpgrade( "152_mm_D1" );
AddBaseUpgrade( "T-34-85" );
AddBaseUpgrade( "BM_31_12" );
AddBaseUpgrade( "152-mm_ML-20" );
AddBaseUpgrade( "76_2mm_F22" );
AddBaseUpgrade( "T_34_76" );
AddBaseUpgrade( "MKIII_Valentine_Lend_Lease" ); AddBaseUpgrade( "T-34" );
AddBaseUpgrade( "SU_100" );。

相关文档
最新文档