I was adding a new tip entry. When I set checkboard = false and generate_map = true, the simulation screen doesn't generate a map. It only has a black screen, an unchart map?
I tried force to chart it in the init code block. That didn't fix it.
What happened?
I see black screen.
What did you expect to happen instead?
I expect it to generate a map, at least according to the doc. https://lua-api.factorio.com/latest/typ ... ition.html
Does it happen always, once, or sometimes?
Always
UPDATE: I work around it by using LuaSurface.set_tile to manually pave them.
Code: Select all
simulations.general =
{
generate_map = true,
checkboard = false,
init = [[
local sim = game.simulation
sim.camera_position = {0, 0}
sim.camera_zoom = 0.5
sim.hide_cursor = true
local surface = game.surfaces[1]
surface.request_to_generate_chunks({0,0}, 3)
surface.force_generate_chunk_requests()
biter1 = surface.create_entity { name="small-biter", position={50, 0} }
]],
}