Adds a Maze planet to Warptorio2
Special thanks to RibbonMaze: https://mods.factorio.com/mod/RibbonMaze
Awaiting RibbonMaze update for remote interface enabling this mod to function
If you would like to use this mod early, download and extract the RibbonMaze mod .zip to your /mods/ folder so it appears /mods/RibbonMaze_0.7.6/control.lua
First, increment the version by changing version
in the info.json
to 0.7.7
and renaming the mod folder to /mods/RibbonMaze_0.7.7/
Then add the following code to the bottom of control.lua
remote.add_interface("RibbonMaze",{
["insert_mod_surface"]=function(surface_name)
for _,surfaceName in pairs(global.ribbonMazeConfig.modSurfaces)do
if(surfaceName==surface_name)then
return false
end
end
return table.insert(global.ribbonMazeConfig.modSurfaces,surface_name)
end,
["remove_mod_surface"]=function(surface_name)
for tableIndex,surfaceName in pairs(global.ribbonMazeConfig.modSurfaces)do
if(surfaceName==surface_name)then
return table.remove(global.ribbonMazeConfig.modSurfaces,tableIndex)
end
end
return false
end,
})