Prototype/NamedNoiseExpression: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Added prototype type to page)
(Replace 0.16 info with stuff about overriding via MapGenSettings)
Line 7: Line 7:
Named noise expressions are used to specify functions for elevation, temperature, moisture, aux, and cliffiness.
Named noise expressions are used to specify functions for elevation, temperature, moisture, aux, and cliffiness.


In 0.16 the 'name' of the NamedNoiseExpression must be "default-<property>", e.g. "default-elevation"
e.g. the "elevation" expression is used to calculate elevation for every point on a map.
for it to be picked up by the terrain generation system and used to calculate elevation.
 
[http://lua-api.factorio.com/latest/Concepts.html#MapGenSettings MapGenSettings]
can override which named expression is used to calculate a given property by having an entry in
<code>property_expression_names</code>e.g. <code>elevation = "0.16-elevation"</code>
 


== Mandatory properties ==
== Mandatory properties ==

Revision as of 19:22, 1 March 2019

Basics

Prototype type: noise-expression


A Types/NoiseExpression together with a name.

Named noise expressions are used to specify functions for elevation, temperature, moisture, aux, and cliffiness.

e.g. the "elevation" expression is used to calculate elevation for every point on a map.

MapGenSettings can override which named expression is used to calculate a given property by having an entry in property_expression_names. e.g. elevation = "0.16-elevation"


Mandatory properties

Inherits all properties from Prototype.

expression

Type: Types/NoiseExpression

The expression itself.