duplicate attributes

gosd

Charter Member
Using the xmlWrench on one of my effect.xml in found a few lines with double attributes, but I do not know which one to delete. So here are the lines:

<Afterburner_rato ClassName="ParticleEffect" InitialDelay="19.5" EmitterShape="Sphere" EmitterRadius="0" EmitterLifetime="36.5" EmitterPosX="-.05" EmitterPosY="0" EmitterPosZ="0" ZBias="0.0" EmissionAngleHoriz="180" EmissionAngleVert="93" EmissionSpread="8" EmissionRate="800" EmissionRateVar="100" InitialDelay="0" InitialCount="0" MinDistance="30" MaxDistance="2500" StopMethod="0" ZSort="0" UprightSprite="0" RandomStartRotation="1" RandomRotationDirection="1" Lifetime=".08" LifetimeVar=".01" Speed="25" SpeedVar="3" MaxSpeed="600" MaxSpeedVar="0.0" Accel="0" AccelVar="0.0" AccelTime="0.0" Gravity="0" Drag="0" DragDelay="0.0" InheritVelocity=".96" Size=".2" SizeVar="0" MaxSize=".015" MaxSizeVar="0" GrowRate="0" GrowRateVar="0" RotationRate="100" RotationRateVar="50" FadeInTime=".03" InitialColor="233 237 237" InitialAlpha="0" Color="225 235 240" Alpha="40" FadeOutTime=".06" FinalColor="216 216 216" FinalAlpha="0" Texture="fireball_additive2.dds" BlendMode="Add"/>

<rato_smoketrail_short_1 ClassName="ParticleEffect" EmitterShape="sphere" InitialDelay="20" EmitterRadius="0" EmitterLifetime="25.5" EmitterPosX="-.05" EmitterPosY="0" EmitterPosZ="-2.0" ZBias="0.0" EmissionAngleHoriz="180" EmissionAngleVert="93" EmissionSpread="0" EmissionRate="200" EmissionRateVar="0" InitialDelay="30.5" InitialCount="0" MinDistance="30" MaxDistance="320" StopMethod="0" ZSort="0" UprightSprite="0" RandomStartRotation="1" RandomRotationDirection="1" Lifetime=".35" LifetimeVar="0.6" Speed="0" SpeedVar="0" MaxSpeed="0" MaxSpeedVar="0.0" Accel="0" AccelVar="0.0" AccelTime="0.0" Gravity="0" Drag="0" DragDelay="0" InheritVelocity="0" Size="1.0" SizeVar="0.9" MaxSize="200.0" MaxSizeVar="3.0" GrowRate="10.0" GrowRateVar=".05" RotationRate="1.0" RotationRateVar="8" FadeInTime="0" InitialColor="255 255 255" InitialAlpha="300" Color="255 255 255" Alpha="300" FadeOutTime="10.0" FinalColor="255 255 255" FinalAlpha="400" Texture="SmokePuff01.dds" BlendMode="QuadSprite"/>

<rocket_exhaust_rato ClassName="ParticleEffect" InitialDelay="20" EmitterShape="sphere" EmitterRadius="0" EmitterLifetime="25.5" EmitterPosX="0" EmitterPosY="0.0" EmitterPosZ="-1" ZBias="0.0015" EmissionAngleHoriz="180" EmissionAngleVert="0" EmissionSpread="30" EmissionRate="400" EmissionRateVar="0" InitialDelay="0" InitialCount="0" MinDistance="0" MaxDistance="2500" StopMethod="0" ZSort="0" UprightSprite="0" RandomStartRotation="1" RandomRotationDirection="1" Lifetime=".35" LifetimeVar=".03" Speed=".01" SpeedVar="0" MaxSpeed="1000" MaxSpeedVar="0.0" Accel="-1.5" AccelVar="0.0" AccelTime="1" Gravity="0" Drag=".001" DragDelay="2" InheritVelocity="0" Size="1" SizeVar=".3" MaxSize="30" MaxSizeVar="10" GrowRate="50" GrowRateVar="10" RotationRate="30" RotationRateVar="15" FadeInTime="0" InitialColor="67 47 41" InitialAlpha="180" Color="135 133 133" Alpha="100" FadeOutTime="3" FinalColor="135 133 133" FinalAlpha="0" Texture="cloudpuff.DDS" BlendMode="QuadSprite"/>

<Afterburner_rato_blitz ClassName="ParticleEffect" InitialDelay="44.5" EmitterShape="Sphere" EmitterRadius="0" EmitterLifetime="55" EmitterPosX="-.05" EmitterPosY="0" EmitterPosZ="1.0" ZBias="0.0" EmissionAngleHoriz="180" EmissionAngleVert="93" EmissionSpread="8" EmissionRate="800" EmissionRateVar="100" InitialDelay="0" InitialCount="0" MinDistance="30" MaxDistance="2500" StopMethod="0" ZSort="0" UprightSprite="0" RandomStartRotation="1" RandomRotationDirection="1" Lifetime=".08" LifetimeVar=".01" Speed="25" SpeedVar="3" MaxSpeed="600" MaxSpeedVar="0.0" Accel="0" AccelVar="0.0" AccelTime="0.0" Gravity="0" Drag="0" DragDelay="0.0" InheritVelocity=".96" Size=".2" SizeVar="0" MaxSize=".015" MaxSizeVar="0" GrowRate="0" GrowRateVar="0" RotationRate="100" RotationRateVar="50" FadeInTime=".03" InitialColor="233 237 237" InitialAlpha="0" Color="225 235 240" Alpha="40" FadeOutTime=".06" FinalColor="216 216 216" FinalAlpha="0" Texture="fireball_additive2.dds" BlendMode="Add"/>

<ratoblitz_smoketrail_long_1 ClassName="ParticleEffect" InitialDelay="45" EmitterShape="sphere" EmitterRadius="0" EmitterLifetime="54.5" EmitterPosX="-.05" EmitterPosY="0" EmitterPosZ="-.50" ZBias="0" EmissionAngleHoriz="180" EmissionAngleVert="93" EmissionSpread=".1" EmissionRate="200" EmissionRateVar="0" InitialDelay="30.5" InitialCount="0" MinDistance="30" MaxDistance="320" StopMethod="0" ZSort="0" UprightSprite="0" RandomStartRotation="1" RandomRotationDirection="1" Lifetime=".35" LifetimeVar="0.6" Speed="0" SpeedVar="0" MaxSpeed="0" MaxSpeedVar="0.0" Accel="0" AccelVar="0.0" AccelTime="0.0" Gravity="0" Drag="0" DragDelay="0" InheritVelocity="0" Size="1.0" SizeVar="0.9" MaxSize="200.0" MaxSizeVar="5.0" GrowRate="10.0" GrowRateVar=".05" RotationRate="1.0" RotationRateVar="1.0" FadeInTime="0" InitialColor="255 255 255" InitialAlpha="300" Color="255 255 255" Alpha="300" FadeOutTime="10.0" FinalColor="255 255 255" FinalAlpha="400" Texture="smokepuff05.dds" BlendMode="QuadSprite"/>

<ratoblitz_smoketrail_short_1 ClassName="ParticleEffect" EmitterShape="sphere" InitialDelay="45" EmitterRadius="0" EmitterLifetime="54.5" EmitterPosX="-.05" EmitterPosY="0" EmitterPosZ="-.50" ZBias="0.0" EmissionAngleHoriz="180" EmissionAngleVert="93" EmissionSpread="0" EmissionRate="200" EmissionRateVar="0" InitialDelay="30.5" InitialCount="0" MinDistance="30" MaxDistance="320" StopMethod="0" ZSort="0" UprightSprite="0" RandomStartRotation="1" RandomRotationDirection="1" Lifetime=".35" LifetimeVar="0.6" Speed="0" SpeedVar="0" MaxSpeed="0" MaxSpeedVar="0.0" Accel="0" AccelVar="0.0" AccelTime="0.0" Gravity="0" Drag="0" DragDelay="0" InheritVelocity="0" Size="1.0" SizeVar="0.9" MaxSize="200.0" MaxSizeVar="3.0" GrowRate="10.0" GrowRateVar=".05" RotationRate="1.0" RotationRateVar="8" FadeInTime="0" InitialColor="255 255 255" InitialAlpha="300" Color="255 255 255" Alpha="300" FadeOutTime="10.0" FinalColor="255 255 255" FinalAlpha="400" Texture="SmokePuff01.dds" BlendMode="QuadSprite"/>

<rocket_exhaust_ratoblitz ClassName="ParticleEffect" InitialDelay="45" EmitterShape="sphere" EmitterRadius="0" EmitterLifetime="54.5" EmitterPosX="0" EmitterPosY="0.0" EmitterPosZ="-1.0" ZBias="0.0015" EmissionAngleHoriz="180" EmissionAngleVert="0" EmissionSpread="30" EmissionRate="400" EmissionRateVar="0" InitialDelay="0" InitialCount="0" MinDistance="0" MaxDistance="2500" StopMethod="0" ZSort="0" UprightSprite="0" RandomStartRotation="1" RandomRotationDirection="1" Lifetime=".35" LifetimeVar=".03" Speed=".01" SpeedVar="0" MaxSpeed="1000" MaxSpeedVar="0.0" Accel="-1.5" AccelVar="0.0" AccelTime="1" Gravity="0" Drag=".001" DragDelay="2" InheritVelocity="0" Size="1" SizeVar=".3" MaxSize="30" MaxSizeVar="10" GrowRate="50" GrowRateVar="10" RotationRate="30" RotationRateVar="15" FadeInTime="0" InitialColor="67 47 41" InitialAlpha="180" Color="135 133 133" Alpha="100" FadeOutTime="3" FinalColor="135 133 133" FinalAlpha="0" Texture="cloudpuff.DDS" BlendMode="QuadSprite"/>
 
Using the xmlWrench on one of my effect.xml in found a few lines with double attributes, but I do not know which one to delete. So here are the lines:

Hi gosd,

don't delete these "duplicate attributes". It is a weakness of using XML wrench - it cannot properly analyse the effects.xml. Don't even bother trying to use an xml editor on the effects.xml file.

The best way to find real duplicate entries in the effects.xml file is to use Oki's method of arranging all the effects in alphabetical order - even then you have to read each entry very carefully to ensure what you have is really a duplicate effect.

There is IIRC a post in the knowledgebase sticky about how to arrange the effects.xml in alphabetical order.

HTH :encouragement:
 
Back
Top