ENDLESS™ Space 2

ENDLESS™ Space 2

Explore the secrets of the Endless Universe
Discover the world of modding in Endless Space 2. Download an asset from this workshop (map, gameplay addition, etc.)
NECRON 17 Jul, 2023 @ 3:57pm
Need help for modding modules
Recently i started experimenting with the SimulationDescriptors[ModuleDefense] and SimulationDescriptors[ModuleSupport] XML files, i was trying to make OP modules that have all the effects possible for their category.

For the first i succeeded by doing some patchwork like so:

<SimulationDescriptor Name="ModuleDefenseHullPlating5Strategic5" Type="ModuleDefense">
<Modifier TargetProperty="SectionHealthBonus" Operation="Addition" Value="1600" Path="ClassModuleDefense"/>
<Modifier TargetProperty="HullPlatingAbsorption" Operation="Addition" Value="300" Path="ClassModuleDefense"/>
<Modifier TargetProperty="RepairFlatPerDamageAbsorbedByHullPlating" Operation="Addition" Value="0.1" Path="ClassModuleDefense"/>
<Modifier TargetProperty="ShieldAbsorption" Operation="Addition" Value="800" Path="ClassModuleDefense"/>
<Modifier TargetProperty="ShieldBonus" Operation="Addition" Value="2000" Path="ClassModuleDefense"/>
<Modifier TargetProperty="ShieldReloadPerPhase" Operation="Addition" Value="500" Path="ClassModuleDefense"/>
<Modifier TargetProperty="Evasion" Operation="Addition" Value="0.05" Path="ClassModuleDefense"/>
<Modifier TargetProperty="ShipManpowerKillAbsorption" Operation="Addition" Value="0.1" Path="ClassModuleDefense"/>
<Modifier TargetProperty="OpponentCriticalHitDamagePercent" Operation="Addition" Value="-0.25" Path="ClassModuleDefense"/>
</SimulationDescriptor>

i am a total noob at this so i didn't try making a new defense module and instead modified the Orichalcum plating you get from research, THIS works.

But doing the same for the support module doesn't work:

<SimulationDescriptor Name="ModuleSupportFlotillaShield3Strategic6" Type="ModuleSupportFlotillaShield">
<Modifier TargetProperty="FlotillaMaximumShield" Operation="Addition" Value="1500" Path="ModuleSupportFlotillaShield" />
<Modifier TargetProperty="FlotillaShieldAbsorption" Operation="Addition" Value="200" Path="ModuleSupportFlotillaShield" />
<Modifier TargetProperty="SectionHealthBonus" Operation="Addition" Value="100" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="LocalManpower" Operation="Addition" Value="300" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="AdditionalGroundBattleManpowerLimit" Operation="Addition" Value="125" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="ShipManpowerKillAbsorption" Operation="Addition" Value="0.3" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="DamageEnergy" Operation="Addition" Value="0.15" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="CriticalHitChance" Operation="Addition" Value="0.15" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="DamageProjectile" Operation="Addition" Value="0.15" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="Evasion" Operation="Addition" Value="0.02" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="MaximumMovementFleet" Operation="Addition" Value="1" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="FlotillaRepairAfterBattle" Operation="Addition" Value="0.05" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="FlotillaRepairAfterPhase" Operation="Addition" Value="0.05" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="OpponentRecyclingDustPerCP" Operation="Addition" Value="100" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="OpponentRecyclingEmpirePointPerCP" Operation="Addition" Value="50" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="RepairAfterBattle" Operation="Addition" Value="0.05" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="RepairAfterPhase" Operation="Addition" Value="0.05" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="HealthRegenerationRatio" Operation="Addition" Value="0.05" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="ShieldReloadPerPhase" Operation="Addition" Value="250" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="SiegePower" Operation="Addition" Value="20" Path="ModuleSupportFlotillaShield"/>
<Modifier TargetProperty="DefensiveMilitaryPower" Operation="Percent" Value="0.2" Path="../ClassShip"/>
</SimulationDescriptor>

This is a modified version where i tried fixing it by changing the "Path=" to correspond with the module it was attached to, the problem is that they still don't register at all, the game works fine and i can even tweak the numbers for the effects that were originally there ( maximum shield, shield absorption ) but support module effects seem to be completely tied to their original category.

If by any chance someone with modding experience can help me condense all these support effects into one module i'd be grateful.

For the rest of you even if you can't help if you're interested the first code is functional and can be copypasted in the XML file to give yourself an OP late game armor/shields for your ships.
< >
Showing 1-2 of 2 comments
Knofbath 2 18 Nov, 2023 @ 12:46pm 
You can't add effects to Support modules that aren't covered in their Type Definition.

Which in the case of ModuleSupportFlotillaShield is just FlotillaMaxShield and Shield Absorb:

<SimulationDescriptor Name="ModuleSupportFlotillaShield" Type="ModuleSupportFlotillaShield"> <Property Name="FlotillaMaximumShield" BaseValue="0"/> <Property Name="FlotillaShieldAbsorption" BaseValue="0"/> </SimulationDescriptor>

Define the Property first, then Modify it.
NECRON 19 Nov, 2023 @ 9:26am 
Originally posted by Knofbath:
You can't add effects to Support modules that aren't covered in their Type Definition.

Which in the case of ModuleSupportFlotillaShield is just FlotillaMaxShield and Shield Absorb:

<SimulationDescriptor Name="ModuleSupportFlotillaShield" Type="ModuleSupportFlotillaShield"> <Property Name="FlotillaMaximumShield" BaseValue="0"/> <Property Name="FlotillaShieldAbsorption" BaseValue="0"/> </SimulationDescriptor>

Define the Property first, then Modify it.
Thank you for the anwser but Captain Cobbs already helped me with this ( he must have deleted the comment ).
< >
Showing 1-2 of 2 comments
Per page: 1530 50