Creating New Planet Types?

I tried creating new planet types using the PLANETDEFs and PLANETTRAITDEFs files, but they just wouldn't stick.  The selected planets simply didn't have a type, they were just generic worlds.   Did I miss a file, or is that not possible?

8,477 views 6 replies
Reply #1 Top

What do you mean a new planet type? Theres only 3 atm, Dead, Habitable, Gas Giant. if you mean the ones with bonuses, they are Planet Traits, PlanetTraitDefs.xml

Reply #2 Top

Quoting Horemvore, reply 1

What do you mean a new planet type? Theres only 3 atm, Dead, Habitable, Gas Giant. if you mean the ones with bonuses, they are Planet Traits, PlanetTraitDefs.xml
End of Horemvore's quote

Yes, I created some new traits (Utopian World, Ancient World, Lost World, etc) and assigned them to planets in the SOL system using StarSystemDefs.xml.  Those planets just came up generic though.  I did cut and paste from Serene World, Desert World, etc to make sure I had all the fields.  But, those SOL planets never took on the traits.  They will only take on the canned traits (Serene, Active Core, Toxic, etc).

Just trying to see if there is somewhere I missed to get those new traits added,

Reply #3 Top

Set the trait in PlanetDefs.xml
    <Planet>
        <InternalName>PlanetXindi</InternalName>
        <DisplayName>Xindus</DisplayName>
        <PlanetType>Habitable</PlanetType>
        <PlanetClass>22</PlanetClass>
        <PlanetTrait>HomeWorld_Xindi</PlanetTrait>
        <ArtDefine>AltariaArt</ArtDefine>
    </Planet>

 PlanetClass has to match in both files.

Reply #4 Top

Quoting Horemvore, reply 3

Set the trait in PlanetDefs.xml
    <Planet>
        <InternalName>PlanetXindi</InternalName>
        <DisplayName>Xindus</DisplayName>
        <PlanetType>Habitable</PlanetType>
        <PlanetClass>22</PlanetClass>
        <PlanetTrait>HomeWorld_Xindi</PlanetTrait>
        <ArtDefine>AltariaArt</ArtDefine>
    </Planet>

 PlanetClass has to match in both files.
End of Horemvore's quote

Yes, I did set the ranges for the planet classes in the planettraits file and then made sure the planetdefs were the right classes.

Reply #5 Top

I had a similar issue. I've tried many things and am not sure what exactly fixed that, but I'll suggest just what I suspect: <ArtDefine>AltariaArt<\ArtDefine> term. If you take a look at the Planetartdefs file, some "ArtDefine" contains "PlanetTrait" term, RadioactiveWorld for instance. I couldn't use radioactive artdefine on my custom planet on my custom starsystem. 

Reply #6 Top

Thank you for that tip!  I'll check that out.