Help on adding a new species

Creation, discussion, and balancing of game content such as techs, buildings, ship parts.

Moderators: Oberlus, Committer

Post Reply
Message
Author
User avatar
dragoduval
Space Krill
Posts: 3
Joined: Tue Dec 01, 2020 11:37 pm

Help on adding a new species

#1 Post by dragoduval »

Not sure if it's the good place to post it, but i added a new species for myself, but everytime i start the game it start on a radiated or ocean world. Is there a way to set the starting planet ?

If somebody who's been here for more that 30 minute (Unlike me) could tell me where to look for, it would help me a lot, cause i ahve been looking around for the last two hours and im pretty sure that i looked at all of the files.

User avatar
Oberlus
Cosmic Dragon
Posts: 5715
Joined: Mon Apr 10, 2017 4:25 pm

Re: Help on adding a new species

#2 Post by Oberlus »

Could you post the files you've modified or created?
AFAIK, the environment for your starting homeworld is always set to the preferred (good) environment of that species.

User avatar
dragoduval
Space Krill
Posts: 3
Joined: Tue Dec 01, 2020 11:37 pm

Re: Help on adding a new species

#3 Post by dragoduval »

Sure, here it is. I used the Terran species as a base and modified it. Also i know that it is a cheaty species, im going to finetune it later :D.
Attachments
SP_DRAGON.focs.txt
(1.61 KiB) Downloaded 119 times

User avatar
Oberlus
Cosmic Dragon
Posts: 5715
Joined: Mon Apr 10, 2017 4:25 pm

Re: Help on adding a new species

#4 Post by Oberlus »

You used this:

Code: Select all

[[TOLERANT_EP]]
It makes most environments Good, so any of those can be the environment of your starting world:

Code: Select all

TOLERANT_EP
'''environments = [
        type = Swamp        environment = Good
        type = Toxic        environment = Good
        type = Inferno      environment = Good
        type = Radiated     environment = Good
        type = Barren       environment = Good
        type = Tundra       environment = Good
        type = Desert       environment = Good
        type = Terran       environment = Good
        type = Ocean        environment = Good
        type = Asteroids    environment = Uninhabitable
        type = Gasgiant     environment = Uninhabitable
    ]'''
You could make a new RATHER_TOLERANT_EP for your own convenience that only has one Good and the rest are adequate or something.
Another way could be to script an effect, not sure where, to change environment (using SetPlanetType), but only on first turn to prevent doing the same on every new world. However the effect would not be visible until turn 2 which is awkward...

User avatar
dragoduval
Space Krill
Posts: 3
Joined: Tue Dec 01, 2020 11:37 pm

Re: Help on adding a new species

#5 Post by dragoduval »

Ha thanks for the information. I did just like you said and added a new environnement option with a good one and the rest adequate or hostile. It work fine now :D.

Post Reply