Warptorio2 Maze Planet deprecated


Adds the Maze planet to Warptorio

Content
5 years ago
0.17
9
Environment
Owner:
PyroFire
Source:
N/A
Homepage:
https://mods.factorio.com/mod/warptorio2
License:
MIT
Created:
5 years ago
Latest Version:
0.0.2 (5 years ago)
Factorio version:
0.17
Downloaded by:
9 users

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,
    })