[2.0.20] SimulationDefinition's generate_map=true produced a black screen

Post your bugs and problems so we can fix them.
heyqule
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sun Mar 05, 2017 1:35 am
Contact:

[2.0.20] SimulationDefinition's generate_map=true produced a black screen

Post by heyqule »

What did you do?
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} }
    ]],
}
blackscreen.png
blackscreen.png (412.58 KiB) Viewed 72 times
Post Reply

Return to “Bug Reports”