Logo Platform
logo amplifiers simplified

Manual for modding Endless Space 2

Reply
Copied to clipboard!
5 years ago
May 8, 2020, 10:54:47 PM

Hello i wanted to ask: i want to add trait (assume that i know localization and FactionTrait) which makes fertile AND/OR temperature planets generate additional research.


    <SimulationDescriptor Name="FactionTraitXYZ1"    Type="FactionTrait">

        <Modifier TargetProperty="PlanetRawScience"         Operation="Addition"     Value="1"  Path="ClassEmpire/ClassColonizedStarSystem/ClassColonizedPlanet/Fertile" TooltipHidden="true"/>

    </SimulationDescriptor>


So which edits i need to make?


Thank you.

0Send private message
0Send private message
5 years ago
May 9, 2020, 7:25:55 AM

Thank you can you also write codes for: Sterile, cold, hot, small, desert, huge etc?


Thanks in advance.

Updated 5 years ago.
0Send private message
5 years ago
May 9, 2020, 9:24:21 AM

Sterile: PlanetGameplayTypeMeager

Cold: PlanetGameplayTypeCold

Hot: PlanetGameplayTypeHot

Tiny: PlanetSizeTiny

Small: PlanetSizeSmall

Medium: PlanetSizeMedium

Large: PlanetSizeLarge

Huge: PlanetSizeHuge


Here are all the planet codes:

PlanetTypeTerran

PlanetTypeForest

PlanetTypeOcean

PlanetTypeAtoll

PlanetTypeBoreal

PlanetTypeJungle

PlanetTypeMonsoon

PlanetTypeTundra

PlanetTypeTropical

PlanetTypeVeldt

PlanetTypeSteppes

PlanetTypeArid

PlanetTypeDesert

PlanetTypeSnow

PlanetTypeArctic

PlanetTypeAsh

PlanetTypeBarren

PlanetTypeSwamp

PlanetTypeLava

PlanetTypeIce

PlanetTypeGasFrozen

PlanetTypeGasCold

PlanetTypeGasTemperate

PlanetTypeGasWarm

PlanetTypeGasHot

PlanetTypeGasBurning


Also, here are the star types, works the same way

StarTypeBlue

StarTypeWhite

StarTypeDouble

StarTypeYellow

StarTypeRedSupergiant

StarTypeDysonSphere

StarTypeRedDwarf

StarTypeWhiteDwarf

StarTypeArtificial

StarTypeProtostar

StarTypeNone

StarTypeTemplars

Updated 5 years ago.
0Send private message
5 years ago
May 9, 2020, 9:48:26 AM

wow thank you kindly, do you know where can i find these templates rather than inspecting every single description file one by one.

So i will not bother anyone in the future.


Thanks.


0Send private message
0Send private message
5 years ago
May 9, 2020, 10:30:08 AM

i may as well ask something else then, TooltipHidden=True is neccessary?

I mean TooltipHidden=True + Localization text AND TooltipHidden=False without localization

are they the same thing?


EDIT:


    <SimulationDescriptor Name="FactionTraitXYZ1"    Type="FactionTrait">

        <Modifier TargetProperty="PlanetRawScience"         Operation="Addition"     Value="1"  Path="ClassEmpire/ClassColonizedStarSystem/ClassColonizedPlanet/PlanetGameplayTypeTeeming" TooltipHidden="true"/>

    </SimulationDescriptor>


does not work.


It says in description but does not effect the real output value of the planet.

Updated 5 years ago.
0Send private message
5 years ago
May 9, 2020, 11:39:57 AM

replace ClassColonizedPlanet/PlanetGameplayTypeTeeming with ClassColonizedPlanet,PlanetGameplayTypeTeeming 

TooltipHidden="true" hides the auto tooltip

0Send private message
5 years ago
May 9, 2020, 3:33:57 PM

Thanks that worked like a charm. I feel like im englihted.


"ClassEmpire/ClassColonizedStarSystem/PlanetGameplayTypeTeeming" seems to be effective too,  is this a mistake?


Last question: I saw that everyhing is TooltipHidden="true"  but they put the text inside the Localization file.

Whats the difference between TooltipHidden="false"  AND  TooltipHidden="true"  +  Localized text which contains info.


Aren't they supposed to do same thing which is giving tooltip info to the players.

Updated 5 years ago.
0Send private message
5 years ago
May 9, 2020, 7:58:39 PM

no not really, they're almost the same, the difference is that the first one targets every planet, then filters it by only fertile ones, bit the second one targets every fertile planet.


I see what you're saying now. TooltipHidden true hides the auto tooltip so you can replace it with something in localization because not all simulation descriptors have correct tooltip.
0Send private message
5 years ago
May 9, 2020, 9:38:55 PM

Thank you friend, i learnt about modding and xml structure a bit; its like a fun puzzle.


i made a trait that works as exactly as i wanted. I buffed tier 1 planets (atoll, terran etc) slighly while nerfing higher tier planets. So terraforming is will be like less-dilemma situation for me and it worked out well. 

Updated 5 years ago.
0Send private message
0Send private message0Send private message
4 years ago
Aug 23, 2020, 10:24:43 PM

Thanks CaptainCobbs for the tip.

Maybe you can provide additional help : can't find where the mods retrieved via the steam workshop are installed.


I'd like to look into code of existing mods to see what is wrong with mine or to get some inspirations.

Thanks

0Send private message
0Send private message0Send private message
?

Click here to login

Reply
Comment