News

Old versions of ship in shipyard/designer list

Posted on Monday, February 13, 2017

Ticket    #UDP-223-96247 Old versions of ship in shipyard/designer list

This bug is not new to v2.0 but I just recently found an easy way to reproduce it.  It likely only surfaces if you create your own ship blueprint and add the new ship to  FactionShipStyleSetDefs.xml & ShipClassDefs (Which I did)

 I made a huge hull with both tactical and beam fleet support modules and I armed it with missiles.  Everything worked fine until I went back and added MissileAugment(s) to the blueprint, at which point multiple versions of the ship showed up in the shipyard and ship designer lists (i.e.  a M1, M2 .. Mn)

See pic in link:

https://content.screencast.com/users/a0152570/folders/Jing/media/d07017b1-c544-4fb0-9f3d-634cdac1d890/2017-02-13_1741.png

 

To duplicate use the following blueprint add ship to Terran’s  ( edit FactionShipStyleSetDefs & ShipClassDefs), start a new game, use cheat code ‘unlock’ and open the ship designer.  Delete the MissileAugment(s) and the problem goes away

 

  <ShipBlueprint>

    <InternalName>Beam_huge_supportBlueprint</InternalName>

    <ShipHullType>Huge</ShipHullType>

    <Role>Guardian</Role>

    <ShipGroup>Support</ShipGroup>

    <RequiredComponentType>BeamSupport1</RequiredComponentType>

   <ComponentType>BeamSupport2</ComponentType>

    <ComponentType>LifeSupport</ComponentType>

   <ComponentType>InterstellarDrive</ComponentType>

   <ComponentType>InterstellarDrive</ComponentType>

   <ComponentType>InterstellarDrive</ComponentType>

   <ComponentType>BestDefense</ComponentType>

   <ComponentType>MissileAugment3</ComponentType>

   <ComponentType>MissileAugment1</ComponentType>

   <ComponentType>MissileAugment2</ComponentType> 

    <ComponentType>ShieldProjection</ComponentType>

   <ComponentType>PointProjection</ComponentType>

   <ComponentType>RepairSupport</ComponentType>

   <ComponentType>JammingSupport</ComponentType>

   <ComponentType>TargetingSupport</ComponentType>

    <ComponentType>SublightSuppression</ComponentType>

   <ComponentType>MovesSupport</ComponentType>

    <FillerComponentType>MissileWeapon</FillerComponentType>

   <FillerComponentType>MissileWeapon</FillerComponentType>

   <FillerComponentType>BestDefense</FillerComponentType>

  </ShipBlueprint>