Help with code

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Hades
Commonwealth Pilot
Commonwealth Pilot
Posts: 53
Joined: Sat Jan 26, 2008 3:01 pm

For some reason when I try to play the Centurion-class Heavy gunship and it has weird graphics and after a little bit it crashes the game.
<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
[

<!ENTITY scCenturionXPlayer "0xD0C47609">

]>

<TranscendenceExtension UNID="0xD0C47609" version="0.98d">

<!-- Centurion/X-class Heavy Gunship -->

<ShipClass UNID="&scCenturionXPlayer;"
manufacturer= "Pacific Defense Corporation"
class= "Centurion/X"
type= "heavy gunship"
score= "1230"
techOrder= "mech"

mass= "250"
reactorPower= "1000"
fuelCapacity= "35000"
cargoSpace= "50"
thrust= "2000"
rotationCount= "40"
maneuver= "4"
maxSpeed= "22"

maxArmor= "20000"
maxCargoSpace= "60"
maxDevices= "12"
maxNonWeapons= "8"

leavesWreck= "50"
>

<Armor>
<ArmorSection start="315" span="90" armorID="&itP120HexphaseArmor;" areaSet="0,2" />
<ArmorSection start="225" span="90" armorID="&itP120HexphaseArmor;" areaSet="3,4" />
<ArmorSection start="135" span="90" armorID="&itP120HexphaseArmor;" areaSet="1,6" />
<ArmorSection start="45" span="90" armorID="&itP120HexphaseArmor;" areaSet="7,13" />
</Armor>

<Devices>
<Device deviceID="&itStarCannon;"/>
<Device deviceID="&itR5Deflector;"/>
</Devices>

<Items>
</Items>

<Image imageID="&rsMediumShips2;" imageX="320" imageY="0" imageWidth="64" imageHeight="64"/>

<AISettings
fireRateAdj= "15"
fireAccuracy= "90"
perception= "4"
/>

<DriveImages>
<NozzleImage imageID="&rsDriveExhaust;" imageX="48" imageY="0" imageWidth="48" imageHeight="48" imageFrameCount="0" imageTicksPerFrame="0"/>
<NozzlePos x="-48" y="18"/>
<NozzlePos x="-48" y="-18"/>
</DriveImages>

<PlayerSettings
desc= "This ship is a playable version of the Heavy Gunship."
initialClass= "true">

<ArmorDisplay>
<ArmorSection name="forward"
imageID="&rsWolfenArmor;"
imageX="0" imageY="0" imageWidth="52" imageHeight="15"
destX="42" destY="19" hpX="55" hpY="18"
nameY="8" nameBreakWidth="200" nameDestX="0" nameDestY="10" />

<ArmorSection name="starboard"
imageID="&rsWolfenArmor;"
imageX="75" imageY="0" imageWidth="23" imageHeight="69"
destX="94" destY="34" hpX="97" hpY="60"
nameY="30" nameBreakWidth="360" nameDestX="12" nameDestY="0" />

<ArmorSection name="port"
imageID="&rsWolfenArmor;"
imageX="52" imageY="0" imageWidth="23" imageHeight="69"
destX="19" destY="34" hpX="13" hpY="60"
nameY="52" nameBreakWidth="200" nameDestX="0" nameDestY="8" />

<ArmorSection name="aft"
imageID="&rsWolfenArmor;"
imageX="0" imageY="75" imageWidth="52" imageHeight="16"
destX="42" destY="103" hpX="55" hpY="107"
nameY="74" nameBreakWidth="360" nameDestX="12" nameDestY="0" />
</ArmorDisplay>

<ShieldDisplay>
<Image imageID="&rsWolfenShields;" imageX="0" imageY="0" imageWidth="136" imageHeight="136"/>
</ShieldDisplay>

<ReactorDisplay>
<Image imageID="&rsZubrinReactor;"
imageX="0" imageY="0" imageWidth="256" imageHeight="60"/>

<PowerLevelImage imageID="&rsZubrinReactor;"
imageX="0" imageY="60" imageWidth="202" imageHeight="14"
destX="54" destY="9"/>

<FuelLevelImage imageID="&rsZubrinReactor;"
imageX="0" imageY="74" imageWidth="194" imageHeight="14"
destX="54" destY="37"/>

<FuelLowLevelImage imageID="&rsZubrinReactor;"
imageX="0" imageY="88" imageWidth="194" imageHeight="14"/>

<ReactorText x="62" y="22" width="154" height="14"/>
<PowerLevelText x="62" y="0" width="154" height="9"/>
<FuelLevelText x="62" y="51" width="154" height="9"/>
</ReactorDisplay>

</PlayerSettings>

</ShipClass>
</TranscendenceExtension>
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

Did you give this ship 40 facings?
User avatar
Hades
Commonwealth Pilot
Commonwealth Pilot
Posts: 53
Joined: Sat Jan 26, 2008 3:01 pm

Ah, okay that was the problem. Thanks. No wonder I didn't put that in my other ship mods.
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

:wink:
Post Reply