local menu_simulations = {} menu_simulations.spider_ponds = { checkboard = false, save = "__base__/menu-simulations/menu-simulation-crash-repro.zip", length = 60 * 60, init = [[ local center = {-3.5, -0.25} game.camera_position = center game.camera_zoom = 1 game.tick_paused = false game.surfaces.nauvis.daytime = 0 -- Spawn biters local surface = game.surfaces.nauvis local target = surface.find_entities_filtered{name = "laser-turret", position = {18, -1}}[1] local names = {"medium-biter", "medium-biter", "big-biter", "big-biter", "big-spitter", "medium-spitter"} for k = 1, 100 do local spawn_position = {center[1] - 60 + math.random(-35, 5), center[2] + math.random(-10, 10)} local name = names[math.random(#names)] local biter = surface.create_entity{name = name, position = spawn_position} biter.set_command({type = defines.command.attack, target = target}) biter.speed = 0.24 + (math.random() / 20) end ]] } return menu_simulations