Can someone teach me how to Install(and use)Extra Graphics

Freeform discussion about anything related to modding Transcendence.
Post Reply
Nill
Militia Lieutenant
Militia Lieutenant
Posts: 217
Joined: Mon Feb 14, 2011 10:38 pm
Location: Blowing up commonwealth

:| I don't know how to use Graphic,Particles,etc.Example, :cry: The graphics Provided by George Were completely useless,Why Because I Don't now how to use them! :evil:
I Hate This Game="Nill"
YAY NYAN CAT IS IN TRANS http://xelerus.de/index.php?s=mod&id=949
♫♫♫♫♫
♫ /l
(゚、 。 7
 l、 ~ヽ
 じしf_, )ノ
In IRC you'll hear great thing like this
[19:41] Azar_Wolf |oh derp, will have to leave in 10 minutes
[19:41] Ttech |NOQ!!!!!!!!!!!!!!!!!!11
[19:41] Ttech |eats Azar_Wolf
[19:41] Azar_Wolf |...
[19:41] Ttech |And spits out a ... uh...
[19:41] Ttech |I don't know
[19:41] Ttech |Its a blob
[19:42] Azar_Wolf |eww
[19:42] sdw195 |...
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Nil: ask for a tutorial: how to use the models/ textures George released.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Bobby
Militia Captain
Militia Captain
Posts: 675
Joined: Wed Jul 25, 2007 7:39 pm

Like with any object, before you can add an image, you need a unid for it.

Code: Select all

	<!ENTITY rsparalox				"0xD2118401">
taken from one of my ships.
Remember to use your own personal unid to avoid mod conflicts with other authors.
we will need the piece of text following ENTITY later, in this case rsparalox.
The prefix in this case is rs, resource. it is for items, st for stations, sc for ship class, etc. While not necessary, it makes things easier to read.

Now we can add the image.

Code: Select all

<Image UNID="&rsparalox;"	bitmap="paralox.jpg"	bitmask="paraloxmask.bmp" backColor="0x00000000" loadOnUse="true"/>
the bitmap is your jpeg image
the bitmask is the mask, usually a monochrome bitmap, but other modders have used 8 bit as well.
backColor specifies a color for the game to draw as transparent, in this case black.
LoadOnUse means the image is not loaded into memory until it is first encountered, in this case when that ship is chosen and appears in Eridani.


To use that image on a ship:

Code: Select all

<Image imageID="&rsparalox;" imageX="0" imageY="0" imageWidth="56" imageHeight="56"/>
the imageID refers back to the unid of the image you want to use
imageX is the number of pixels right of the left hand side of the image this image starts. (you can get multiple images from one image)
mageY is the number of pixels down from the top.
imageWidth is how wide each frame of the image is.
imageHeight is how tall each frame is.

Missiles now.

Code: Select all

						<Image imageID="&rsExplosionsAG48;"
								imageX="0"
								imageY="0"
								imageWidth="48"
								imageHeight="48"
								imageFrameCount="16"
								imageTicksPerFrame="2"/>
This bit of code comes from the km100 missile, which I believe is the longbow.
Notice we have already seen many of those options. I think the image tag is the same no matter where it is used.
imageFrameCount is the number of frames in an animated image
imageTicksPerFrame is the speed at which the frames change in an animated image, I think it's the number of ticks between frame changes
ship images can be animated, as can, I suppose, stations.

Additional frames for images with rotations are located below the first frame.
Additional animations are located to the right, and consist of a modified copy of all the frames.

Does that help?
ImageImage
Thanks to digdug for the banners.
Nill
Militia Lieutenant
Militia Lieutenant
Posts: 217
Joined: Mon Feb 14, 2011 10:38 pm
Location: Blowing up commonwealth

Thanks A Lot :D But one more Question if you publish a mod you need to include the Graphics Rite :?
I Hate This Game="Nill"
YAY NYAN CAT IS IN TRANS http://xelerus.de/index.php?s=mod&id=949
♫♫♫♫♫
♫ /l
(゚、 。 7
 l、 ~ヽ
 じしf_, )ノ
In IRC you'll hear great thing like this
[19:41] Azar_Wolf |oh derp, will have to leave in 10 minutes
[19:41] Ttech |NOQ!!!!!!!!!!!!!!!!!!11
[19:41] Ttech |eats Azar_Wolf
[19:41] Azar_Wolf |...
[19:41] Ttech |And spits out a ... uh...
[19:41] Ttech |I don't know
[19:41] Ttech |Its a blob
[19:42] Azar_Wolf |eww
[19:42] sdw195 |...
Bobby
Militia Captain
Militia Captain
Posts: 675
Joined: Wed Jul 25, 2007 7:39 pm

You're welcome, and yes, you need to include the images.
ImageImage
Thanks to digdug for the banners.
Post Reply