Transcendence Wiki

Documenting the Universe.

User Tools

Site Tools


modding:basic_mod_template

WARNING

WARNING

This is only a template for modders to check their code against. This is not complete, but has the elements of a complete mod. The only real changes from George's code are lines 32, 48, 77, 138.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TranscendenceExtension
[
	<!ENTITY UNIDExtention      "0xe51c0000">
	<!ENTITY rsCirXenoFighter   "0xe51c0001">
	<!ENTITY rsCirXenoWorldship "0xe51c0002">
]>

<!-- You'll want to change stuff between here -->

<TranscendenceExtension UNID="&UNIDExtention;" version="1.0" 
	name="40 Facing Xenophobe Fighter/Worldship" credits="Cirevam">

<Image UNID="&rsCirXenoFighter;"  bitmap="CirXenophobeFighter.bmp"    bitmask="CirXenophobeFighterBM.bmp"/>
<Image UNID="&rsCirXenoWorldship;"  bitmap="CirXenophobeWorldship.bmp"    bitmask="CirXenophobeWorldshipBM.bmp"/>

<!-- And here -->

	<!-- Xenophobe Fighter -->

	<ShipClass UNID="&scXenophobeFighter;"
			manufacturer=		"Xenophobe"
			class=				""
			type=				"fighter"
			score=				"425"

			mass=				"40"
			cargoSpace=			"0"
			thrust=				"300"
			maneuver=			"2"
			maxSpeed=			"25"
			rotationCount=		"40"

			leavesWreck=		"25"

			attributes=			"benninXenophobes,genericClass"
			>

		<Armor>
			<ArmorSection start="270" span="180" armorID="&itLightMeteorsteel;" />
			<ArmorSection start="90"  span="180" armorID="&itLightMeteorsteel;" />
		</Armor>

		<Devices>
			<Device deviceID="&itLancerCannon;"/>
		</Devices>

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

		<AISettings
			aggressor=			"true"
			fireRateAdj=		"25"
			fireAccuracy=		"90"
			perception=			"4"
			/>

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

	</ShipClass>

	<!-- Xenophobe Worldship -->

	<ShipClass UNID="&scXenophobeWorldship;"
			manufacturer=		"Xenophobe"
			class=				""
			type=				"worldship"
			score=				"2830"

			mass=				"50000"
			cargoSpace=			"25000"
			thrust=				"50000"
			maneuver=			"16"
			maxSpeed=			"6"
			rotationCount=		"40"

			cyberDefenseLevel=	"8"

			explosionType=		"&vtThermoExplosion2;"
			leavesWreck=		"100"

			attributes=			"benninXenophobes, capitalShip, genericClass, majorShip"
			>

		<Armor>
			<ArmorSection start="345" span="15" armorID="&itWorldshipArmorPlate;" />
			<ArmorSection start="330" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="315" span="15" armorID="&itWorldshipArmorPlate;" />
			<ArmorSection start="300" span="15" armorID="&itWorldshipArmorPlate;" />
			<ArmorSection start="285" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="270" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="255" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="240" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="225" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="210" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="195" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="180" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>

			<ArmorSection start="165" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="150" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="135" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="120" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="105" span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="90"  span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="75"  span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="60"  span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="45"  span="15" armorID="&itWorldshipArmorPlate;" />
			<ArmorSection start="30"  span="15" armorID="&itWorldshipArmorPlate;" />
			<ArmorSection start="15"  span="15" armorID="&itWorldshipArmorPlate;" nonCritical="general"/>
			<ArmorSection start="0"   span="15" armorID="&itWorldshipArmorPlate;" />
		</Armor>

		<Devices>
			<Device deviceID="&itMarkVHowitzer;" omnidirectional="true" posAngle="0" posRadius="24" posZ="0"/>

			<Device deviceID="&itXenophobeLancer;" secondaryWeapon="true" minFireArc="345" maxFireArc="165" posAngle="30" posRadius="64" posZ="0"/>
			<Device deviceID="&itXenophobeLancer;" secondaryWeapon="true" minFireArc="345" maxFireArc="135" posAngle="15" posRadius="70" posZ="0"/>
			<Device deviceID="&itXenophobeLancer;" secondaryWeapon="true" minFireArc="225" maxFireArc="15"  posAngle="345" posRadius="70" posZ="0"/>
			<Device deviceID="&itXenophobeLancer;" secondaryWeapon="true" minFireArc="195" maxFireArc="15"  posAngle="330" posRadius="64" posZ="0"/>
			<Device deviceID="&itXenophobeLancer;" secondaryWeapon="true" minFireArc="180" maxFireArc="285" posAngle="220" posRadius="40" posZ="0"/>
			<Device deviceID="&itXenophobeLancer;" secondaryWeapon="true" minFireArc="75"  maxFireArc="180" posAngle="140" posRadius="40" posZ="0"/>

			<Device deviceID="&itMissileDefense;" omnidirectional="true" />
			<Device deviceID="&it500MWReactor;"/>
		</Devices>

		<Items>
			<Item				count="6d12"	item="&itPteracniumFuelRod;"/>
			<Table>
				<Lookup chance="40"	count="1d6"		table="&trConsumables8;"/>
				<Lookup	chance="30"	count="1d2"		table="&trMinorItem8;"/>
				<Lookup	chance="30"	count="1"		table="&trMajorItem8;"/>
			</Table>
		</Items>

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

		<AISettings
			aggressor=			"true"
			fireRateAdj=		"20"
			fireAccuracy=		"90"
			perception=			"6"
			combatStyle=		"standOff"
			/>

	</ShipClass>

</TranscendenceExtension>
modding/basic_mod_template.txt · Last modified: 2014/12/27 04:40 (external edit)