chart_all ignores unvisited surfaces
Posted: Sat Jan 27, 2024 6:14 pm
The chart_all method won't chart surfaces until the player has teleported to them, even when the surface name is specified.
Reproduction steps:
Reproduction steps:
- Start a new freeplay scenario with default settings.
- Create a new surface and try to chart a large area:
- /c game.create_surface("test")
- /c game.surfaces["test"].request_to_generate_chunks({0, 0}, 20)
- /c game.player.force.chart_all("test")
- /c game.player.teleport({0, 0}, "test")
- Open the map and notice that only a tiny area is charted.