Types/MapGenSize: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Note on what can be set in-game)
(Updated styling of prototype doc migration note)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/MapGenSize.html https://lua-api.factorio.com/latest/types/MapGenSize.html]
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
A floating point number specifying an amount. For backwards compatibility, MapGenSizes can also be specified as one of the following [[types/string|strings]], which will be converted to a number:
A floating point number specifying an amount. For backwards compatibility, MapGenSizes can also be specified as one of the following [[types/string|strings]], which will be converted to a number:
* "none" - equivalent to 0
* "none" - equivalent to 0

Latest revision as of 10:42, 21 September 2023

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/MapGenSize.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.


A floating point number specifying an amount. For backwards compatibility, MapGenSizes can also be specified as one of the following strings, which will be converted to a number:

  • "none" - equivalent to 0
  • "very-low", "very-small", "very-poor" - equivalent to 1/2
  • "low", "small", "poor" - equivalent to 1/sqrt(2)
  • "normal", "medium", "regular" - equivalent to 1
  • "high", "big", "good" - equivalent to sqrt(2)
  • "very-high", "very-big", "very-good" - equivalent to 2

Each of the values in a triplet (such as "low", "small", and "poor") are synonymous. In-game the values can be set from 0.166 to 6 via the GUI (respective to the percentages), while 0 is used to disable the autoplace control.