Race specific planetary upgrades?

Hi trying to come up with race specific planetary upgrade.  For starters I would like Advent upgrade that adds population to asteroids.  It be nice if I can add my own "path:" but for now I'm content with using the population path.  Anyone got any ideas?

If this is impossible I guess I could technically add soem sort of research in civilian tree that increases the max pop of asteroids by ridiculous amount to achieve the same effect.  But I would like to get this working as is.

Anyway simply doing this won't work as it would make it avaialble for all factions:

planetUpgradeDef
    path:Population
        stageCount 3
        stage
            price
                credits 0.000000
                metal 0.000000
                crystal 0.000000
            upgradeTime 0.000000
            maxPopulation 10.000000
            populationGrowthRate 0.025000
            developmentTaxPenalty -2.000000
        stage
            price
                credits 450.000000
                metal 150.000000
                crystal 75.000000
            upgradeTime 45.000000
            maxPopulation 20.000000
            populationGrowthRate 0.025000
            developmentTaxPenalty 0.000000

        stage
            price
                credits 550.000000
                metal 225.000000
                crystal 125.000000
            upgradeTime 45.000000
            maxPopulation 60.000000
            populationGrowthRate 0.025000
            developmentTaxPenalty 1.000000

 

5,060 views 6 replies
Reply #1 Top

Not possible. :P

Reply #2 Top

You might be able to work around it. Make it avaliable to all racess, but make the upgrade so expensive that no one could research it (1,000,000 credits or something). Then add a new research for the faction that you want that reduces the cost by 99%. That way, only that race that has the research would be able to do it.

Reply #3 Top

Yeah but i think just adding a new research that gives huge bonus to population isntead will work.

Reply #4 Top

Ok I am trying to work aroudn this by giving Advent a new research that gives them a Population Cap increase for Asteroids.  But I am having minidump. I used desert upgrade as starting point so all the description stuff is placeholder. This is what I have thus far:

File: RESEARCHSUBJECT_POPULATIONCAPASTEROIDTPSI0.ENTITY

TXT
entityType "ResearchSubject"
hudIcon "HUDICON_RESEARCHSUBJECT_POPULATIONCAPDESERTPSI0"
smallHudIcon "HUDICON_RESEARCHSUBJECT_POPULATIONCAPDESERTPSI0"
infoCardIcon ""
NameStringID "IDS_RESEARCHSUBJECT_POPULATIONCAPDESERTPSI0_NAME"
DescriptionStringID "IDS_RESEARCHSUBJECT_POPULATIONCAPDESERTPSI0_DESCRIPTION"
researchWindowLocation
    block 2
    pos [ 3 , 3 ]
ResearchField "NonCombat"
Prerequisites
    NumResearchPrerequisites 0
MinimumArtifactLevel -1
BaseUpgradeTime 60.000000
PerLevelUpgradeTime 5.000000
BaseCost
    credits 1000.000000
    metal 150.000000
    crystal 250.000000
PerLevelCostIncrease
    credits 100.000000
    metal 25.000000
    crystal 25.000000
Tier 3
onlyWorksIfTierLabsExist FALSE
MaxNumResearchLevels 2
priority 0.000000
researchBoolModifiers 0
researchFloatModifiers 1
researchModifier
    modifierType "PlanetPopulationCapAdjustment"
    baseValue 0.000000
    perLevelValue 0.750000
    linkedPlanetType "Asteroid"
artifactPicture ""

Reply #5 Top

Turn on ShowErrors in user.setting and paste the error you get when it crashes ;)

Reply #6 Top

Thnx that help to narrow it doen. Turns out I had a slight typo in the stupid entity file name! The T from Desert remained after I renamed the file, d'oh.