Jump to content


XTRMNTR2K

Member Since 26 Sep 2007
Offline Last Active Private

Topics I've Started

Changing/inserting a mod feature crashes the game

26 September 2007 - 04:49 PM

First of all - hi everyone, I'm new here. :)
I'm what you could consider a noob at modding, since my last experiences in that matter date back to 7 or 8 years ago, when I used to fool around with Tiberian Sun.

Now straight to the problem:

I'm working on a rebalancing mod for TW. Besides changing most values and adding only a few things (so that I won't destroy balance completey instead of improving it), I wanted to make use of the DamageScalarDetails feature to emphasize strengths and weaknesses of units against specific targets.

When doing this, I first encountered a problem when I tried to modify a weapon I added for the Orca - a chaingun that should inflict slightly higher damage against infantry and aircraft. After fiddling about it without success - whenever I added a DamageScalar, the game kept crashing on me during the start - I decided to put that feature back for a bit.

Alright - I supposed it had to do something with being a weapon I added myself (firing animations don't work, either), so now I'm trying to do the same with the Mammoth Tank missile.

This is what I'm trying to do:

<WeaponTemplate
		id="GDIMammothTankMissileFragmentWarhead"
		Name="GDIMammothTankMissileFragmentWarhead" 
		ProjectileCollidesWith  = "ENEMIES STRUCTURES" 
		RadiusDamageAffects="ALLIES ENEMIES NOT_SIMILAR"
		AntiMask="ANTI_GROUND ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY">
		<Nuggets>
			<DamageNugget 
				Damage="500.0" 
				Radius="20.0"
				DamageTaperOff="0"
				DamageType="ROCKET" 
				DamageFXType="GDI_MISSILE"
				DeathType="EXPLODED" />
				<DamageScalarDetails Scalar= "150%">
					<Filter
						Rule="NONE"
						Include="AIRCRAFT STRUCTURE" />
				</DamageScalarDetails>
			</DamageNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="50"
				DurationSeconds="5s" />
		</Nuggets>
	</WeaponTemplate>

When I start the game, I'm getting a crash message. Without the DamageScalarDetails, it runs just fine. Does it have anything to do with the Suppression Nugget? Or did I forget something important?

I'd be really glad if someone could point out what I'm doing wrong. Thanks in advance!