Just a little help...

Freeform discussion about anything related to modding Transcendence.
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

Also, though not nearly remotely as helpful, maybe it has a cloak? :D Or an early April Fools joke.
Image
Image
User avatar
Resident-Pyromaniac
Militia Lieutenant
Militia Lieutenant
Posts: 207
Joined: Sun Feb 27, 2011 5:11 pm
Location: Looting the Wreck of the CSC terra.

Welp. I did adjust size to it's proper length/width, but it still shows up blank.
i thought i read somewhere that you had to use transparency.. ?
If Transcendence was made in 3D, I would die of Happiness.



If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

you still have problems with UNIDs

to make a new playership you need:
1 UNID with the new shipclass
1 UNID for the image resource of the new ship
1 20 or 40 facing ship sprite of your ship
1 bitmask of the same ship sprites

so, i'm looking at your code that you previously posted and you wrote:

Code: Select all

<ShipClass UNID="&unidGungnirClass;"
...
that's the beginning of your shipclass, inside it there is the XML tag where you specify which image this shipclass should use, that is:

Code: Select all

<Image imageID="Gungnir;" imageX="0" imageY="0" imageWidth="108" imageHeight="108" imageFrameCount="0" imageTicksPerFrame="0"/>
so, you are using the image resource called Gungnir, start to read the sprites at 0,0 (top left corner of the image resource), each rotation sprite will be 108x108 pixels.

so, you have to define an image resource with that name, instead you wrote:

Code: Select all

<Image UNID="TestGungnir1;" bitmap="Gungnir.jpg" bitmask="GungnirMask.bmp" backColor="0x00000000"/>
let's fix that :D

replace it with :

Code: Select all

<Image UNID="Gungnir;" bitmap="Gungnir.jpg" bitmask="GungnirMask.bmp" backColor="0x00000000"/>
and fix the UNIDs too, replace this:

Code: Select all

<!ENTITY unidTestShips1 "0xDFAB9003">
with this:

Code: Select all

<!ENTITY Gungnir "0xDFAB9003">
try, and now your ship should work! :D
User avatar
Resident-Pyromaniac
Militia Lieutenant
Militia Lieutenant
Posts: 207
Joined: Sun Feb 27, 2011 5:11 pm
Location: Looting the Wreck of the CSC terra.

it seems even this doesn't help.

Code: Select all

<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
	[
	<!ENTITY itRecoillessCannon			"0x0000400E">
	<!ENTITY itClass1Deflector			"0x00004036">
	<!ENTITY itHelium3FuelRod			"0x0000403C">

	<!ENTITY rsZubrinShields			"0x0000F004">
	<!ENTITY rsZubrinArmor				"0x0000F005">
	<!ENTITY rsZubrinReactor			"0x0000F00C">
	<!ENTITY rsDriveExhaust				"0x0000F10C">
	<!ENTITY rsItems1					"0x0000F11D">
	
	<!ENTITY unidExtension				"0xDFAB9000">
	<!ENTITY unidMerovianArmor			"0xDFAB9001">
	<!ENTITY unidGungnirClass			"0xDFAB9002">
	<!ENTITY unidGungnirsprite				"0xDFAB9003">
]>

<TranscendenceExtension UNID="&unidExtension;" version="0.99c">

<ItemType UNID="&unidMerovianArmor;"
	name=				"segment of Merovian armor"
	level=				"2"
	value=				"150"
	mass=				"3000"
	frequency=			"uncommon"
	numberAppearing=	"1d4"
	modifiers=			"MinorItem"
	showReference=		"true"

	description=		"Merovian armor is resistant to kinetic and blast weapons."

	firstPlural=		"true"
	sortName=			"Merovian armor, segment of"
	>

	<Image imageID="&rsItems1;" imageX="0" imageY="0" imageWidth="96" imageHeight="96"/>

	<Armor
		hitPoints=	"30"
		damageAdj=	"100, 33,100, 75, 100,100,100,100, 125,125,200,200, 300,300,500,500"
		repairTech=	"2"
		repairCost=	"3"
		installCost="30"

		composition="metallic"
		/>

</ItemType>

<ShipClass UNID="&unidGungnirClass;"
	manufacturer=		"Resident-Pyromaniac"
	class=				"Gungnir"
	type=				"Fighter"
	score=				"90"
	techOrder=			"mech"
	
	mass=				"40"
	maxReactorPower=	"250"
	maxReactorFuel=		"60000"
	cargoSpace=			"350"
	maxCargoSpace=		"350"
	thrust=				"600"
	maneuver=			"8"
	maxSpeed=			"30"

	leavesWreck=		"40"
	>

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

	<Devices>
		<Device deviceID="&itRecoillessCannon;"/>
		<Device deviceID="&itClass1Deflector;"/>
	</Devices>

	<Items>
		<Item count="4d6" item="&itHelium3FuelRod;"/>
	</Items>

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

	<Image imageID="Gungnirsprite;" imageX="0" imageY="0" imageWidth="96" imageHeight="96" imageFrameCount="0" imageTicksPerFrame="0"/>

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

	<PlayerSettings
		desc=				"The much-feared Gungnir fighter is a versatile combination of several starships."
		initialClass=		"true">

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

			<ArmorSection name="starboard"
						imageID="&rsZubrinArmor;" 
						imageX="52" imageY="0" imageWidth="22" imageHeight="59"
						destX="92" destY="45" hpX="95" hpY="60"
						nameY="30" nameBreakWidth="360" nameDestX="12" nameDestY="0" />

			<ArmorSection name="aft"
						imageID="&rsZubrinArmor;" 
						imageX="74" imageY="0" imageWidth="68" imageHeight="14"
						destX="34" destY="103" hpX="55" hpY="105"
						nameY="74" nameBreakWidth="360" nameDestX="12" nameDestY="0" />

			<ArmorSection name="port"
						imageID="&rsZubrinArmor;" 
						imageX="142" imageY="0" imageWidth="22" imageHeight="59"
						destX="22" destY="45" hpX="15" hpY="60"
						nameY="52" nameBreakWidth="200" nameDestX="0" nameDestY="8" />
		</ArmorDisplay>

		<ShieldDisplay>
			<Image imageID="&rsZubrinShields;" 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="Gungnirsprite;" bitmap="Gungnir.bmp" bitmask="GungnirMask.bmp" backColor="0x00000000"/>

</TranscendenceExtension>


I just don't get it. :{
If Transcendence was made in 3D, I would die of Happiness.



If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

You don't need to define things already in the TranscedenceUniverse (those are things that start with 0x0000-0x9FFF), only things from other extensions.
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

you are nearly there ! :)
just fix another little error: you forgot the & in 2 places and you still have the unid names wrong, if you call your resource unidGungnirsprite, you have to use call unidGungnirsprite in your shipclass, so fix:

<Image UNID="&unidGungnirsprite;" bitmap="Gungnir.bmp" bitmask="GungnirMask.bmp" backColor="0x00000000"/>

and

<Image imageID="&unidGungnirsprite;" imageX="0" imageY="0" imageWidth="96" imageHeight="96" imageFrameCount="0" imageTicksPerFrame="0"/>

now it should work :D
User avatar
Resident-Pyromaniac
Militia Lieutenant
Militia Lieutenant
Posts: 207
Joined: Sun Feb 27, 2011 5:11 pm
Location: Looting the Wreck of the CSC terra.

Thanx Digdug, You are a lifesaver! Woot! I can now pilot the Gungnir.

Viva la Gungnir!
If Transcendence was made in 3D, I would die of Happiness.



If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)
Post Reply