My new Fire SW ain't working. It keeps throwing an IE stating that the thread tried to divide by zero. Funny thing is: I have two other Fire SWs that work flawlessly. Here's the coding:
Code:
;Command Center (Cryo)
[CRYOCC]
Name=COMC
UIName=Name:COMC
Image=GAROBO
BuildCat=Resource
Prerequisite=CRYOR,GACNST
TechLevel=7
Strength=600
Adjacent=2
Points=30
Power=-100
Sight=6
Armor=wood
Cost=2000
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS2LG,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM,DBRIS6LG,DBRIS6SM,DBRIS7LG
MaxDebris=12
MinDebris=6
HalfDamageSmokeLocation1=0,0,0
;DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys
DamageSmokeOffset=410, 100, 165
ThreatPosed=1 ; This value MUST be 0 for all building addons
Crewed=yes
AIBuildThis=yes
TogglePower=yes
Powered=true
;PowersUnit=ROBO;one of these buildings must be present and powered, or else these guys turn off.
ImmuneToPsionics=no ;gs per Dustin, never intended to be yes, defaults to yes for buildings, no for others
Capturable=false
SuperWeapon=CryoSatSpecial
Primary=CryoSpecial
EMPulseCannon=yes
Spyable=yes
BuildLimit=1
; Ice on your head
[CryoSpecial]
Damage=700
ROF=1
Range=100;1.83;GEF Since we have a new long range gas effect now, might as well make the Chaos Drone only approach as much as it needs to in order to affect the target
Projectile=Invisible
Speed=100
Warhead=IceField
RadLevel=100
RadColor=119,143,255
RadSiteWarhead=IceRad
[CryoSatSpecial]
UIName=Name:CRYOSAT
Name=Cryo Satellite Laser
RechargeTime=1
Type=Fire ;Fire is the type for the Firing SW
Action=IceShot ;check out the Adding custom Actions page to find out more about this
SidebarImage=FIREATICON
ShowTimer=no
DisableableFromShell=no
I looked up a thread where someone had a similar problem. He solved it by changing Type=Fire to Type=EMPulse. However, note that I have two other SW using Type=Fire and they don't have any problem.
Your weapon needs valid Report= or shit happens if you try to use it with Fire or EMPulse type SW. This remains from TS where EMP Cannon superweapon has similar problem.
If you don't want to hear any sound just put Report=Dummy to the weapon to prevent it from causing IE. _________________ QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum