Logo Platform
logo amplifiers simplified

Portals and non-Valulter Factions.

Reply
Copied to clipboard!
7 years ago
Jun 17, 2018, 10:16:17 AM

My undersanding is that other factions can use portals. (Such as when allied with Vaulters.)

However, when I create a new system improvment that creates a portal, only Valulters seem to be able to use it.

What am I missing?

0Send private message
7 years ago
Jun 17, 2018, 10:51:42 AM

I would make a SimulationDescriptor that would add 1 to property "CanUsePortals" that is defined in SimulationDescriptors[Empire] and add it to a Technology or something depending on who you want to have it, or just change its base value to 1 if you want to enable it for everyone


Not actually sure if this will work because I can't test it but the Vaulters Trait does this and it worked for me when enabling Material Expertise for everyone in the same way

0Send private message
0Send private message0Send private message
7 years ago
Jun 19, 2018, 9:00:11 PM

In my case, I was adding a portal building that any race could use.


It's just a matter of that improvement also adding 1 to the CanUsePortals property.

    <SimulationDescriptor Name="TemplePortal" Type="StarSystemImprovement">
        <Modifier TargetProperty="HasPortal"    Operation="Addition" Value="1" Path="./ColonizedStarSystemStateColony,ClassColonizedStarSystem" TooltipOverride="%TemplePortal_Tip" />
        <Modifier TargetProperty="CanUsePortals"    Operation="Addition" Value="1" Path="../ClassEmpire" TooltipHidden="true"/>
    </SimulationDescriptor>


0Send private message
7 years ago
Jun 20, 2018, 8:16:17 AM

hmm...it doesn't seems to show up in any race, i add it in "SimulationDescriptors[Empire]" and also in " ConstructibleElement_Industry[StarSystemImprovement] "

0Send private message
7 years ago
Jun 20, 2018, 8:37:14 AM

It's for an improvement in "SimulationDescriptors[StarSystemImprovement]"

Not "SimulationDescriptors[Empire]" or "ConstructibleElement_Industry[StarSystemImprovement]"

Updated 7 years ago.
0Send private message
0Send private message
7 years ago
Jun 20, 2018, 10:42:19 AM

Dunno what to say, it works for me.

Wait... What do you mean, "...doesn't show up..."


What doesn't show up?

0Send private message
0Send private message
7 years ago
Jun 20, 2018, 7:25:50 PM

Well you'll need a working building before expecting CanUsePortals to work.


What I posted above was just an example snippet, not a full working building.

0Send private message
0Send private message
7 years ago
Jun 20, 2018, 9:50:57 PM

I can't give a full tutorial on making a building, but basicaly you need:


1) A SimulationDescriptor to define what the building does, such as in SimulationDescriptors[StarSystemImprovements]

2) A StarSystemImprovementDefinition to define how it can be built (and which SimulationDescriptor to point to), such as in ConstructibleElement_Industry[StarSystemImprovement]

3) A GuiElement to link LocalizationPairs and icons

4) Various LocalizationPairs for the title and descriptions in a particular language.

Updated 7 years ago.
0Send private message
?

Click here to login

Reply
Comment

Characters : 0
No results
0Send private message