There are path of Quatorio menu-simulations (Path from space-age or base mode): Quatorio/menu-simulations/menu-simulations.lua
Thanks for help



Code: Select all
local menu_simulations = {}
menu_simulations["Yoursimulation"] = -- Simulation name
{
checkboard = false,
save = "__Yourmodname__/menu-simulations/Simulation.zip", -- Path of your simulation
length = 60 * 20, -- How much it will be recording (60 * 20 = 20 seconds)
init =
[[
game.simulation.camera_position = {-89, -28} -- Position of camera
game.simulation.camera_zoom = 1 -- Zoom of camera
game.tick_paused = false
game.surfaces.nauvis.daytime = 0
]],
update =
[[
local dx = 0
local dy = 0
if game.tick % 3000 < 1000 then
dx = 0.01
elseif game.tick % 3000 < 2000 then
dx = -0.01
end
if (game.tick + 1500) % 3000 < 1000 then
dy = 0.01
elseif (game.tick + 1500) % 3000 < 2000 then
dy = -0.01
end
game.simulation.camera_position = {game.simulation.camera_position.x + dx*0, game.simulation.camera_position.y + dy*0}
]]
}Code: Select all
game.simulation.camera_position = {-12, 20}Code: Select all
local menu_simulations = require("__Yourmodename__/menu-simulations/menu-simulations")
data.raw["utility-constants"]["default"].main_menu_simulations = {
your_simulation_name = menu_simulations["Yoursimulation"]
}