Invalid item?

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Aeonic
Militia Commander
Militia Commander
Posts: 469
Joined: Sun Jun 14, 2009 1:05 am
Location: Designing his dream ship.

I'm trying to create a new ship drive and include the new drive on my custom ship at start, but I keep getting an error that the item ID doesn't exist.

Here's the item's XML file:

Code: Select all

<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
[
<!ENTITY ExtensionID	        "0xEE241041">
<!ENTITY itFusionDrive		"0xEE241042">
]>
<TranscendenceExtension UNID="&ExtensionID;" version="0.99">

<ItemType UNID="&itFusionDrive;"
	name=		"fusion drive"
	level=		"1"
	value=		"400"
	mass=		"1800"
	frequency=	"uncommon"
	modifiers=	"MajorItem"

	description=	"Most small and medium sized ships use a fusion drive for propulsion."
	>

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

	<DriveDevice
		maxSpeed=	"0"
		thrust=		"0"
		powerUsed=	"0"
		/>
</ItemType>

</TranscendenceExtension>
And here's the clip from the custom ship's XML:

Code: Select all

		<Devices>
			<Device deviceID="&itFusionDrive;"/>
		</Devices>
What's wrong with it?
Last Cause Of Death: Destroyed by Karl Svalbard's last Lucifer missile, right after I blew him up. And the crowd cheers.
Image
Bobby
Militia Captain
Militia Captain
Posts: 675
Joined: Wed Jul 25, 2007 7:39 pm

are they in separate xml files? if so you must declare the ENTITY in both(unless it a part of the game).

as always check for spelling of the unids.

also check for errors on the device itself.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Also you should be aware that you can have entity name clashes. That is, if two entities with the same name are assigned different unid's, there will be problems. My own rule of thumb is to make a namespace, and prefix all entites with it. So you would have fd_itFusionDrive and fd_ExtensionID. That will at least lower the chance of clashing with other mods.

.]
Post Reply