Here is the debug
05/09/2006 08:54:18 Loading extension: Extensions\XWingPlayer
05/09/2006 08:54:18 Unable to add image 12f
05/09/2006 08:54:27 End logging session
Here is the XwingPlayer extension
<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
[
<!ENTITY scXwing "0xD0C40374">
<!ENTITY itR20Deflector "0xD0C40375">
<!ENTITY itDualTeV9Blaster "0x0000410C">
<!ENTITY it250MWReactor "0x00004109">
<!ENTITY itP210HexphaseArmor "0x000040E8">
<!ENTITY itHeliumAssembly "0x000040AE">
<!ENTITY itPatchSpider "0x0000401F">
<!ENTITY rsZubrinReactor "0x0000F00C">
<!ENTITY rsXwingShields "0x0000002f">
<!ENTITY rsEI100XArmor "0x0000F00B">
<!ENTITY rsXwingship "0x0000012f">
<!ENTITY rsItems1 "0x0000F11D">
<!ENTITY rsDriveExhaust "0x0000F10C">
]>
<TranscendenceExtension UNID="0xD0C40374" version="0.96a">
<ShipClass UNID="&scXwing;"
manufacturer= "Wylden Production CO."
class= "X-Wing"
type= ""
score= "635"
techOrder= "mech"
mass= "290"
cargoSpace= "96"
thrust= "1300"
maneuver= "3"
maxSpeed= "24"
maxCargoSpace= "900"
maxDevices= "9"
maxArmor= "239048"
cyberDefenseLevel= "8"
leavesWreck= "60"
>
<Armor>
<ArmorSection start="315" span="90" armorID="&itP210HexphaseArmor;" areaSet="0,2" />
<ArmorSection start="225" span="90" armorID="&itP210HexphaseArmor;" areaSet="3,4" />
<ArmorSection start="135" span="90" armorID="&itP210HexphaseArmor;" areaSet="1,6" />
<ArmorSection start="45" span="90" armorID="&itP210HexphaseArmor;" areaSet="7,13" />
</Armor>
<Devices>
<Device deviceID="&it250MWReactor;"/>
<Device deviceID="&itPatchSpider;"/>
<Device deviceID="&itPatchSpider;"/>
<Device deviceID="&itPatchSpider;"/>
</Devices>
<Items>
<Item count="7d13" item="&itHeliumAssembly;"/>
<Item count="4" item="&itP210HexphaseArmor;"/>
</Items>
<AISettings
fireRateAdj= "30"
fireAccuracy= "85"
perception= "6"
/>
<Image imageID="&rsXwingship;" imageX="0" imageY="0" imageWidth="92" imageHeight="92" imageFrameCount="0" imageTicksPerFrame="0"/>
<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 Centurion class vessel is the strongest type of ship on the frontline between the Commonwealth and the Ares."
initialClass= "true">
<ArmorDisplay>
<ArmorSection name="forward" imageID="&rsEI100XArmor;" imageX="0" imageY="0" imageWidth="90" imageHeight="9" destX="23" destY="32" hpX="55" hpY="27" nameY="8" nameBreakWidth="360" nameDestX="12" nameDestY="0"/>
<ArmorSection name="starboard" imageID="&rsEI100XArmor;" imageX="90" imageY="0" imageWidth="9" imageHeight="56" destX="104" destY="41" hpX="98" hpY="60" nameY="30" nameBreakWidth="275" nameDestX="0" nameDestY="8"/>
<ArmorSection name="aft" imageID="&rsEI100XArmor;" imageX="99" imageY="0" imageWidth="90" imageHeight="9" destX="23" destY="97" hpX="55" hpY="97" nameY="74" nameBreakWidth="200" nameDestX="0" nameDestY="8"/>
<ArmorSection name="port" imageID="&rsEI100XArmor;" imageX="189" imageY="0" imageWidth="9" imageHeight="56" destX="23" destY="41" hpX="12" hpY="60" nameY="52" nameBreakWidth="200" nameDestX="0" nameDestY="8"/>
</ArmorDisplay>
<ShieldDisplay>
<Image imageID="&rsXwingShields;" 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>
<Image UNID="&rsXwingship;" bitmap="xwingship.jpg" bitmask="xwingmask.bmp" backColor="0x00000000"/>
<Image UNID="&rsXwingShields;" bitmap="xwingshield.bmp" backColor="0x00000000"/>
</TranscendenceExtension>
The pics are in my extensions folder but I still get that error. What am I doing wrong?
Cannot add image
- Betelgeuse
- Fleet Officer
- Posts: 1920
- Joined: Sun Mar 05, 2006 6:31 am
Just a guess do you need to put <Images> </Images> around the <Image UNID lines?
Crying is not a proper retort!
-
- Developer
- Posts: 2997
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
It's possible that the images are in a format that Transcendence doesn't like.
In particular, I believe the mask (xwingmask.bmp) must be either a monochrome (1-bit) or grayscale (8-bit) bitmap.
In particular, I believe the mask (xwingmask.bmp) must be either a monochrome (1-bit) or grayscale (8-bit) bitmap.
- dvlenk6
- Militia Captain
- Posts: 519
- Joined: Sun Mar 05, 2006 6:56 am
- Location: Sanctuary and beyond
- Contact:
Looks like my fault again. Looking at the zip archive, I believe I sent you a bitmap for the ship instead of a jpg.
HERE is a jpg for the ship image.
You could then just delete the xwingship.bmp from your extension folder.
I noticed that you are putting the <Image.../> tag at the end. That will work for ships but don't try that with a station or the station won't show up in the game. Best to make a habit of putting image tags at the start of your extensions.
HERE is a jpg for the ship image.
You could then just delete the xwingship.bmp from your extension folder.
I noticed that you are putting the <Image.../> tag at the end. That will work for ships but don't try that with a station or the station won't show up in the game. Best to make a habit of putting image tags at the start of your extensions.
Hey thanks everyone.
About the description, I was going to change it once the whole extension worked. I was using that ship as a template.
And about the <Image> tags, what do you mean?
EDIT: It's still givingme the same error even with the jpg. Is there any other problems?
About the description, I was going to change it once the whole extension worked. I was using that ship as a template.
And about the <Image> tags, what do you mean?
EDIT: It's still givingme the same error even with the jpg. Is there any other problems?
Even the Dark Side has a shadow
- dvlenk6
- Militia Captain
- Posts: 519
- Joined: Sun Mar 05, 2006 6:56 am
- Location: Sanctuary and beyond
- Contact:
Change the UNID numbers to:
Apparently 0x0000... won't work. I copied your xml off the forum here and put those numbers in. The extension loaded fine then.
There is a doc HERE at the unofficial forums about UNID formats, that will clear things up better than me trying to explain it.
------
What I mean about the Image tags is that they should probably be put directly after the <TranscendenceExtension...>. When you use external images for a station, the image UNID needs to be declared before it is called for by the StationType, else you end up with a 'ghost station'. It's there, you can dock with it, shoot it, etc; but you can't see it. Might make for some interesting 'hunt the enemy station mods'
Code: Select all
<!ENTITY rsXwingShields "0xD0C4002F">
<!ENTITY rsXwingship "0xD0C4012F">
There is a doc HERE at the unofficial forums about UNID formats, that will clear things up better than me trying to explain it.
------
What I mean about the Image tags is that they should probably be put directly after the <TranscendenceExtension...>. When you use external images for a station, the image UNID needs to be declared before it is called for by the StationType, else you end up with a 'ghost station'. It's there, you can dock with it, shoot it, etc; but you can't see it. Might make for some interesting 'hunt the enemy station mods'