crash when modded ranx fortress killed

Freeform discussion about anything related to modding Transcendence.
Post Reply
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.

For some reason, whenever this station I made dies, it crashes the game...

Code: Select all

	<!-- Ranx Fortress -->

	<StationType UNID="&stIRanxFortress;"
			name=				"Ranx Fortress"
			sovereign=			"&svRanxEmpire;"
			dockScreen=			"&dsAbandonedStation;"
			abandonedScreen=	"&dsAbandonedStation;"
			dockingPorts=		"8"
			canAttack=			"true"

			multiHull=			"true"
			armorID=			"&itOrthoSteel;"
			maxHitPoints=		"1000"
			hitPoints=			"1000"
			explosionType=		"&vtThermoExplosion4;"
			ejectaType=			"&vtWreckEjecta;"

			fireRateAdj=		"5"

			attributes=			"ranx,friendly,envEarth,envAvoidsAir,populated"
			levelFrequency=		"----- vrcur ----- ----- -----"
			locationCriteria=	"+planetary,-OuterSystem"
			repairRate=			"5"
			shipRepairRate=		"3"
			>

		<Image			imageID="&rsStations8;" imageX="0" imageY="192" imageWidth="256" imageHeight="256"/>

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

		<Items>
			<Table>
				<Lookup chance="40" count="1" table="&trConsumables9;"/>
				<Lookup chance="40" count="1" table="&trMinorItem9;"/>
				<Lookup chance="20" count="1" table="&trMajorItem9;"/>
			</Table>
			<Table>
				<Lookup chance="40" count="1" table="&trConsumables9;"/>
				<Lookup chance="40" count="1" table="&trMinorItem9;"/>
				<Lookup chance="20" count="1" table="&trMajorItem9;"/>
			</Table>
			<Table>
				<Lookup chance="40" count="1" table="&trConsumables9;"/>
				<Lookup chance="40" count="1" table="&trMinorItem9;"/>
				<Lookup chance="20" count="1" table="&trMajorItem9;"/>
			</Table>
			<Table>
				<Lookup chance="40" count="1" table="&trConsumables9;"/>
				<Lookup chance="40" count="1" table="&trMinorItem9;"/>
				<Lookup chance="20" count="1" table="&trMajorItem9;"/>
			</Table>
			<Table>
				<Lookup chance="40" count="1" table="&trConsumables9;"/>
				<Lookup chance="40" count="1" table="&trMinorItem9;"/>
				<Lookup chance="20" count="1" table="&trMajorItem9;"/>
			</Table>
		</Items>

		<Ships>
			<Ship			count="2d3"	class="&scIRanxFighter;"	orders="patrol" patrolDist="5"/>
			<Ship			count="2d2"	class="&scIRanxGunship;"	orders="guard" />
				<Ship  count="1"	class="&scIRanxCruiser;"	orders="patrol" patrolDist="25">
					<Escorts>
						<Table>
							<Ship	chance="50"		count="2"	class="&scIRanxFighter;"	orders="escort"/>
							<Ship	chance="50"		count="1"	class="&scIRanxGunship;"	orders="escort" />
						</Table>
					</Escorts>
				</Ship>
		</Ships>

		<Reinforcements minShips="5">
			<Table>
			<Ship		chance="30"	count="2d2"	class="&scIRanxFighter;"	orders="guard"/>
			<Ship		chance="30"	count="1"	class="&scIRanxGunship;"	orders="guard"/>
				<Ship chance="40"  count="1"	class="&scIRanxCruiser;"	orders="patrol" patrolDist="25">
					<Escorts>
						<Table>
							<Ship	chance="50"		count="2"	class="&scIRanxFighter;"	orders="escort"/>
							<Ship	chance="50"		count="1"	class="&scIRanxGunship;"	orders="escort" />
						</Table>
					</Escorts>
				</Ship>
			</Table>
		</Reinforcements>

		<Encounters frequency="common">
			<Table>
				<Ship chance="50"  count="3"	class="&scIRanxFighter;" orders="wander"/>
				<Ship chance="25"  count="1"	class="&scIRanxGunship;" orders="wander"/>
				<Ship chance="25"  count="1"	class="&scRanxDreadnought;"	orders="wander"	maxShips="4">
					<Escorts>
						<Table>
							<Ship	chance="50"		count="2"	class="&scIRanxFighter;"	orders="escort"/>
							<Ship	chance="50"		count="1"	class="&scIRanxGunship;"	orders="escort" />
						</Table>
					</Escorts>
				</Ship>
			</Table>
		</Encounters>

		<Satellites>
			<Orbitals distance="8" angle="90">
				<Station type="&stIRanxTurret;" imageVariant="0"/>
			</Orbitals>
			<Orbitals distance="8" angle="0">
				<Station type="&stIRanxTurret;" imageVariant="0"/>
			</Orbitals>
			<Orbitals distance="8" angle="180">
				<Station type="&stIRanxTurret;" imageVariant="0"/>
			</Orbitals>
			<Orbitals distance="8" angle="270">
				<Station type="&stIRanxTurret;" imageVariant="0"/>
			</Orbitals>
		</Satellites>

	</StationType>
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

mmmhh, maybe the problem is in the dockscreens ?
dockScreen= "&dsAbandonedStation;"
abandonedScreen= "&dsAbandonedStation;"
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.

digdug wrote:mmmhh, maybe the problem is in the dockscreens ?
dockScreen= "&dsAbandonedStation;"
abandonedScreen= "&dsAbandonedStation;"
hmm... I can dock just fine. And I used it on the outpost too which doesn't have this error...
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

That shouldn't be causing any problems, Digdug. Many of the game stations use that same dsAbandoned for both.

I don't see anything in the element that looks bad at first study.

Something in the process of turning the station into a wrecked station is going wrong- does debugLog state anything?

Try switching the station image?

Is that a stock explosion? Does the explosion happen?

Does the crash happen every time?

Have you tried removing the satellites?
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.

Periculi wrote: Something in the process of turning the station into a wrecked station is going wrong- does debugLog state anything?

Try switching the station image?

Is that a stock explosion? Does the explosion happen?

Does the crash happen every time?

Have you tried removing the satellites?
1) Nothing at all- that's the first thing I checked for
2) I'll try that
3) It is a stock explosion. It crashes prior to triggering though
4) yes
5) I'll try that too
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

Your station is lacking one thing, which might be the cause of the problem-

Code: Select all

		<DockingPorts>
			<Port x="0"		y="150" />
			<Port x="0"		y="-150" />
			<Port x="100"	y="100" />
			<Port x="100"	y="-100" />
			<Port x="150"	y="0" />
			<Port x="-150"	y="0" />
			<Port x="-100"	y="100" />
			<Port x="-100"	y="-100" />
		</DockingPorts>
Although, there are plenty of stations that don't have that tag either.

Check your image resource and make sure it has everything it needs too.
Post Reply