cargo hold

Freeform discussion about anything related to modding Transcendence.
Post Reply
Silentdances
Commonwealth Pilot
Commonwealth Pilot
Posts: 56
Joined: Fri Mar 21, 2008 6:06 am

is there a way to make it so that upgrading cargo works in segments?
doing a modded armed transport, and wanted to have the upgrade in 50 ton segments (like 4 different upgrades). starting at like 100 and ending at 300.
"Darkness makes the sunlight so bright, that our eyes blur with tears. Misery sharpens the edges of our joy. Challenges remind us that we are capable of great things. Life is hard. It is supposed to be."
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

It is very easy!

Code: Select all

<!-- Cargo Hold Expansion -->

<ItemType UNID="&itCargoHoldExpansion;"
		name=				"cargo hold expansion"
		level=				"2"
		value=				"1000"
		mass=				"1000"
		frequency=			"uncommon"
		numberAppearing=	"1"
		modifiers=			"MajorItem"

		description=		"This is a pressurized hold that can be attached to a ship to increase the amount of cargo it can carry."
		>

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

	<CargoHoldDevice
			cargoSpace=		"100"
			/>

</ItemType>
This is the cargo hold item from Transcendence.xml, the bit you want is contained in the <CargoHoldDevice> tag.

cargoSpace is basically a percent value. 100 = 100% of the max cargo listed for the given ship.

You can make incremental expansions by copying the tag, and making each cargo hold device have a different cargoSpace value:

Code: Select all

<!-- Cargo Hold Expansions -->

<ItemType UNID="&itCargoHoldExpansion10;"
		name=				"cargo hold expansion"
		level=				"2"
		value=				"1000"
		mass=				"1000"
		frequency=			"uncommon"
		numberAppearing=	"1"
		modifiers=			"MajorItem"

		description=		"This is a pressurized hold that can be attached to a ship to increase the amount of cargo it can carry."
		>

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

	<CargoHoldDevice
			cargoSpace=		"10"
			/>

</ItemType>

<ItemType UNID="&itCargoHoldExpansion25;"
		name=				"cargo hold expansion"
		level=				"2"
		value=				"1000"
		mass=				"1000"
		frequency=			"uncommon"
		numberAppearing=	"1"
		modifiers=			"MajorItem"

		description=		"This is a pressurized hold that can be attached to a ship to increase the amount of cargo it can carry."
		>

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

	<CargoHoldDevice
			cargoSpace=		"25"
			/>

</ItemType>

<ItemType UNID="&itCargoHoldExpansion500;"
		name=				"cargo hold expansion"
		level=				"2"
		value=				"1000"
		mass=				"1000"
		frequency=			"uncommon"
		numberAppearing=	"1"
		modifiers=			"MajorItem"

		description=		"This is a pressurized hold that can be attached to a ship to increase the amount of cargo it can carry."
		>

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

	<CargoHoldDevice
			cargoSpace=		"500"
			/>

</ItemType>

Look I made the last one a biggy!

Ok, so, now you got all that straight?
Silentdances
Commonwealth Pilot
Commonwealth Pilot
Posts: 56
Joined: Fri Mar 21, 2008 6:06 am

oh sweet :) thanks .. *nods* makes sense
"Darkness makes the sunlight so bright, that our eyes blur with tears. Misery sharpens the edges of our joy. Challenges remind us that we are capable of great things. Life is hard. It is supposed to be."
User avatar
Sheltem
Militia Lieutenant
Militia Lieutenant
Posts: 153
Joined: Tue Sep 04, 2007 1:44 pm

what would happen when you delete the maxcargo tag from playership.xml ?
regards
Sheltem

What do you think about the endless stream of spawns ?

What about modding wandering spawns which dont attack the player directly ?
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

Then your current cargo size is the only size you get, with no expansions possible.
Bobby
Militia Captain
Militia Captain
Posts: 675
Joined: Wed Jul 25, 2007 7:39 pm

can a cargo hold REDUCE cargo space?
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

hmm... I might have to go see about that one! I used to use virtual devices for that type of thing- I had a great little 'tribbles' trap that slowly filled your cargo space with Star Trek style furry cutenesses...
Post Reply