2017-07-14 20:12:28 +02:00
|
|
|
--[[
|
2017-07-20 23:22:09 +02:00
|
|
|
This file is used to choose which styles you want.
|
2017-08-04 23:31:52 +02:00
|
|
|
You may choose up to one of each type shapes, terrain, ores and misc or one of the combined styles by removing uncommenting the line.
|
2017-07-27 11:25:10 +02:00
|
|
|
If you want to add your own module, just add it to the others
|
2017-07-20 23:22:09 +02:00
|
|
|
in this file and your run_*type*_module(event) function will be called.
|
2017-07-14 20:12:28 +02:00
|
|
|
--]]
|
2018-05-24 19:05:32 +01:00
|
|
|
|
|
|
|
local b = require 'map_gen.shared.builders'
|
2018-11-20 01:33:06 -05:00
|
|
|
require 'map_gen.shared.perlin_noise'
|
2018-04-06 20:58:50 +01:00
|
|
|
|
2018-05-23 22:34:19 +01:00
|
|
|
local shape = nil
|
2018-06-12 12:05:32 +01:00
|
|
|
local regen_decoratives = false
|
2018-05-24 15:16:38 +01:00
|
|
|
local tiles_per_tick = 32
|
2018-05-23 22:34:19 +01:00
|
|
|
|
2017-08-04 23:31:52 +02:00
|
|
|
--combined--
|
2018-05-23 22:34:19 +01:00
|
|
|
--shape = require "map_gen.combined.island_resort"
|
2018-01-19 15:18:01 +01:00
|
|
|
--require "map_gen.combined.red_planet_v2"
|
2018-05-24 19:05:32 +01:00
|
|
|
--shape = require 'map_gen.combined.borg_planet_v2'
|
2018-01-19 15:18:01 +01:00
|
|
|
--require "map_gen.combined.dimensions"
|
|
|
|
--require "map_gen.combined.dagobah_swamp"
|
2018-01-21 15:30:42 +00:00
|
|
|
--require "map_gen.combined.meteor_strike" --unfinished
|
2018-09-12 08:41:56 +02:00
|
|
|
--require 'map_gen.combined.cave_miner.cave_miner'
|
2018-10-14 14:25:41 +02:00
|
|
|
--require "map_gen.combined.diggy"
|
2018-09-11 16:14:12 +02:00
|
|
|
|
2018-01-21 15:30:42 +00:00
|
|
|
--presets--
|
2018-05-08 23:46:49 +01:00
|
|
|
--shape = require "map_gen.presets.template"
|
|
|
|
--shape = require "map_gen.presets.web" --unfinished
|
|
|
|
--shape = require "map_gen.presets.rings_and_boxes" --unfinished
|
|
|
|
--shape = require "map_gen.presets.ring_of_balls" --unfinished
|
2018-05-24 15:50:00 +01:00
|
|
|
--shape = require "map_gen.presets.dna"
|
2018-05-08 23:46:49 +01:00
|
|
|
--shape = require "map_gen.presets.lines_and_balls"
|
|
|
|
--shape = require "map_gen.presets.mobius_strip"
|
|
|
|
--shape = require "map_gen.presets.antfarm"
|
|
|
|
--shape = require "map_gen.presets.creation_of_adam"
|
2018-05-29 00:02:25 +01:00
|
|
|
--shape = require "map_gen.presets.creation_of_adam2"
|
2018-05-08 23:46:49 +01:00
|
|
|
--shape = require "map_gen.presets.manhattan"
|
|
|
|
--shape = require "map_gen.presets.mona_lisa"
|
|
|
|
--shape = require "map_gen.presets.connected_dots"
|
|
|
|
--shape = require "map_gen.presets.maori"
|
|
|
|
--shape = require "map_gen.presets.goat"
|
|
|
|
--shape = require "map_gen.presets.GoT"
|
|
|
|
--shape = require "map_gen.presets.turkey" -- needs to be rebuilt from missing source image.
|
|
|
|
--shape = require "map_gen.presets.north_america" -- needs to be rebuilt from missing source image.
|
|
|
|
--shape = require "map_gen.presets.UK"
|
|
|
|
--shape = require "map_gen.presets.venice"
|
|
|
|
--shape = require "map_gen.presets.goats_on_goats"
|
|
|
|
--shape = require "map_gen.presets.grid_islands"
|
2018-11-17 12:33:23 +00:00
|
|
|
--shape = require "map_gen.presets.grid_islands_rotated"
|
2018-05-08 23:46:49 +01:00
|
|
|
--shape = require "map_gen.presets.crosses"
|
|
|
|
--shape = require "map_gen.presets.crosses3"
|
|
|
|
--shape = require "map_gen.presets.broken_web"
|
|
|
|
--shape = require "map_gen.presets.misc_stuff"
|
|
|
|
--shape = require "map_gen.presets.lines"
|
|
|
|
--shape = require "map_gen.presets.dickbutt"
|
2018-06-03 12:41:58 +01:00
|
|
|
--shape = require "map_gen.presets.void_gears"
|
2018-05-08 23:46:49 +01:00
|
|
|
--shape = require "map_gen.presets.gears"
|
|
|
|
--shape = require "map_gen.presets.factorio_logo"
|
|
|
|
--shape = require "map_gen.presets.factorio_logo2"
|
|
|
|
--shape = require "map_gen.presets.hearts"
|
|
|
|
--shape = require "map_gen.presets.women"
|
|
|
|
--shape = require "map_gen.presets.fractal_balls"
|
2018-06-07 16:41:43 +01:00
|
|
|
--shape = require "map_gen.presets.fruit_loops"
|
2018-05-08 23:46:49 +01:00
|
|
|
--shape = require "map_gen.presets.fish_islands"
|
|
|
|
--shape = require "map_gen.presets.ContraSpiral"
|
|
|
|
--shape = require "map_gen.presets.cookies"
|
|
|
|
--shape = require "map_gen.presets.plus"
|
|
|
|
--shape = require "map_gen.presets.honeycomb"
|
|
|
|
--shape = require "map_gen.presets.line_and_trees"
|
2018-08-14 12:54:02 +01:00
|
|
|
--shape = require "map_gen.presets.line_and_tree"
|
2018-05-29 13:26:41 +01:00
|
|
|
--shape = require "map_gen.presets.square_spiral"
|
2018-06-08 17:41:34 +01:00
|
|
|
--shape = require "map_gen.presets.beach"
|
2018-10-06 17:07:50 +01:00
|
|
|
--shape = require "map_gen.presets.double_beach"
|
2018-06-12 12:05:32 +01:00
|
|
|
--shape = require "map_gen.presets.factory"
|
2018-06-16 17:38:10 +01:00
|
|
|
--shape = require "map_gen.presets.triangle_of_death"
|
2018-06-27 17:14:56 +01:00
|
|
|
--shape = require "map_gen.presets.world_map"
|
2018-07-07 12:24:09 +01:00
|
|
|
--shape = require "map_gen.presets.lines_and_squares"
|
|
|
|
--shape = require "map_gen.presets.spiral_of_spirals"
|
2018-08-06 17:26:28 +01:00
|
|
|
--shape = require "map_gen.presets.crash_site"
|
2018-07-14 13:23:24 +01:00
|
|
|
--shape = require "map_gen.presets.dino_island"
|
2018-11-11 14:54:57 -05:00
|
|
|
--shape = require "map_gen.presets.toxic_jungle"
|
|
|
|
--shape = require "map_gen.presets.danger_ores"
|
|
|
|
--shape = require "map_gen.presets.bacon_islands"
|
2018-08-21 13:11:58 +01:00
|
|
|
--shape = require "map_gen.presets.spiral"
|
2018-08-25 12:54:55 +01:00
|
|
|
--shape = require "map_gen.presets.hub_spiral"
|
2018-11-11 14:54:57 -05:00
|
|
|
--shape = require "map_gen.presets.diagonal_ribbon"
|
2018-11-06 16:19:27 -05:00
|
|
|
--shape = require "map_gen.presets.creepy"
|
2018-09-30 21:23:37 +01:00
|
|
|
--shape = require "map_gen.presets.vanilla"
|
2018-11-13 22:53:03 +00:00
|
|
|
--shape = require "map_gen.presets.maltease_crossings"
|
2018-11-22 18:37:45 +00:00
|
|
|
--shape = require "map_gen.presets.tetris"
|
|
|
|
--shape = require "map_gen.presets.world_map_thanksgiving"
|
2018-05-08 23:46:49 +01:00
|
|
|
--shape = require "map_gen.presets.test"
|
2017-10-23 06:27:36 -04:00
|
|
|
|
2017-07-14 20:12:28 +02:00
|
|
|
--shapes--
|
2018-05-10 20:42:24 +01:00
|
|
|
--shape = require "map_gen.shape.left"
|
|
|
|
--shape = require "map_gen.shape.right"
|
|
|
|
--shape = require "map_gen.shape.up"
|
2018-01-19 15:18:01 +01:00
|
|
|
--require "map_gen.shape.maze"
|
2018-05-10 20:42:24 +01:00
|
|
|
--shape = require "map_gen.shape.spiral"
|
|
|
|
--shape = require "map_gen.shape.threaded_spirals"
|
|
|
|
--shape = require "map_gen.shape.spiral_tri"
|
|
|
|
--shape = require "map_gen.shape.spiral2"
|
|
|
|
--shape = require "map_gen.shape.donut"
|
2018-05-29 00:02:25 +01:00
|
|
|
--shape = b.rectangular_spiral(128)
|
2018-11-11 14:42:11 -05:00
|
|
|
--shape = require "map_gen.shape.diagonal_lattice"
|
2018-01-19 15:18:01 +01:00
|
|
|
--require "map_gen.shape.infinite_mazes"
|
2018-05-10 20:42:24 +01:00
|
|
|
--shape = require "map_gen.shape.x_shape"
|
|
|
|
--shape = require "map_gen.shape.pacman"
|
2017-07-14 20:12:28 +02:00
|
|
|
|
|
|
|
--terrain--
|
2018-01-19 15:18:01 +01:00
|
|
|
--require "map_gen.terrain.neko_bridged_rivers"
|
|
|
|
--require "map_gen.terrain.neko_river_overlay"
|
2018-05-10 00:22:11 +01:00
|
|
|
|
|
|
|
-- modules that only return max one entity per tile
|
|
|
|
local entity_modules = {
|
2018-11-21 08:42:39 -05:00
|
|
|
--require "map_gen.misc.loot_items",
|
|
|
|
--require "map_gen.terrain.mines",
|
|
|
|
--require "map_gen.terrain.deathworld",
|
|
|
|
--require "map_gen.ores.glitter_ores",
|
|
|
|
--require "map_gen.terrain.worms",
|
|
|
|
--require "map_gen.misc.wreck_items",
|
|
|
|
--require "map_gen.ores.neko_crazy_ores",
|
|
|
|
--require "map_gen.ores.fluffy_rainbows",
|
|
|
|
--require "map_gen.ores.harmonic_gen",
|
|
|
|
--require "map_gen.ores.resource_clustertruck"
|
|
|
|
--require "map_gen.ores.tiny_ores"
|
2018-05-10 20:42:24 +01:00
|
|
|
}
|
|
|
|
|
2018-05-24 19:05:32 +01:00
|
|
|
local terrain_modules = {
|
2018-11-21 08:42:39 -05:00
|
|
|
--require "map_gen.misc.tris_chunk_grid",
|
2018-05-10 00:22:11 +01:00
|
|
|
}
|
|
|
|
|
2017-07-18 21:54:54 +02:00
|
|
|
--everything else. You may use more than one of these, but beware they might not be compatible
|
2018-01-19 15:18:01 +01:00
|
|
|
--require "map_gen.misc.rusky_pvp"
|
2018-11-06 12:55:52 +01:00
|
|
|
--require("map_gen.misc.rail_grid") -- used for map_gen.presets.UK
|
2018-11-10 17:47:08 +01:00
|
|
|
--require ('map_gen.misc.change_landfill_tile'){'sand-1'}
|
2018-08-07 12:45:19 +01:00
|
|
|
--require ('map_gen.misc.danger_ore_banned_entities')
|
2018-08-28 13:31:23 +01:00
|
|
|
--require ('map_gen.misc.restrict_landfill_tile')({['water'] = true})
|
2018-09-01 11:56:49 +01:00
|
|
|
--require "map_gen.ores.rso.rso_control"
|
2018-10-22 10:51:40 -04:00
|
|
|
--require 'map_gen.misc.nightfall'
|
2018-10-29 21:38:11 -04:00
|
|
|
--require 'map_gen.misc.creep_spread'
|
2018-10-26 10:58:03 -04:00
|
|
|
--require 'map_gen.misc.car_body'
|
2018-11-23 12:08:44 -05:00
|
|
|
--require 'features.silly_player_names'
|
2018-05-10 00:22:11 +01:00
|
|
|
|
|
|
|
if #entity_modules > 0 then
|
2018-05-24 19:05:32 +01:00
|
|
|
shape = shape or b.full_shape
|
2018-05-10 00:22:11 +01:00
|
|
|
|
2018-05-24 19:05:32 +01:00
|
|
|
shape = b.apply_entities(shape, entity_modules)
|
2018-05-10 00:22:11 +01:00
|
|
|
end
|
2017-07-18 21:54:54 +02:00
|
|
|
|
2018-05-10 20:42:24 +01:00
|
|
|
if #terrain_modules > 0 then
|
2018-05-24 19:05:32 +01:00
|
|
|
shape = shape or b.full_shape
|
2018-05-10 20:42:24 +01:00
|
|
|
|
2018-05-24 19:05:32 +01:00
|
|
|
for _, m in ipairs(terrain_modules) do
|
|
|
|
shape = b.overlay_tile_land(shape, m)
|
|
|
|
end
|
2018-05-10 20:42:24 +01:00
|
|
|
end
|
|
|
|
|
2018-05-24 19:05:32 +01:00
|
|
|
if shape then
|
2018-11-20 01:33:06 -05:00
|
|
|
local surfaces = {
|
2018-11-20 17:28:39 -05:00
|
|
|
['nauvis'] = shape,
|
2018-11-20 01:33:06 -05:00
|
|
|
}
|
2018-06-07 13:09:28 +01:00
|
|
|
|
2018-08-07 12:45:19 +01:00
|
|
|
require('map_gen.shared.generate')({surfaces = surfaces, regen_decoratives = regen_decoratives, tiles_per_tick = tiles_per_tick})
|
2018-11-21 08:42:39 -05:00
|
|
|
--require ("map_gen.shared.generate_not_threaded")({surfaces = surfaces, regen_decoratives = regen_decoratives})
|
2018-05-08 23:46:49 +01:00
|
|
|
end
|