I posted this at Sleipnir's Stuff, but I thought I'd stick it here too:
I've had some problems with a Helicarrier I've been working on. I KNOW the art files work fine because I have seen the unit work, but recently making the Helicarrier attack has led it to crash (when the Copters should leave the Helicarrier). I've got the units in the lists etc, and the Copter weapons DO work. The other code is below:
[LEV]
Name=Flagship Leviathan
UIName=Name:LEVIATHAN
Image=LEV2
NavalTargeting=1
Prerequisite=GAYARD,GATECH
Primary=RAILGUN ;Railguns work fine
ElitePrimary=RAILGUNE
Secondary=CopterLauncher
Spawns=APACHE
SpawnsNumber=4
SpawnRegenRate=200
SpawnReloadRate=75
[CopterLauncher]
Damage=1
ROF=10
Range=75
Spawner=yes
Projectile=InvisibleASW ;This works - it's on other units too
Speed=10
Warhead=Special
OmniFire=yes
[CopterLauncher2]
Damage=1
ROF=10
Range=75
Spawner=yes
Projectile=Invisible
Speed=10
Warhead=Special
OmniFire=yes
[APACHE]
UIName=Name:APACHE
Name=Leviathan ASW Copter
Primary=Medusa2 ;This is an ASW missile, like Osprey but different.
Secondary=HornetCollision
ElitePrimary=Medusa2E
Strength=100
Category=AirPower
NavalTargeting=2
Armor=light
Spawned=yes
TechLevel=-1
Sight=5
RadarInvisible=yes
Trainable=yes
Landable=yes
MoveToShroud=yes
CrateGoodie=no
Speed=14
PitchSpeed=.16
Owner=Americans,British,French,Germans,Alliance
Cost=100
Points=20
ROT=5
Ammo=500 ;This works - copter never reloads (like normal units)
Reload=1
GuardRange=30
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUM U60
Maxdebris=2
AuxSound1=HornetTakeoff
AuxSound2=HornetLanding
CrashingSound=HornetDie
DieSound=HornetDie
ImpactLandSound=GenAircraftCrash
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
AllowedToStartInMultiplayer=no
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
Fighter=yes
[APACHE2]
UIName=Name:APACHE
Name=Helicarrier Attack Copter
Primary=QuadCannon
Secondary=HornetCollision
ElitePrimary=Apache2GunE
Image=APACHE
Strength=100
Category=AirPower
NavalTargeting=2
Armor=light
Spawned=yes
TechLevel=-1
Sight=10
RadarInvisible=yes
Trainable=yes
Landable=yes
MoveToShroud=yes
CrateGoodie=no
Speed=14
PitchSpeed=.16
Owner=Russians,Confederation,Africans,Arabs
Cost=100
Points=20
ROT=5
Ammo=500
Reload=1
GuardRange=30
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUM U60
Maxdebris=2
MoveSound=ArmoredTransportAttack
AuxSound1=HornetTakeoff
AuxSound2=HornetLanding
CrashingSound=HornetDie
DieSound=HornetDie
ImpactLandSound=GenAircraftCrash
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
AllowedToStartInMultiplayer=no
ThreatPosed=15
DamageParticleSystems=SparkSys,SmallGreySSys
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Fighter=yes
[HCARRIER]
UIName=Name:HCARRIER
Name=Soviet Heli Carrier
Prerequisite=NAYARD,NATECH
Primary=CopterLauncher2
CanPassiveAquire=no
CanRetaliate=no
Spawns=APACHE2
SpawnsNumber=1
SpawnRegenRate=500 ;750
SpawnReloadRate=10 ;200
NoSpawnAlt=yes
I'm not sure as to what the problem could be - it has worked in the past, but whether the Rulesmd.ini has a life of its own and rewrites itself ( ) is another question (I could have sworn this has happened before lol). The spawn weapon has worked before and has worked as 2nd weapon, so any suggestions as to why it crashes would be v. welcome indeed

.