Here is the error:
Code: Select all
OnDestroy [Starton Eridani]: Unknown ship class ID [-602299387] ### (sysCreateShip -602299387 (objGetNearestStargate gSource) 4113) ###
Code: Select all
<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
[
<!ENTITY unidExtension "0xD0090099">
<!ENTITY scCommonwealthCruiser "0xD0090098">
]>
<TranscendenceExtension UNID="&unidExtension;" version="0.99" name="Avenge">
<ShipClass UNID="&scAquilaCruiser;"
manufacturer= "Pacific Defense Corporation"
class= "Aquila"
type= "cruiser"
score= "2835"
mass= "10000"
cargoSpace= "1000"
thrust= "5000"
maneuver= "12"
maxSpeed= "16"
cyberDefenseLevel= "8"
explosionType= "&vtThermoExplosion2;"
leavesWreck= "100"
attributes= "capitalShip, commonwealth, commonwealthFleet, commonwealthMilitary, genericClass"
>
<Escorts>
<Ships>
<Ship count="8" class="&scBritannia;" orders="escort" noFriendlyTarget= "true"/>
</Ships>
</Escorts>
<Armor>
<ArmorSection start="345" span="15" armorID="&itP210HexphaseArmor;" />
<ArmorSection start="330" span="15" armorID="&itP210HexphaseArmor;" />
<ArmorSection start="315" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="300" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="285" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="270" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="255" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="240" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="225" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="210" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="195" span="15" armorID="&itP210HexphaseArmor;" />
<ArmorSection start="180" span="15" armorID="&itP210HexphaseArmor;" />
<ArmorSection start="165" span="15" armorID="&itP210HexphaseArmor;" />
<ArmorSection start="150" span="15" armorID="&itP210HexphaseArmor;" />
<ArmorSection start="135" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="120" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="105" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="90" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="75" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="60" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="45" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="30" span="15" armorID="&itP210HexphaseArmor;" nonCritical="general"/>
<ArmorSection start="15" span="15" armorID="&itP210HexphaseArmor;" />
<ArmorSection start="0" span="15" armorID="&itP210HexphaseArmor;" />
</Armor>
<Devices>
<Device deviceID="&itStarCannon;" omnidirectional="true"/>
<Device deviceID="&itStarCannon;" omnidirectional="true"/>
<Device deviceID="&itNAMIHeavyLauncher;" secondaryWeapon="true" minFireArc="340" maxFireArc="200" posAngle="115" posRadius="50" posZ="0"/>
<Device deviceID="&itNAMIHeavyLauncher;" secondaryWeapon="true" minFireArc="160" maxFireArc="20" posAngle="245" posRadius="50" posZ="0"/>
<Device deviceID="&itR9Deflector;"/>
</Devices>
<Image imageID="&rsLargeShips1;" imageX="1728" imageY="0" imageWidth="192" imageHeight="192" imageFrameCount="0" imageTicksPerFrame="0"/>
<Items>
<Item count="40d20" item="&itM5Missile;"/>
</Items>
<AISettings
fireRateAdj= "20"
fireAccuracy= "95"
perception= "4"
combatStyle= "standOff"
/>
</ShipClass>
(
setq intCommonwealthOnDestroy (lambda Nil
(block (aquilaCruiser theDestroyer)
; Destroy items on the station
(intDestroyItems gSource)
; Create a corporate cruiser to avenge the station
(setq aquilaCruiser
(sysCreateShip &scCommonwealthCruiser;(objGetNearestStargate gSource) &svCommonwealth;;)
)
; If someone destroyed the station, avenge
(setq theDestroyer aOrderGiver)
(if (and theDestroyer
(objCanAttack theDestroyer)
(not (eq (objGetSovereign theDestroyer) &svCommonwealth;;)))
(block Nil
(objSendMessage gPlayerShip gSource "Commonwealth station destroyed! Deploy commomwealth avenger!")
(shpOrderAttack aquilaCruiser theDestroyer)
; Since the cruiser is busy, deploy some transports to loot the station
(for i 1 (random 1 3)
(block (transport)
(setq transport
(sysCreateShip &scEI500; (objGetNearestStargate gSource) &svCommonwealth;;)
)
(shpOrderLoot transport gSource)
(shpOrderGate transport)
)
)
)
)
; Take all the items from the station (so that others won't loot it)
(shpOrderLoot CommonwealthCruiser gSource)
; Gate out
(shpOrderGate CommonwealthCruiser)
)
))
</TranscendenceExtension>