Code: Select all
<ItemType UNID="&itFlak;"
name= "Flak Cannon Battery"
level= "6"
value= "7000"
mass= "2500"
frequency= "rare"
modifiers= "MajorItem; Military"
showReference= "true"
description= "Autotracking FlaK Battery."
>
<Effect>
<Image imageID="&rsMissiles;" imageX="0" imageY="32" imageWidth="16" imageHeight="16" imageFrameCount="12" imageTicksPerFrame="3"/>
</Effect>
<Weapon
type= "missile"
omnidirectional= "true"
multitarget = "true"
directional = "true"
damage= "kinetic:1d3+1; momentum2; emp1"
fireRate= "20"
missileSpeed= "35"
lifetime= "20-40"
powerUse= "50"
fireEffect= "&efMediumCannonFlash;"
recoil= "2"
sound= "&snRecoillessCannon;"
>
<Image imageID="&rsMissiles;" imageX="0" imageY="0" imageWidth="20" imageHeight="20" imageFrameCount="0" imageTicksPerFrame="0"/>
<Fragment
count= "4-8"
type= "missile"
lifetime= "1-8"
damage= "blast:1d6+2; WMD1"
missileSpeed= "50-60"
>
<Image imageID="&rsMissiles;" imageX="3" imageY="0" imageWidth="16" imageHeight="16" imageFrameCount="0" imageTicksPerFrame="0"/>
<!-- Second fragemnt goes HERE, just before the end fragment tag-->
<Fragment
count= "1"
type= "area"
damage= "kinetic:1d4+2; EMP1"
missileSpeed= "0"
expansionSpeed= "100"
lifetime= "1-4"
>
<Effect>
<Shockwave>
<Image imageID= "&rsShockwave1;"
imageX= "0"
imageY= "0"
imageWidth= "512"
imageHeight= "128"
imageFrameCount= "1"
imageTicksPerFrame= "1"/>
</Shockwave>
</Effect>
</Fragment>
</Fragment>
<!-- Removing one Shot-entry should work. -->
<Configuration aimTolerance="5">
<Shot posAngle="20" posRadius="0" angle="0"/>
<Shot posAngle="-20" posRadius="0" angle="0"/>
</Configuration>
</Weapon>
</ItemType>
After talking to digdug on IRC he pointed out after a few trials that the problem seems to be fireEffect in combination with the Fragments and the Configuration. My earlier tries had shown that the fireEffect with a single firing weapon (normal, or even configuration="alternate") works, too, but as soon as there are more than one simultanious firing cannons the error above occurs.
DigDug's 'fixed' code is as follows:
Code: Select all
<ItemType UNID="&itFlak;"
name= "Flak Cannon Battery"
level= "6"
value= "7000"
mass= "2500"
frequency= "rare"
modifiers= "MajorItem; Military"
showReference= "true"
description= "Autotracking FlaK Battery."
>
<Weapon
type= "missile"
omnidirectional= "true"
multitarget = "true"
configuration = "wall"
damage= "kinetic:1d3+1; momentum2; emp1"
fireRate= "20"
missileSpeed= "35"
lifetime= "20-40"
powerUse= "50"
recoil= "2"
sound= "&snRecoillessCannon;"
>
<Effect>
<Image imageID="&rsMissiles;" imageX="0" imageY="0" imageWidth="16" imageHeight="16" imageFrameCount="0" imageTicksPerFrame="0"/>
</Effect>
<Fragment
count= "4-8"
type= "missile"
lifetime= "1-8"
damage= "blast:1d6+2; WMD1"
missileSpeed= "50-60"
>
<Image imageID="&rsMissiles;" imageX="3" imageY="0" imageWidth="16" imageHeight="16" imageFrameCount="0" imageTicksPerFrame="0"/>
<!-- Second fragemnt goes HERE, just before the end fragment tag-->
<Fragment
count= "1"
type= "area"
damage= "kinetic:1d4+2; EMP1"
missileSpeed= "0"
expansionSpeed= "100"
lifetime= "1-4"
>
<Effect>
<Shockwave>
<Image imageID= "&rsShockwave1;"
imageX= "0"
imageY= "0"
imageWidth= "512"
imageHeight= "128"
imageFrameCount= "1"
imageTicksPerFrame= "1"/>
</Shockwave>
</Effect>
</Fragment>
</Fragment>
</Weapon>
</ItemType>
Hope that made sense :)
EDIT: Altered the topic to fit better.