News

Possible Bug with AssaultFighterModule

Posted on Friday, April 22, 2016

I was looking at the ShipComponentDefs.xml and came across this entry:-

 
  <ShipComponent>
    <InternalName>AssaultCarrier Module</InternalName>
    <DisplayName>AssaultCarrier Module_Name</DisplayName>
    <Description>AssaultCarrier Module_Dec</Description>
    <ArtDefine>Carrier_Module_01</ArtDefine>
    <Category>Modules</Category>
    <Type>AssaultCarrierModule</Type>
    <PlacementType>Module</PlacementType>
    <Stats>
      <EffectType>Threat</EffectType>
      <Target>
        <TargetType>Ship</TargetType>
      </Target>
      <BonusType>Flat</BonusType>
      <Value>6</Value>
    </Stats>
    <Stats>
      <EffectType>Value</EffectType>
      <Target>
        <TargetType>Ship</TargetType>
      </Target>
      <BonusType>Flat</BonusType>
      <Value>10</Value>
    </Stats>
    <Stats>
      <EffectType>ManufacturingCost</EffectType>
      <Scope>Queue</Scope>
      <Target>
        <TargetType>Ship</TargetType>
      </Target>
      <BonusType>Flat</BonusType>
      <Value>195</Value>
    </Stats>
    <Stats>
      <EffectType>SupportMass</EffectType>
      <Target>
        <TargetType>Ship</TargetType>
      </Target>
      <BonusType>Flat</BonusType>
      <ValueType>Special</ValueType>
      <SpecialValue>
        <Special>HullMassScaleMod</Special>
        <ValueParam>70</ValueParam>
        <ValueParam>0.05</ValueParam>
      </SpecialValue>
    </Stats>
    <Stats>
      <EffectType>AssaultFightersCap</EffectType>
      <Target>
        <TargetType>Ship</TargetType>
      </Target>
      <BonusType>Flat</BonusType>
      <Value>2</Value>
    </Stats>
    <Stats>
      <EffectType>Maintenance</EffectType>
      <Target>
        <TargetType>Ship</TargetType>
      </Target>
      <BonusType>Flat</BonusType>
      <Value>2</Value>
    </Stats>
    <Prerequ>
      <Techs>
        <Option>CarrierTech</Option>
      </Techs>
    </Prerequ>
  </ShipComponent>

 

There seems to be an extra space in the InternalName, DisplayName, Description. Other files that reference this component like, ShipBluePrints.xml apply the reference without a space:-

    <RequiredComponentType>AssaultCarrierModule</RequiredComponentType>

Or ComponentClassDefs.xml :-

    <UniqueID>AssaultCarrierModule</UniqueID>

 

No idea if this is actualy having adverse effects in game or not. Its the only entry in ShipComponentDefs.xml that has that extra space.