AntaresII default image in Mod

Freeform discussion about anything related to modding Transcendence.
Post Reply
paolob

hi!
while waiting for the UNID just requested for my mods, I'm working on the first one:

I wanna use the default AntaresII image (I see is in Resources, so it must be in Trascendence.tdb...) :

I declare at top:
<!ENTITY scAntaresII "0x00153003">

as ship:
<ShipClass UNID="&scAntaresII;"

ecc....
and image is:
<Image imageID="&rsAntaresIIImage;" imageX="0" imageY="0" imageWidth="128" imageHeight="128" imageFrameCount="0" imageTicksPerFrame="0"/ -->

or
<Image imageID="&rsEI100Image;" imageX="0" imageY="0" imageWidth="128" imageHeight="128" imageFrameCount="0" imageTicksPerFrame="0"/ -->

but when I start the game I get an error about image not found...

are they different IDs?

(found
I just request an for my mods

, but I'm working on and found some basics problem:
shanejfilomena
Fleet Officer
Fleet Officer
Posts: 1533
Joined: Tue Mar 22, 2011 8:43 pm
Location: Alaska
Contact:

you need to tell the version of game and the resource .xml version you are drawing from .
and yes, I do believe there are differences, probably not in the Unid since rewriting that page would take forever: but in the Image details being used in different versions might change things:
AntaresIII image is present in 99c
<Image imageID="&rsAntaresIIImage;" imageX="0" imageY="0" imageWidth="128" imageHeight="128"/>
and 1.05
<Image imageID="&rsAntaresIIImage;" imageX="0" imageY="0" imageWidth="128" imageHeight="128"/>


so what you got in your post: I do not know that Image detail so I do not know the version you have.
Flying Irresponsibly In Eridani......

I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

hi paolob,
first of all, unpack the tdb using Transdata:
http://www.neurohack.com/downloads/TransData22.zip

how to use transdata ? check here:
http://www.neurohack.com/transcendence/ ... f=8&t=1129

now, all the resources in the vanilla game don't need to be declared in the UNID table of the mod, they are automatically available.
How to find the resource image of the antares II ?
- Go to the file KorolovShipping.xml
- Find the AntaresII shipclass (line 137)
by reading the shipclass xml you will find the image that is used (line 177):

Code: Select all

<Image imageID="&rsAntaresIIImage;" imageX="0" imageY="0" imageWidth="128" imageHeight="128"/>
- good, looks like the image resource is called rsAntaresIIImage
- If you are interested in the image resource itself, we can find it easily by looking at the bottom of KorolovShipping.xml (line 3324)

Code: Select all

<Image UNID="&rsAntaresIIImage;"	bitmap="Resources\AntaresII.jpg" bitmask="Resources\AntaresIIMask.bmp" loadOnUse="true"/>
- PS: if you cannot find the image resource declaration in the XML module you are looking at, it means that the resource is declared in Transcendence.xml (not this case, but good to know :) )

Now,
if you want to create a shipclass that uses the same image you just need a new UNID for the new ship in your mod, then simply put
<Image imageID="&rsAntaresIIImage;" imageX="0" imageY="0" imageWidth="128" imageHeight="128"/>
in the <ShipClass> of your ship.
voila', you have a ship using the AntaresII resource.
Post Reply