In other languages: Deutsch English Русский 中文

Map generator/pt-br: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(→‎Richness: updated images)
m (Bilka moved page World generator/pt-br to Map generator/pt-br: Use in-game name)
(No difference)

Revision as of 10:07, 6 May 2020


**Traduzido 18%**

A geração de mundo é, em resumo, uma série de configurações que definem como será o mundo quando gerado. Isso pode alterar dramaticamente a jogabilidade - um novo jogador é aconselhável para começar com as configurações padrão antes de decidir mudar seu mundo.

Como isso funciona

: MapGeneratorOverview.png

Uma explicação mais técnica da mecânica de geração mundial é que o gerador de mapas gera a maior parte do mundo com um algoritmo chamado "Perlin Noise". Em suma, funciona um pouco como as ondas no mar.


Tudo acima de um nível definido define a existência (ou a inexistência) das características de algum tipo de terreno. O jogador também deve saber que o mapa não é gerado no início do jogo. Apenas as partes que vêem são geradas, todo o resto não é. O mapa será gerado gradualmente à medida que o jogador explora mais terreno. Veja abaixo para detalhes mais técnicos.

A seguinte imagem mostra um exemplo de como o gerador mundial pode criar um novo mapa.

:
Geração de mundo com as configurações padrão com a seed 123456789

Predefinições automáticas

A partir da versão 0.15, uma configuração pré definida pode ser escolhida em vez de configurar manualmente a geração. Existem várias opções. As diferenças do predefinido "padrão" estão em parênteses em negrito.

Recipientes/Tecnologia Padrão Recursos Ricos Maratona Perigoso Mundo da morte Mundo ferroviário
Dificuldade de pesquisa Normal Normal Expancivo Normal Expancivo Normal
Dificuldade de tecnologia Normal Normal Expancivo Normal Expancivo Normal
Multiplicador do preço da tecnologia 1 1 4(+3) 1 4(+3) 1
Expanção dos inimigos Padrão Recursos Ricos Maratona Perigoso Mundo da Morte Mundo Ferroviário
Habilitado Sim Sim Sim Sim Sim Não(Sim)
Pedaços mínimos entre novas bases 3 3 3 3 3 3
Distância máxima das expanções 7 7 7 7 7 7
Tamanho mínimo do grupo 5 5 5 5 5 5
Tamanho máximo do grupo 20 20 20 20 20 20
Cooldown mínimo (Minutos) 4 4 4 4 4 4
Cooldown máximo (Minutos) 60 60 60 60 60 60
Evolução do inimigo Padrão Recursos Ricos Maratona Perigoso Mundo da Morte Mundo ferroviário
Fator de destruição 0.00200000 0.00200000 0.00200000 0.00200000 0.00200000 0.00200000
Habilitado Sim Sim Sim Sim Sim Sim
Fator de Poluição 0.00001500 0.00001500 0.00001500 0.00002000(+0.000005) 0.00002000(+0.000005) 0.00001500
Fator de tempo 0.00000400 0.00000400 0.00000400 0.00002000(+0.000016) 0.00002000(+0.000016) 0.00000200(-0.000002)


Poluição Padrão Recursos Ricos Maratona Perigoso Mundo da Morte Mundo Ferroviário
Absorção Das Árvores 500 500 500 500 500 500
Tacha de Difusão 2% 2% 2% 2% 2% 2%
Tacha de Dissipação 1 1 1 1 1 1
Habilitada Sim Sim Sim Sim Sim Sim
Dano mínimo para as árvores 3500 3500 3500 3500 3500 3500


Recurso Padrão Recursos Ricos Maratona Perigoso Mundo da Morte Mundo ferroviário
Frequência de carvão Normal Normal Normal Normal Normal Muito Baixo
Riqueza do Carvão Regular Muito Boa(Regular) Regular Regular Regular Regular
Tamanho Das Minas De Carvão Médio Médio Médio Médio Médio Grande(Médio)
Frequência de Cobre Normal Normal Normal Normal Normal Muito Baixa(Normal)
Riqueza do Cobre Regular Muito Boa(Regular) Regular Regular Regular Regular
Tamanho Das Minas De Cobre Médio Médio Médio Médio Médio Grande(Médio)
Frequência Bruta Normal Normal Normal Normal Normal Muito Baixa(Normal)
Riqueza Bruta Regular Muito Boa(Regular) Regular Regular Regular Regular
Tamanhos Das Minas Brutas Médio Médio Médio Médio Médio Grande(Médio)
Frequência das bases inimigas Normal Normal Normal Muito Alto(Normal) Muito Alta(Normal) Muito Baixa(Normal)
Riqueza das bases inimigas Regular Regular Regular Regular Regular Regular
Tamanho das bases inimigas Médio Médio Médio Médio Médio Pequena(Médio)
Frequência de Ferro Normal Normal Normal Normal Normal Muito Baixa(Normal)
Riqueza do Ferro Regular Muito Boa(Regular) Regular Regular Regular Regular
Tamanho das minas de Ferro Médio Médio Médio Médio Médio Grande(Médio)
Área inicial Médio Médio Médio Médio Médio Médio
Frequência de Pedra Normal Normal Normal Normal Normal Muito baixa(Normal)
Riqueza da Pedra Regular Muito Boa(Regular) Regular Regular Regular Regular
Tamanho das minhas de Pedra Médio Médio Médio Médio Médio Grande(Médio)
Frequência de Urânio Normal Normal Normal Normal Normal Muito Baixa(Normal)
Riqueza do Urânio Regular Muito Boa(Regular) Regular Regular Regular Regular
Tamanho das minas de Urânio Médio Médio Médio Médio Médio Médio
Frequência da Água Normal Normal Normal Normal Normal Muito Baixa(Normal)
Tamanho da água Médio Médio Médio Médio Médio Grande(Médio)

Manual config

Settings on the top row

Frequency

This is not, how frequent ore, coal, oil etc. is, instead determining the number of individual deposits the player will encounter.

This defines the wavelength of the wave-generators used by the Perlin Noise algorithm above, but not the total size of all the waves. This means that frequency doesn't modify the amount of resources on a tile, instead modifying the area of each deposit and the number of deposits. Additionally, changing frequency doesn't affect the average amount of resources in a limited map, only their distribution.

If resource frequency is increased, each of the deposits is smaller and has less resources in total (because it covers less area) and deposits are very common. If resource frequency is decreased, the deposits are larger but more rare. This also causes enemy bases to appear more often using the same distribution rules as ores - however, this can lead to rapid enemy expansion due to the much higher number of nest clusters.

Size

This defines the size of generated ore patches and water through defining "levels." It increases the average diameter of ore patches and lakes, allowing one to adjust the size of both of these.

It's as simple as it seems- Small size would mean small ore patches and water masses, large means large ore patches and water masses. Note that this is effected by frequency, though it is presumably able to increase the total ore and water of the world where frequency simply re-balances it.

Finally, this causes enemy bases to spawn larger, though bases created through the "natural process" of expansion are going to adhere to different rules.

The following table shows how the frequency and size settings affects the generation of ore patches. For more detail, open the images in a new tab.

Generation of iron patches on different frequency and size settings
Frequency \ Size Very small Small Medium Big Very big
Very low Iron freq very low size very small.png Iron freq very low size small.png Iron freq very low size medium.png Iron freq very low size big.png Iron freq very low size very big.png
Low Iron freq low size very small.png Iron freq low size small.png Iron freq low size medium.png Iron freq low size big.png Iron freq low size very big.png
Normal Iron freq normal size very small.png Iron freq normal size small.png Iron freq normal size medium.png Iron freq normal size big.png Iron freq normal size very big.png
High Iron freq high size very small.png Iron freq high size small.png Iron freq high size medium.png Iron freq high size big.png Iron freq high size very big.png
Very high Iron freq very high size very small.png Iron freq very high size small.png Iron freq very high size medium.png Iron freq very high size big.png Iron freq very high size very big.png

Richness

This defines the actual content of every ore patch and oil field. Resource field richness increases by distance.

Resources in ore patches on different richness settings
Very poor Poor Regular Rich Very rich
Iron richness very poor.png Iron richness poor.png Iron richness regular.png Iron richness good.png Iron richness very good.png

The left column

  • Water: How water is generated on each map.
  • Copper, Stone, Coal, Crude oil: Resources required to progress in the game. See above for more detailed explanations about each of these changes.
  • Enemy bases: How many and how large starting bases are. Note that new bases are created over time, making low enemy base counts somewhat less significant.

Starting area

This is a value defining a special area around the central coordinates of the map which will have different ore frequency, etc, from the rest of the map. Generally, this results in at least one confirmed ore source, always results in a water source, and always removes biter nests from spawning for an area around spawn. The settings of this area usually guarantee better starting conditions, although the player may choose to make this area small to increase the challenge of the game.

It is generally a good idea for the player to explore a bit outside this area before they begin to build. While this area will almost always appear very fertile, it's possible that map generation will have made a situation where it is impossible to beat the game, such as missing oil, too many biters to defend, etc.

World generations on different starting area settings
Very small Small Medium Big Very big
Starting area very small.png Starting area small.png Starting area medium.png Starting area big.png Starting area very big.png

Peaceful mode

The Enemies don't begin fights, only responding if the player hits them. This can be also switched on during the game- look into Console commands.

Map-width and -height

If the player limits the width and/or height they may generate maps with finite resources and area. This is recommended for multiplayer servers running on weaker machines or players seeking extra challenge. Another option is to make the world infinite in only one axis, this is commonly referred to as a ribbon world.

Map seed / Map Exchange String

Definitions and terminology:

Map Seed
Random number generator seed
Map Exchange String
All settings for the map creation (Map Seed, settings for resources, settings for size, etc.)

Map Seed

This is the starting value for the random number generator that Factorio uses for generating the world. Know that 'random number' is really a misnomer in Factorio and on computers in general, as they aren't really random, instead being calculated with complicated algorithms that require a seed as starting value (For more detail, see http://en.wikipedia.org/wiki/Random_seed).

So even with the same map-exchange string but a different seed maps can change dramatically, or appear very similar. It's up to chance. In order to get a true copy of a world, giving the map-exchange string and allowing the string to fill out the seed is important.

Map Exchange String

A string generally looks like so:

>>>AAALABAABgADAwYAAAAEAAAAY29hbAMDAgoAAABjb3BwZXItb3Jl
AwMCCQAAAGNydWRlLW9pbAMDAgoAAABlbmVteS1iYXNlAwMCCAAAAGl
yb24tb3JlAwMCBQAAAHN0b25lAwMCORcrDUQ7AACMCwAAAAAAAAAAAA
ADAFR8w0Q=<<<

It is a string of good length that begins with >>> and ends with <<<. Many facilities exist within the community for sharing exchange strings. The map exchange string can be used in the map-generator: there is an extra field where the player can paste this string into. On windows computers, this may be done by selecting a string, right-clicking or pressing Control + C, then put it into the string field for the world generator with Control + V.

If you wish to retrieve the map-exchange string from your world:

In the Load Game dialog select the game whose string you want, then click the Map Exchange String button in the lower left corner. When the string pops up, highlight it with your mouse and press Control-C to copy it. (Command-C on Mac.) You can now paste it in the map generator to create a copy of that world, or send it to a friend.

For a technical description of the map exchange string, see Map Exchange String Format.

Generation

The map generator (world generator) is based on a modified Perlin noise algorithm. A more detailed description is in the API documentation.

From the article which describes the generation:

Factorio-Perlin-Noise.png

Top: Normal settings, Middle: The same, but with higher frequency (note the same curve, but more condensed shape), Down: Same as top, but higher level = increased size.

The blue wavy line is an internal noise function, black line is a "level" that is used to determine resource placement, red lines are actual placed resources. The high frequency refers mainly to the noise function. Increasing the frequency increases count of resource fields and decreases their size and distance between them. This mechanism is used all through the map generation in factorio, with some adjustments. The map generator works tile by tile, so the resources are placed on a tile x if f(x) > 0. The amount of resources on the tile is given by f(x) * richness.

Generating new Chunks

A map is endless by default, though its size can be limited by height and width - see above. Because it is technically endless, the whole map isn't generated from the start. A new Chunk of map is generated only when needed, similar to other procedurally generated world games.

Generating Invisible Chunks (Fog of War)

Outside of the visible chunk area, an invisible area of about 3 chunks wide is generated, as a preloading mechanism, and for biters to be able to see the player. Invisible chunks are also generated if pollution is generated heavily; the game generates (invisible) chunks as it needs to spread the pollution into the area.

Charting (Make Invisible Chunks Visible on Map)

As long as a chunk is invisible, the part of the players map stays black. This changes when a chunk is charted, which means when it is "touched" by radar. Either the players internal radar, which is always available and continually charts chunks around the player, or the Radar entity. When a visible chunk is generated there might be other chunks also invisibly generated.

An invisible chunk is eventually not made visible, even if you are so close, that you are able to see it in the character view (a black fog of war). This is, because of the above rule: a chunk is made visible, if it is touched by radar. Not character visibility. The players radar (or any radar) needs to be in range of that chunk to make it visible.


Exploring

If the player arrives at the current visible borders the needed chunks are generated. As the player explores, a radius of about 3 chunks are continually loaded around them. As this can take a while on lower end machines, it is possible to outrun the world generator and end up in 'limbo' with no entities around the player. Staying still for a while will allow the generator to catch up.

Maximum Map Size and used Memory

The map size is limited to 2000 x 2000 kilometers (a quadrant with 2,000,000 tiles side-length, an area of 4,000,000,000,000 quadrant-tiles). This is between the size of India and Australia. It would take around 240 game-minutes (=4 hours) by train to reach that border from the center. This means that the world is essentially endless.

Because only chunks are generated around the area that is revealed by radar, it is with current computers possible to reach that border. This is, because the needed memory size of the map is limited only by the generated number of chunks in the game. Which is not so much if you allocate just a small stripe of land.

The generated chunks are mapped and stored in the player's RAM, which is the limiting factor.

History

  • 0.15.0:
    • The world generator now has select-able presets.
  • 0.13.0:
    • Map generator algorithm changed, further resource field now have greater richness.

See also