Code: Select all
Blocks and generates all chunks that have been requested using all available threads.
Code: Select all
-- *new 50x50 world*
-- /c game.create_surface("lab").generate_with_lab_tiles = true
-- /c game.print(game.surfaces["lab"].get_tile(0, 0).name) -- luatile invalid
-- /c game.surfaces["lab"].request_to_generate_chunks({0, 0}, 0) game.surfaces["lab"].force_generate_chunk_requests() game.surfaces["lab"].set_tiles({{position = {0, 0}, name = "concrete"}})
-- /c game.print(game.surfaces["lab"].get_tile(0, 0).name) -- lab dark 1
Code: Select all
-- *new 50x50 world*
-- /c game.create_surface("default")
-- /c game.print(game.surfaces["default"].get_tile(0, 0).name) -- luatile invalid
-- /c game.surfaces["default"].request_to_generate_chunks({0, 0}, 0) game.surfaces["default"].force_generate_chunk_requests() game.surfaces["default"].set_tiles({{position = {0, 0}, name = "concrete"}})
-- /c game.print(game.surfaces["default"].get_tile(0, 0).name) -- concrete