Mod debug

Freeform discussion about anything related to modding Transcendence.
Post Reply
Yugi
Fleet Officer
Fleet Officer
Posts: 1027
Joined: Sun Mar 05, 2006 8:21 am

It's rare that I need a debug, but I just can't for the life of me figure what's wrong with this mod....
The debug says

Code: Select all

Unable to parse RogueRanxFleet.xml: Line(299): close tag does not match open
, but they're clearly nothing wrong with that.

EDIT: I added in the "un-needed" UNIDs to use a browser to debug, but it kept saying that Akan30CannonShell is undefined (which it obviously is).

Code: Select all

<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
[

	<!ENTITY scFleetDread			"0xD0C49500">
	<!ENTITY scFleetFighter			"0xD0C49501">
	<!ENTITY itDoubleAkan			"0xD0C49502">
	<!ENTITY itFighterBay			"0xD0C49503">
	<!ENTITY itSpecsROM			"0xD0C49504">

	<!ENTITY itAkan30CannonShell		"0x000040C2">
	<!ENTITY itTransuranicPlate		"0x00004009">
	<!ENTITY itPatchSpider			"0x0000401F">
	<!ENTITY itGusokuArmor			"0x000040D0">
	<!ENTITY itAkan600Turret		"0x000040D9">
	<!ENTITY itYoroiS500			"0x000040CE">
	<!ENTITY itHeliumAssembly		"0x000040AE">

	<!ENTITY rsEI100XShields		"0x0000F00A">
	<!ENTITY rsEI100XArmor			"0x0000F00B">
	<!ENTITY rsZubrinReactor		"0x0000F00C">
	<!ENTITY rsItems1			"0x0000F11D">
	<!ENTITY rsLargeShips1			"0x0000F10D">
	<!ENTITY rsMediumShips1			"0x0000F100">
	<!ENTITY rsDriveExhaust			"0x0000F10C">

]>

<TranscendenceExtension UNID="0xD0C49500" version="0.97">

	<!-- Rogue Ranx Fleet -->

	<ItemType UNID="&itDoubleAkan;"
			name=			"Double-barreled Akan 600"
			level=			"7"
			value=			"24500"
			mass=			"7000"
			frequency=		"rare"
			modifiers=		"MajorItem; Specialty; RingerValuable; Military"

			description=		"This Akan-600 Turret has been upgraded to fire two shots per round"
			>

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

	<Weapon
			omnidirectional=	"true"

			fireRate=			"10"
			powerUse=			"150"
			>

		<Missiles>
			<Missile ammoID="&itAkan30CannonShell;"
					type=			"missile"

					damage=			"thermo:4d8; momentum2; WMD4"
					missileSpeed=		"80"
					lifetime=		"190"

					directional=	"true"
					sound=			"&snRecoillessCannon;"
					>

				<Effect>
					<MoltenBolt
							width=				"8"
							length=				"20"
							growth=				"3"
							primaryColor=		"0xea, 0xed, 0xae"
							secondaryColor=		"0xc0, 0xc2, 0x85"
							/>
				</Effect>

			</Missile>
			</Missiles>

		</Weapon>

	</ItemType>

	<ItemType UNID="&itFighterBay;"
			name=			"Ranx Fighter Bay"
			level=			"6"
			value=			"47500"
			mass=			"15000"
			frequency=		"rare"
			modifiers=		"MinorItem; Military; Illegal"

			description=		"This bay was created by the Ranx to hold Ranx Fighters inside their dreadnoughts, ready for combat as soon as ordered to launch."
			>

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

	<Invoke key="A">
			(block (ship)
				; Create the ship
				(setq ship
					(sysCreateShip 
						&scFleetFighter;
						(objGetPos gSource)
						&svIndependent;))

				; Escort ship
				(shpOrderEscort ship gSource)

				; Identify the item
				(itmSetKnown gItem)

				; Welcome message
				(objSendMessage gSource Nil "Ranx Fighter launched and ready for battle!")

				; Remove the item from the player's list
				(objRemoveItem gSource gItem 1)
				)
		</Invoke>

	</ItemType>

	<ItemType UNID="&itSpecsROM;"
			name=			"Use this for information"
			level=			"2"
			value=			"50"
			mass=			"1"
			frequency=		"notrandom"
			modifiers=		"Info; MinorItem"

			description=		"This ROM contains helpful information about using this ship mod."
			>

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

	<Invoke>
		(block Nil
			(plyMessage gPlayer "Greetings, Captain!")
			(plyMessage gPlayer "To launch your fighters, press U on your keyboard,")
			(plyMessage gPlayer "then scroll onto the bay and press enter!")
			(plyMessage gPlayer "Each time it is used, a fighter will launch.")
			(itmSetKnown gItem)
			)
	</Invoke>

	<ShipClass UNID="&scFleetDread;"
			manufacturer=			"Ranx"
			class=				"Rebel"
			type=				"Dreadnought"
			score=				"1350"
			techOrder=			"mech"
			
			mass=				"15000"
			reactorPower=			"1800"
			fuelCapacity=			"165000"
			cargoSpace=			"250"
			thrust=				"13000"
			maneuver=			"12"
			maxSpeed=			"22"

			cyberDefenseLevel=		"6"
			leavesWreck=			"100"
			>

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

		<Devices>
			<Device deviceID="&itDoubleAkan;"/>
			<Device deviceID="&itPatchSpider;"/>
			<Device deviceID="&itPatchSpider;"/>
			<Device deviceID="&itPatchSpider;"/>
			<Device deviceID="&itPatchSpider;"/>
		</Devices>

		<Items>
			<Item count="58d72" item="&itAkan30CannonShell;"/>
			<Item count="1" item="&itSpecsROM;"/>
			<Item count="5d4" item="&itFighterBay;"/>
		</Items>

		<Image imageID="&rsLargeShips1;" imageX="960" imageY="0" imageWidth="192" imageHeight="192" imageFrameCount="0" imageTicksPerFrame="0"/>

		<AISettings
			fireRateAdj=		"35"
			fireAccuracy=		"90"
			perception=			"6"
			combatStyle=		"standOff"
			/>

		<PlayerSettings
			desc=		"This small fleet has broken off from the rest of the Ranx Dictatorship and joined the Commonwealth. Your dreadnought and fleet have been upgraded."
			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="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" />

				<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" />
			</ArmorDisplay>

			<ShieldDisplay>
				<Image imageID="&rsEI100XShields;" 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>

	<ShipClass UNID="&scFleetFighter;"
			manufacturer=			"Ranx"
			class=				"Rebel"
			type=				"Gunship"
			score=				"520"
			techOrder=			"mech"
			
			mass=				"80"
			cargoSpace=			"25"
			thrust=				"1200"
			maneuver=			"3"
			maxSpeed=			"28"

			leavesWreck=			"30"
			>

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

		<Devices>
			<Device deviceID="&itAkan600Turret;"/>
			<Device deviceID="&itYoroiS500;"/>
		</Devices>

		<Items>
			<Item count="48d56" item="&itAkan30CannonShell;" />
			<Item count="10d15" item="&itHeliumAssembly;"/>
		</Items>

		<Image imageID="&rsMediumShips1;" imageX="624" imageY="0" imageWidth="48" imageHeight="48"/>

		<AISettings
			fireRateAdj=		"15"
			fireAccuracy=		"100"
			perception=			"4"
			/>

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

	</ShipClass>

</TranscendenceExtension>
[/code]
Icabod458
Miner
Miner
Posts: 44
Joined: Mon Mar 27, 2006 4:57 pm

Greetings

I have always enjoyed debugging code. I did find your problem. It concerns your SpecsRom. You forgot to close the <ItemType>.

Oh, the bill is in the mail. :D
Yugi
Fleet Officer
Fleet Officer
Posts: 1027
Joined: Sun Mar 05, 2006 8:21 am

Oh, dammit!

Thanks! :D
Post Reply