Factorio Prototype DocsVersion 1.1.107

AutoplacePeak :: struct

Properties

influence optional :: double

Influence multiplier. [...]

Influence multiplier. [...]

min_influence optional :: double

Minimal influence (after all calculations) of current peak. [...]

Minimal influence (after all calculations) of current peak. [...]

max_influence optional :: double

Maximal influence (after all calculations) of current peak. [...]

Maximal influence (after all calculations) of current peak. [...]

richness_influence optional :: double

Bonus for influence multiplier when calculating richness. [...]

Bonus for influence multiplier when calculating richness. [...]

noise_layer optional :: NoiseLayerID

Name of NoiseLayer to use for this peak. [...]

Name of NoiseLayer to use for this peak. [...]

noise_persistence optional :: double

Must be between 0 and 1. [...]

Must be between 0 and 1. [...]

noise_octaves_difference optional :: double

Difference between number of octaves of the world and of the noise.

Difference between number of octaves of the world and of the noise.

noise_scale optional :: double
starting_area_weight_optimal optional :: double

Optimal value of starting_area_weight. [...]

Optimal value of starting_area_weight. [...]

starting_area_weight_range optional :: double

Distance from the optimal parameters that is still considered optimal. [...]

Distance from the optimal parameters that is still considered optimal. [...]

starting_area_weight_max_range optional :: double

Distance from the optimal parameters that get influence of -1. [...]

Distance from the optimal parameters that get influence of -1. [...]

starting_area_weight_top_property_limit optional :: double

Limit distance from the optimum on a single (positive) side. [...]

Limit distance from the optimum on a single (positive) side. [...]

elevation_optimal optional :: double

Optimal value of elevation. [...]

Optimal value of elevation. [...]

elevation_range optional :: double

Distance from the optimal parameters that is still considered optimal. [...]

Distance from the optimal parameters that is still considered optimal. [...]

elevation_max_range optional :: double

Distance from the optimal parameters that get influence of -1. [...]

Distance from the optimal parameters that get influence of -1. [...]

elevation_top_property_limit optional :: double

Limit distance from the optimum on a single (positive) side. [...]

Limit distance from the optimum on a single (positive) side. [...]

water_optimal optional :: double

Optimal value of water. [...]

Optimal value of water. [...]

water_range optional :: double

Distance from the optimal parameters that is still considered optimal. [...]

Distance from the optimal parameters that is still considered optimal. [...]

water_max_range optional :: double

Distance from the optimal parameters that get influence of -1. [...]

Distance from the optimal parameters that get influence of -1. [...]

water_top_property_limit optional :: double

Limit distance from the optimum on a single (positive) side. [...]

Limit distance from the optimum on a single (positive) side. [...]

temperature_optimal optional :: double

Optimal value of temperature. [...]

Optimal value of temperature. [...]

temperature_range optional :: double

Distance from the optimal parameters that is still considered optimal. [...]

Distance from the optimal parameters that is still considered optimal. [...]

temperature_max_range optional :: double

Distance from the optimal parameters that get influence of -1. [...]

Distance from the optimal parameters that get influence of -1. [...]

temperature_top_property_limit optional :: double

Limit distance from the optimum on a single (positive) side. [...]

Limit distance from the optimum on a single (positive) side. [...]

aux_optimal optional :: double

Optimal value of aux. [...]

Optimal value of aux. [...]

aux_range optional :: double

Distance from the optimal parameters that is still considered optimal. [...]

Distance from the optimal parameters that is still considered optimal. [...]

aux_max_range optional :: double

Distance from the optimal parameters that get influence of -1. [...]

Distance from the optimal parameters that get influence of -1. [...]

aux_top_property_limit optional :: double

Limit distance from the optimum on a single (positive) side. [...]

Limit distance from the optimum on a single (positive) side. [...]

tier_from_start_optimal optional :: double

Optimal value of tier_from_start. [...]

Optimal value of tier_from_start. [...]

tier_from_start_range optional :: double

Distance from the optimal parameters that is still considered optimal. [...]

Distance from the optimal parameters that is still considered optimal. [...]

tier_from_start_max_range optional :: double

Distance from the optimal parameters that get influence of -1. [...]

Distance from the optimal parameters that get influence of -1. [...]

tier_from_start_top_property_limit optional :: double

Limit distance from the optimum on a single (positive) side. [...]

Limit distance from the optimum on a single (positive) side. [...]

distance_optimal optional :: double

Optimal value of distance. [...]

Optimal value of distance. [...]

distance_range optional :: double

Distance from the optimal parameters that is still considered optimal. [...]

Distance from the optimal parameters that is still considered optimal. [...]

distance_max_range optional :: double

Distance from the optimal parameters that get influence of -1. [...]

Distance from the optimal parameters that get influence of -1. [...]

distance_top_property_limit optional :: double

Limit distance from the optimum on a single (positive) side. [...]

Limit distance from the optimum on a single (positive) side. [...]

Properties

influence :: double optional

Default: 1

Influence multiplier.

Influence is calculated as a sum of influences of peaks. Influence of a peak is obtained by calculating a distance from each of its dimensions and sum of these individual distances is used as a distance from optimal conditions. Based on this distance a peak gets influence between -1 and 1. This is then multiplied by the noise function, if it is specified, and by the influence constant (or by influence + richness_influence if calculating richness). Finally this value is clamped to a range between min_influence and max_influence.

When AutoplaceSpecification::starting_area_amount is non-zero a position in starting area is selected and a blob is placed centered on this position. Influence is then a maximum of the default calculated value and a value obtained from this blob.

min_influence :: double optional

Default: min double

Minimal influence (after all calculations) of current peak. See influence.

max_influence :: double optional

Default: max double

Maximal influence (after all calculations) of current peak. See influence.

richness_influence :: double optional

Default: 0

Bonus for influence multiplier when calculating richness. See influence.

noise_layer :: NoiseLayerID optional

Default: ""

Name of NoiseLayer to use for this peak. If empty, then no noise is added to this peak.

A peak may have a noise multiplied with its influence. Intended use is to have noise layers separate for different types of objects that might appear (trees-12 vs enemy-base).

noise_persistence :: double optional

Default: 0.5

Must be between 0 and 1. Persistence of the noise.

noise_octaves_difference :: double optional

Default: 0

Difference between number of octaves of the world and of the noise.

noise_scale :: double optional

Default: 1

starting_area_weight_optimal :: double optional

Optimal value of starting_area_weight. If starting_area_weight is close to this value, peak influence is 1.

starting_area_weight corresponds to the starting_area_weight noise expression.

starting_area_weight_range :: double optional

Default: 0

Distance from the optimal parameters that is still considered optimal.

Only loaded if starting_area_weight_optimal is defined.

starting_area_weight_max_range :: double optional

Distance from the optimal parameters that get influence of -1.

Only loaded if starting_area_weight_optimal is defined.

starting_area_weight_top_property_limit :: double optional

Default: max double

Limit distance from the optimum on a single (positive) side. This is pure magic.

Only loaded if starting_area_weight_optimal is defined.

elevation_optimal :: double optional

Optimal value of elevation. If elevation is close to this value, peak influence is 1.

elevation corresponds to the elevation noise expression.

elevation_range :: double optional

Default: 0

Distance from the optimal parameters that is still considered optimal.

Only loaded if elevation_optimal is defined.

elevation_max_range :: double optional

Distance from the optimal parameters that get influence of -1.

Only loaded if elevation_optimal is defined.

elevation_top_property_limit :: double optional

Default: max double

Limit distance from the optimum on a single (positive) side. This is pure magic.

Only loaded if elevation_optimal is defined.

water_optimal :: double optional

Optimal value of water. If water is close to this value, peak influence is 1.

water corresponds to the moisture noise expression.

water_range :: double optional

Default: 0

Distance from the optimal parameters that is still considered optimal.

Only loaded if water_optimal is defined.

water_max_range :: double optional

Distance from the optimal parameters that get influence of -1.

Only loaded if water_optimal is defined.

water_top_property_limit :: double optional

Default: max double

Limit distance from the optimum on a single (positive) side. This is pure magic.

Only loaded if water_optimal is defined.

temperature_optimal :: double optional

Optimal value of temperature. If temperature is close to this value, peak influence is 1.

temperature corresponds to the temperature noise expression.

temperature_range :: double optional

Default: 0

Distance from the optimal parameters that is still considered optimal.

Only loaded if temperature_optimal is defined.

temperature_max_range :: double optional

Distance from the optimal parameters that get influence of -1.

Only loaded if temperature_optimal is defined.

temperature_top_property_limit :: double optional

Default: max double

Limit distance from the optimum on a single (positive) side. This is pure magic.

Only loaded if temperature_optimal is defined.

aux_optimal :: double optional

Optimal value of aux. If aux is close to this value, peak influence is 1.

aux corresponds to the aux noise expression.

aux_range :: double optional

Default: 0

Distance from the optimal parameters that is still considered optimal.

Only loaded if aux_optimal is defined.

aux_max_range :: double optional

Distance from the optimal parameters that get influence of -1.

Only loaded if aux_optimal is defined.

aux_top_property_limit :: double optional

Default: max double

Limit distance from the optimum on a single (positive) side. This is pure magic.

Only loaded if aux_optimal is defined.

tier_from_start_optimal :: double optional

Optimal value of tier_from_start. If tier_from_start is close to this value, peak influence is 1.

tier_from_start corresponds to the tier_from_start noise expression.

tier_from_start_range :: double optional

Default: 0

Distance from the optimal parameters that is still considered optimal.

Only loaded if tier_from_start_optimal is defined.

tier_from_start_max_range :: double optional

Distance from the optimal parameters that get influence of -1.

Only loaded if tier_from_start_optimal is defined.

tier_from_start_top_property_limit :: double optional

Default: max double

Limit distance from the optimum on a single (positive) side. This is pure magic.

Only loaded if tier_from_start_optimal is defined.

distance_optimal :: double optional

Optimal value of distance. If distance is close to this value, peak influence is 1.

distance corresponds to the distance noise expression.

distance_range :: double optional

Default: 0

Distance from the optimal parameters that is still considered optimal.

Only loaded if distance_optimal is defined.

distance_max_range :: double optional

Distance from the optimal parameters that get influence of -1.

Only loaded if distance_optimal is defined.

distance_top_property_limit :: double optional

Default: max double

Limit distance from the optimum on a single (positive) side. This is pure magic.

Only loaded if distance_optimal is defined.

Prototypes

Types