How to replace thinks

Freeform discussion about anything related to modding Transcendence.
Post Reply
Datal
Militia Commander
Militia Commander
Posts: 309
Joined: Mon Feb 07, 2011 12:54 pm
Location: Hyno Gunship

I know, maybe it's boring questions, and maybe I should know it yet...but I have an problem.

How can I replace thinks (stations, ships etc.) in the game ?

For example: In my mode there is code ->

Code: Select all

<!-- Corsair II-class Gunship -->

	<ShipClass UNID="&scCorsair-II;"
			manufacturer=		"Charon Pirates"
			class=				"Corsair II"
			type=				"gunship"
			score=				"110"

			mass=				"45"
			cargoSpace=			"5"
			thrust=				"250"
			maneuver=			"4"
			maxSpeed=			"25"

			leavesWreck=		"20"

			attributes=			"charonPirates,genericClass"
			>

		<Armor>
			<ArmorSection start="270" span="180" armorID="&itLightReactiveArmor;" areaSet="0,2,3,7" />
			<ArmorSection start="90"  span="180" armorID="&itLightReactiveArmor;" areaSet="1,4" />
		</Armor>

		<Devices>
			<Device deviceID="&itTurbolaserCannon;"/>
			<Device deviceID="&itNAMIMissileLauncher;"/>
			<Device deviceID="&itClass1Deflector;"/>
		</Devices>

		<Image imageID="&rsMediumShips1;" imageX="288" imageY="0" imageWidth="48" imageHeight="48" rotationOffset="-10" imageFrameCount="0" imageTicksPerFrame="0"/>

		<Items>
			<Item count="2d6" item="&itKM100Missile;"/>
		</Items>

		<AISettings
			fireRateAdj=		"30"
			fireRangeAdj=		"50"
			fireAccuracy=		"80"
			ignoreShieldsDown=	"true"

			perception=			"4"
			/>

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

	</ShipClass>
And I want transform all the corsairs-II in the game in my C-II with turbo laser cannon. How to do this ? It's posible ?

And there is somethink like <Replace> ? And how it works ? Maybe this is it.
(I want to transform all Corsairs-II in the game...especially their weapons, but I can't change tdb file)

Sorry for naive question, but I have a long brake... :P
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.

Nothing special; just do what you have, and it should work (unless you made any errors in the code itself)

All you have to do is overwrite it with the same UNID.
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
Datal
Militia Commander
Militia Commander
Posts: 309
Joined: Mon Feb 07, 2011 12:54 pm
Location: Hyno Gunship

Wolfy wrote:Nothing special; just do what you have, and it should work (unless you made any errors in the code itself)

All you have to do is overwrite it with the same UNID.

Many thanks Wolfy. You're very helpful ^^.
Post Reply