Changing pioneer build time

Has anyone found how to mod the production cost of a pioneer? I have tried increasing a number of things in coreunits and elementaldefs but the base is still 1. Anyone figured this out?

8,203 views 8 replies
Reply #1 Top

I'm not sure what is the problem exactly. I made a new mod file, and put this in

    <UnitType InternalName="Unit_Pioneer_Altarian">
        <DisplayName>Pioneer</DisplayName>
        <Description>Pioneers are equipped with the necessary materials to start new settlements.</Description>
        <Class>Pioneer</Class>
        <RaceType>Race_Type_Altarians</RaceType>
        <CanBeDesigned>1</CanBeDesigned>
        <Gender>Female</Gender>
        <AdditionalTrainingTurns>190</AdditionalTrainingTurns>
        <IsSovereign>0</IsSovereign>
        <IsStartingUnitType>1</IsStartingUnitType>
            <GameModifier>
                <ModType>Unit</ModType>
                <Attribute>UnlockAction</Attribute>
                <StrVal>BuildTown</StrVal>
            </GameModifier>
            <GameModifier>
                <ModType>Unit</ModType>
                <Attribute>UnlockAction</Attribute>
                <StrVal>BuildImprovement</StrVal>
                <StrVal2>Outpost</StrVal2>
            </GameModifier>
        <LevelMilestone InternalName="L1">
            <Level>1</Level>
            <UnitStat_CombatSpeed>20</UnitStat_CombatSpeed>
            <UnitStat_Constitution>10</UnitStat_Constitution>
            <UnitStat_Dexterity>9</UnitStat_Dexterity>
            <UnitStat_Intelligence>9</UnitStat_Intelligence>
            <UnitStat_Strength>8</UnitStat_Strength>
        </LevelMilestone>
        <SelectedAbilityBonusOption>Weak</SelectedAbilityBonusOption>
        <Equipment>K_Female_Head_02</Equipment>
        <Equipment>Sovereign_Bandit_Hair_ID1</Equipment>
        <Equipment>Quilted_Corset_ID1</Equipment>
        <Equipment>Empire_Overskirt_ID2_Flipped</Equipment>
        <Equipment>TightBoots_Dark</Equipment>
        <Equipment>SionVambraces</Equipment>
        <Prereq>
            <Type>Race</Type>
            <Attribute>Race_Type_Altarians</Attribute>
        </Prereq>
        <AnimationPack>FemaleSovereignAnimationPack</AnimationPack>
        <BattleAnimationBehavior>Melee</BattleAnimationBehavior>
        <BobbingFrequency>0</BobbingFrequency>
        <ClothPoseIndex>6</ClothPoseIndex>
        <Color_Hair>163,118,83,255</Color_Hair>
        <Color_Metal>145,145,145,255</Color_Metal>
        <Color_Skin>210,145,95,255</Color_Skin>
        <CutSceneDataPack>DefaultUnitCutscenePack</CutSceneDataPack>
        <EyeTexture>gfx\eyes\blinks\eyeblink_f2_ltblue.png</EyeTexture>
        <InfoCardBackground>BG1_Sunset</InfoCardBackground>
        <InfoCardBackgroundFlipped>0</InfoCardBackgroundFlipped>
        <ModelPath>Gfx\HKB\Units\K_Female_Mesh_01.hkb</ModelPath>
        <ModelScale>1</ModelScale>
        <MovementType>land</MovementType>
        <MovingSFX>TEMP_KnightMarching1</MovingSFX>
        <OnHitParticleName>Bloody_OnHit</OnHitParticleName>
        <SkeletonPath>Gfx\HKB\Units\K_Male_Skeleton_01.hkb</SkeletonPath>
        <SoundPack>SoundPack_Generic_Female</SoundPack>
        <TacticalModelScale>1.5</TacticalModelScale>
        <Texture_Eyes>gfx\eyes\blinks\eyeblink_f2_ltblue.png</Texture_Eyes>
        <Texture_Skin>K_Female_Freckles_Texture_01.png</Texture_Skin>
        <UnitModelType>KingdomFemale</UnitModelType>
    </UnitType>

and the training cost was appropriately increased for altarian pioneers. Are you perhaps changing one pioneer, instead of changing it for every race?

Reply #2 Top

Also, if you have the UnitStat background mod installed, that contains an overwrite for all pioneers.

Reply #3 Top

then that is why nothing is changing :)

Reply #4 Top

I changed that tag last night in your unitstat mod and still did not get a change. I guess I need to look at it again.

Reply #5 Top

I am not getting a change either but after talking to HF via PM he says his is

So what is different from ours and his?

 

*edit*

Also, I have changed the core file, put a changed core file in the mod directory, and changed the unitstats one and the value never changes.

Furthermore, I have "use localized data = 1" in the prefs and -localdataonly in the shortcut target and still nothing.

Reply #6 Top

I just noticed that I have been playing with custom factions and maybe that is why the pioneers are 1 production. I decided to try playing as a standard and the time was 7 turns... which is working.

Reply #7 Top

A custom faction or just a created Sov? Maybe that is the hang up on my end since I'm using a designed Sov.

Reply #8 Top

Both custom faction and custom sov, even though looking at the race xmls they use altarian pioneers, so I don't see why it is happening this way.