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

This subforum contains all the issues which we already resolved.
heyqule
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sun Mar 05, 2017 1:35 am
Contact:

[boskid][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 415 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3187
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

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

Post by boskid »

Thanks for the report. Issue is now fixed for 2.0.24: when generate_map is set to true when save is not given, map generator will not be disabled.
Post Reply

Return to “Resolved Problems and Bugs”