Newbie Modder - Increasing Hitpoints of Star bases

I am testing the waters with modding and figured I would try something easy. I create a new directory under Mods and copied in both the StarbaseDefs.xml and the StarbaseModuleDefs.xml. I made two changes. First I upped the base hit points to 500:

  <Starbase>
    <InternalName>BasicStarbase</InternalName>
    <DisplayName>BasicStarbaseName</DisplayName>
    <Stats>
      <EffectType>HitPointsCap</EffectType>
      <Target>
        <TargetType>Starbase</TargetType>
      </Target>
      <BonusType>Flat</BonusType>
      <Value>500</Value>
    </Stats>

Then I added a hit point modifier to the first Star base defense system:

  <StarbaseModule>
    <InternalName>StarbaseDefenseSystem</InternalName>
    <DisplayName>StarbaseDefenseSystem_Name</DisplayName>
    <Description>StarbaseDefenseSystem_Dec</Description>
    <ShortDescription>StarbaseDefenseSystem_ShortDec</ShortDescription>
    <Icon>GC3_Starbase_Defense_System.png</Icon>
    <SpecializationType>Generic</SpecializationType>
    <!-- Stats -->
    <Stats>
      <EffectType>ModuleConstructionPoints</EffectType>
      <Scope>Queue</Scope>
      <Target>
        <TargetType>StarbaseModule</TargetType>
      </Target>
      <BonusType>Flat</BonusType>
      <Value>1</Value>
    </Stats>
    <Stats>
      <EffectType>HitPointsCap</EffectType>
      <Target>
        <TargetType>Starbase</TargetType>
      </Target>
      <BonusType>Flat</BonusType>
      <Value>250</Value>
    </Stats>

I started a new game after saving the files and making sure mods were enabled. I created my first star base and the UI only showed 200 hit points so I must have done something wrong with the base hit points. I then created the first star base defense system which in the tool tip showed the +250 hit points, but after building it and waiting a turn, it then shows 204/450. Can't the additional hit points get added immediately? What did I do wrong? Thanks!

6,311 views 3 replies
Reply #1 Top

You have to add the HP to the Vigilant Starbase too. In the DLC/EXP1_Mercenaries/Game folder called EXP1_StarbaseDefs.xml. It sounds like you have the Vigilant Trait due to the missing HP.

As too the Module edit it should be:-


        <Stats>
            <EffectType>HitPointsCap</EffectType>
            <Target>
                <TargetType>Starbase</TargetType>
            </Target>
            <BonusType>Flat</BonusType>
            <Value>250</Value>
        </Stats>

Reply #2 Top

Vigilant was it. Thanks! So now I start with 500 hit points. When I add my hit point modifier module though, it still start out at 504/750, treating it like a repair. Is there any way to go straight from 500 to 750? Or maybe a way to decrease the repair time?

Reply #3 Top

Only via strategic repair:-


        <Stats>
            <EffectType>StrategicRepair</EffectType>
            <Target>
                <TargetType>Starbase</TargetType>
            </Target>
            <BonusType>Flat</BonusType>
            <Value>8</Value>
        </Stats>