"Handy" race trait broken for ship maintenance in RaceTraitDefs.xml

I was mousing over ship maintenance many times in the ship designer and ships. I did not see any reduction in my ship maintenance. Finally found the reason.

Below is the lines from the RaceTraitDefs.xml. The "<EffectType>ShipMaintenance</EffectType>" below should say "<EffectType>Maintenance</EffectType>" The ship maintenance reduction finally worked after changing "ShipMaintenance" to "Maintenance"

Four of the entries in the xml are bugged, Handy1, Handy2, Handy3, and Handy4.

Edit: RaceTraitsDefs.xml might not be bugged, other xmls might be the ones bugged?

<RaceTrait>
    <InternalName>Handy1</InternalName>
    <DisplayName>Handy1_Name</DisplayName>
    <Description>Handy1_Desc</Description>
    <Mod>
      <EffectType>ShipMaintenance</EffectType>
      <Scope>Global</Scope>
      <Target>
        <TargetType>Ship</TargetType>
      </Target>
      <BonusType>Multiplier</BonusType>
      <Value>-0.2</Value>
    </Mod>
    <Mod>
      <EffectType>Maintenance</EffectType>
      <Scope>Global</Scope>
      <Target>
        <TargetType>Colony</TargetType>
      </Target>
      <BonusType>Multiplier</BonusType>
      <Value>-0.2</Value>
    </Mod>
  </RaceTrait>

-----------------------------------------------------------------

Second example from GalCiv3AIDefs.xml, bonuses on Godlike difficulty.

I noticed there's no "ShipMaintenance"

<Stats>
    <EffectType>Maintenance</EffectType>
    <Scope>Global</Scope>
    <Target>
     <TargetType>Improvement</TargetType>
    </Target>
    <BonusType>Multiplier</BonusType>
    <Value>-0.5</Value>
   </Stats>   
   <Stats>
    <EffectType>Maintenance</EffectType>
    <Scope>Global</Scope>
    <Target>
     <TargetType>Ship</TargetType>
    </Target>
    <BonusType>Multiplier</BonusType>
    <Value>-0.5</Value>

5,768 views 2 replies
Reply #1 Top

Interesting. ShipMaintenance is declared in the XML Schema files though:

StatTypes.xsd

Code: xml
  1. ...
  2. &lt;xs:enumeration value="ShipMaintenance"/&gt;
  3. ...

StatTypeDisplayDefs.xml

Code: xml
  1. ...
  2. &lt;StatTypeDisplayDef&gt;
  3. &lt;UniqueID&gt;ShipMaintenance&lt;/UniqueID&gt;
  4. &lt;DisplayName&gt;STATNAME_ShipMaintenance&lt;/DisplayName&gt;
  5. &lt;/StatTypeDisplayDef&gt;
  6. ...
 

Perhaps it needs to be applied to "Faction" instead of "Ship"... 

Reply #2 Top

Fixed for beta 6, thank you.