Logo Platform
logo amplifiers simplified

WorldGeneratorSettings.xml Missing in ModdingReference.xml

Reply
Copied to clipboard!
8 years ago
Mar 2, 2017, 4:30:10 AM

Hi,

I can't find a way to link WorldGeneratorSettings.xml for using it in a mod.


In in ModdingReference.xml there is this only :


--------------------------------------------------------------

<!-- Option Definitions -->

<DatabasePlugin DataType="OptionDefinition, Assembly-CSharp">
<ExtraTypes>
<ExtraType DataType="GameOptionDefinition, Assembly-CSharp" />
<ExtraType DataType="WorldGeneratorOptionDefinition, Assembly-CSharp" />
</ExtraTypes>
<FilePath>Options/GameOptionDefinitions.xml</FilePath>
<FilePath>WorldGenerator/WorldGeneratorOptionDefinitions.xml</FilePath>
</DatabasePlugin>

<DatabasePlugin DataType="WorldGeneratorScenarioDefinition, Assembly-CSharp">
<FilePath>WorldGenerator/Scenarios/*.xml</FilePath>
</DatabasePlugin>

--------------------------------------------------------------

It means there is no way to mod anything in this file, and I would like ;-)

0Send private message
8 years ago
Mar 2, 2017, 4:56:43 AM

In This settings file there is property I can use as options in World generator options screen.

Example :

IslandsMinimalSize

MaxLandElevation

CoastalCliffPercent

Etc...


Like that :

<ItemDefinition Name="10">
<KeyValuePair Key="CoastalCliffPercent">10</KeyValuePair>
</ItemDefinition>


But how can use embed propertys ?


<POIAlgorithmParameters>

<Algorithm Name="DistributeVillages">
<Parameter Name="ExclusionRadius"         Value="1"/>
<Parameter Name="MinSitesPerEmptyRegion"  Value="1"/>
<Parameter Name="MaxSitesPerEmptyRegion"  Value="3"/>
<Parameter Name="MinSitesPerSpawnRegion"  Value="1"/>
<Parameter Name="MaxSitesPerSpawnRegion"  Value="1"/>
</Algorithm>

</Algorithm>

Example, how to use MinSitesPerEmptyRegion in an option ?



0Send private message
8 years ago
Mar 9, 2017, 5:47:01 AM

This is a bit technical.

Maybe a staff member or a dev should reply ?

Is there a way to access these variables while modding ?

0Send private message
0Send private message0Send private message
?

Click here to login

Reply
Comment