AI乱造单位的BUG和解决方法
; ******* Vehicle Type List *******
; This lists all of the vehicles types in the game. Each vehicle
; type should have a matching section that specifies the data it
; requires.
[VehicleTypes]
100=*****
101=*****
102=MR60
103=*****
[MR60]
Image=MCV2
UIName=Name:FTNK
Name=ROCKET CAR
Category=AFV
Prerequisite=GAWEAP,GATECH
TechLevel=7
Primary=RedEye3
Armor=light
Strength=230
Sight=10
Speed=6
Turret=yes
IsTilter=yes
Crusher=yes
TooBigToFitUnderBridge=true
CrateGoodie=yes
Owner=British,French,Germans,Americans,Alliance
Cost=1600
Points=60
ROT=5
IsSelectableCombatant=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
VoiceSelect=GenAllVehicleSelect
VoiceMove=GenAllWaterMove
VoiceAttack=GenAllWaterAttackCommand
VoiceFeedback=
AllowedToStartInMultiplayer=YES
MaxDebris=2
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
MovementZone=Normal
ThreatPosed=15; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
PreventAttackMove=no
Accelerates=false
ImmuneToVeins=yes
Size=3
MovingFire=no
LandTargeting=1
NavalTargeting=6
解决方法:
只要把TECHLEVEL=-1的單位代码名称放在100以後便可了,因为游戏AI系统只能支持[VehicleTypes]100之内TECHLEVEL=10的单位(即可以建造的单位)就是说可以建造的单位的注册代码必须在100之内,把原先TECHLEVEL=-1的不可建造单位的[VehicleTypes]排到100以上。
比如
[VehicleTypes]
98=*****
99=MR60
100=*****
怪不得许多国外的MOD的RULES文件都要把注册单位重排一下.