From ea8ee65ba7cfc9b8ad60546922fd573423b3d51c Mon Sep 17 00:00:00 2001 From: hazet Date: Mon, 2 May 2022 10:39:09 +0200 Subject: [PATCH] [ADD] Tech speed option to all maps --- LekmapInlandSeav3.2.lua | 418 ++++++++++++------------ LekmapLakesv3.2.lua | 404 ++++++++++++----------- LekmapOvalv3.3.lua | 467 ++++++++++++++------------- LekmapPangaeaFractalv3.2.lua | 498 ++++++++++++++-------------- LekmapPangaeaRectangularv3.3.lua | 537 +++++++++++++++--------------- LekmapSmallContinentsv3.2.lua | 400 ++++++++++++----------- LekmapTinyIslandsv3.2.lua | 384 +++++++++++----------- LoveMapArchipelagov3.0.lua | 364 +++++++++++---------- LoveMapContinentsv3.0.lua | 489 ++++++++++++++-------------- LoveMapDonutv3.0.lua | 538 ++++++++++++++++--------------- 10 files changed, 2328 insertions(+), 2171 deletions(-) diff --git a/LekmapInlandSeav3.2.lua b/LekmapInlandSeav3.2.lua index 03fbb1e..ea82913 100644 --- a/LekmapInlandSeav3.2.lua +++ b/LekmapInlandSeav3.2.lua @@ -17,241 +17,257 @@ include("MultilayeredFractal"); ------------------------------------------------------------------------------ function GetMapScriptInfo() local world_age, temperature, rainfall, sea_level, resources = GetCoreMapOptions() - return { - Name = "Lekmap: Inland Sea (v3.6)", - Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Inland Sea", - IsAdvancedMap = false, - IconIndex = 12, - SortIndex = 2, - SupportsMultiplayer = true, - CustomOptions = { - { - Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 - Values = { - "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", - "No Mountains", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -99, + local opt = { + { + Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 + Values = { + "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", + "No Mountains", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -99, + }, - { - Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random - Values = { - "TXT_KEY_MAP_OPTION_COOL", - "TXT_KEY_MAP_OPTION_TEMPERATE", - "TXT_KEY_MAP_OPTION_HOT", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -98, + { + Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random + Values = { + "TXT_KEY_MAP_OPTION_COOL", + "TXT_KEY_MAP_OPTION_TEMPERATE", + "TXT_KEY_MAP_OPTION_HOT", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -98, + }, - { - Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- (3) add rainfall defaults to random - Values = { - "TXT_KEY_MAP_OPTION_ARID", - "TXT_KEY_MAP_OPTION_NORMAL", - "TXT_KEY_MAP_OPTION_WET", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -97, + { + Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- (3) add rainfall defaults to random + Values = { + "TXT_KEY_MAP_OPTION_ARID", + "TXT_KEY_MAP_OPTION_NORMAL", + "TXT_KEY_MAP_OPTION_WET", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -97, + }, - { - Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. - Values = { - "TXT_KEY_MAP_OPTION_LOW", - "TXT_KEY_MAP_OPTION_MEDIUM", - "TXT_KEY_MAP_OPTION_HIGH", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -96, + { + Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. + Values = { + "TXT_KEY_MAP_OPTION_LOW", + "TXT_KEY_MAP_OPTION_MEDIUM", + "TXT_KEY_MAP_OPTION_HIGH", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -96, + }, - { - Name = "Start Quality", -- (5) add resources defaults to random - Values = { - "Legendary Start - Strat Balance", - "Legendary - Strat Balance + Uranium", - "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", - "Strategic Balance With Coal", - "Strategic Balance With Aluminum", - "Strategic Balance With Coal & Aluminum", - "Strategic Balance With Coal & Aluminum & Uran", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 7, - SortPriority = -95, + { + Name = "Start Quality", -- (5) add resources defaults to random + Values = { + "Legendary Start - Strat Balance", + "Legendary - Strat Balance + Uranium", + "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", + "Strategic Balance With Coal", + "Strategic Balance With Aluminum", + "Strategic Balance With Coal & Aluminum", + "Strategic Balance With Coal & Aluminum & Uran", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 7, + SortPriority = -95, + }, - { - Name = "Start Distance", -- 6 add resources defaults to random - Values = { - "Close", - "Normal", - "Far - Warning: May sometimes crash during map generation", - }, - DefaultValue = 2, - SortPriority = -94, + { + Name = "Start Distance", -- 6 add resources defaults to random + Values = { + "Close", + "Normal", + "Far - Warning: May sometimes crash during map generation", }, + DefaultValue = 2, + SortPriority = -94, + }, - { - Name = "Natural Wonders", -- 7 number of natural wonders to spawn - Values = { - "0", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "Random", - "Default", - }, - DefaultValue = 15, - SortPriority = -93, + { + Name = "Natural Wonders", -- 7 number of natural wonders to spawn + Values = { + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "Random", + "Default", }, + DefaultValue = 15, + SortPriority = -93, + }, - { - Name = "Grass Moisture", -- add setting for grassland mositure (8) - Values = { - "Wet", - "Normal", - "Dry", - }, - - DefaultValue = 2, - SortPriority = -92, + { + Name = "Grass Moisture", -- add setting for grassland mositure (8) + Values = { + "Wet", + "Normal", + "Dry", }, - { - Name = "Rivers", -- add setting for rivers (9) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -92, + }, - DefaultValue = 2, - SortPriority = -91, + { + Name = "Rivers", -- add setting for rivers (9) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Tundra Size", -- add setting for tundra (10) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -91, + }, - DefaultValue = 2, - SortPriority = -90, + { + Name = "Tundra Size", -- add setting for tundra (10) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (11) - Values = { - "1 -- Nearly Nothing", - "2", - "3", - "4", - "5 -- Default", - "6", - "7", - "8", - "9", - "10 -- Almost no normal tiles left", - }, - - DefaultValue = 5, - SortPriority = -89, + + DefaultValue = 2, + SortPriority = -90, + }, + { + Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (11) + Values = { + "1 -- Nearly Nothing", + "2", + "3", + "4", + "5 -- Default", + "6", + "7", + "8", + "9", + "10 -- Almost no normal tiles left", }, - { - Name = "Coastal Spawns", -- Can inland civ spawn on the coast (12) - Values = { - "Coastal Civs Only", - "Random", - "Random+ (~2 coastals)", - }, + DefaultValue = 5, + SortPriority = -89, + }, - DefaultValue = 1, - SortPriority = -88, + { + Name = "Coastal Spawns", -- Can inland civ spawn on the coast (12) + Values = { + "Coastal Civs Only", + "Random", + "Random+ (~2 coastals)", }, - { - Name = "Coastal Luxes", -- Can coast spawns have non-coastal luxes (13) - Values = { - "Guaranteed", - "Random", - }, + DefaultValue = 1, + SortPriority = -88, + }, - DefaultValue = 1, - SortPriority = -87, + { + Name = "Coastal Luxes", -- Can coast spawns have non-coastal luxes (13) + Values = { + "Guaranteed", + "Random", }, - { - Name = "Forest Size", -- (14) forestSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -86, + + DefaultValue = 1, + SortPriority = -87, + }, + { + Name = "Forest Size", -- (14) forestSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Jungle Size", -- (15) jungleSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -85, + DefaultValue = 2, + SortPriority = -86, + }, + { + Name = "Jungle Size", -- (15) jungleSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Marsh Size", -- (16) marshSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -84, + DefaultValue = 2, + SortPriority = -85, + }, + { + Name = "Marsh Size", -- (16) marshSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Desert Size", -- (17) desertSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -83, + DefaultValue = 2, + SortPriority = -84, + }, + { + Name = "Desert Size", -- (17) desertSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Map Dimensions", -- (18) mapSize - Values = { - "Cage", - "Standard", - "Big", - "Random", - }, - DefaultValue = 2, - SortPriority = -100, + DefaultValue = 2, + SortPriority = -83, + }, + { + Name = "Map Dimensions", -- (18) mapSize + Values = { + "Cage", + "Standard", + "Big", + "Random", }, + DefaultValue = 2, + SortPriority = -100, + }, + } + opt["Tech Speed"] = { + Name = Locale.ConvertTextKey("TXT_KEY_MAP_OPTION_TECH_SPEED_ID"), + Values = { + "Online", + "Quick", + "Fair", + "Standard", + "Optimal", + "Epic", + "Marathon", }, + DefaultValue = 4, + SortPriority = -101, + } + + return { + Name = "Lekmap: Inland Sea (v3.6)", + Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Inland Sea", + IsAdvancedMap = false, + IconIndex = 12, + SortIndex = 2, + SupportsMultiplayer = true, + CustomOptions = opt }; end ------------------------------------------------------------------------------ diff --git a/LekmapLakesv3.2.lua b/LekmapLakesv3.2.lua index a975e17..2849ef5 100644 --- a/LekmapLakesv3.2.lua +++ b/LekmapLakesv3.2.lua @@ -17,229 +17,245 @@ include("MultilayeredFractal"); ------------------------------------------------------------------------------ function GetMapScriptInfo() local world_age, temperature, rainfall, sea_level, resources = GetCoreMapOptions() - return { - Name = "Lekmap: Lakes (v3.6)", - Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Lakes", - IsAdvancedMap = false, - IconIndex = 13, - SortIndex = 2, - SupportsMultiplayer = true, - CustomOptions = { - { - Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 - Values = { - "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", - "No Mountains", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -99, + local opt = { + { + Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 + Values = { + "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", + "No Mountains", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -99, + }, - { - Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random - Values = { - "TXT_KEY_MAP_OPTION_COOL", - "TXT_KEY_MAP_OPTION_TEMPERATE", - "TXT_KEY_MAP_OPTION_HOT", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -98, + { + Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random + Values = { + "TXT_KEY_MAP_OPTION_COOL", + "TXT_KEY_MAP_OPTION_TEMPERATE", + "TXT_KEY_MAP_OPTION_HOT", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -98, + }, - { - Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- (3) add rainfall defaults to random - Values = { - "TXT_KEY_MAP_OPTION_ARID", - "TXT_KEY_MAP_OPTION_NORMAL", - "TXT_KEY_MAP_OPTION_WET", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -97, + { + Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- (3) add rainfall defaults to random + Values = { + "TXT_KEY_MAP_OPTION_ARID", + "TXT_KEY_MAP_OPTION_NORMAL", + "TXT_KEY_MAP_OPTION_WET", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -97, + }, - { - Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. - Values = { - "TXT_KEY_MAP_OPTION_LOW", - "TXT_KEY_MAP_OPTION_MEDIUM", - "TXT_KEY_MAP_OPTION_HIGH", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -96, + { + Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. + Values = { + "TXT_KEY_MAP_OPTION_LOW", + "TXT_KEY_MAP_OPTION_MEDIUM", + "TXT_KEY_MAP_OPTION_HIGH", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -96, + }, - { - Name = "Start Quality", -- (5) add resources defaults to random - Values = { - "Legendary Start - Strat Balance", - "Legendary - Strat Balance + Uranium", - "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", - "Strategic Balance With Coal", - "Strategic Balance With Aluminum", - "Strategic Balance With Coal & Aluminum", - "Strategic Balance With Coal & Aluminum & Uran", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 7, - SortPriority = -95, + { + Name = "Start Quality", -- (5) add resources defaults to random + Values = { + "Legendary Start - Strat Balance", + "Legendary - Strat Balance + Uranium", + "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", + "Strategic Balance With Coal", + "Strategic Balance With Aluminum", + "Strategic Balance With Coal & Aluminum", + "Strategic Balance With Coal & Aluminum & Uran", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 7, + SortPriority = -95, + }, - { - Name = "Start Distance", -- 6 add resources defaults to random - Values = { - "Close", - "Normal", - "Far - Warning: May sometimes crash during map generation", - }, - DefaultValue = 2, - SortPriority = -94, + { + Name = "Start Distance", -- 6 add resources defaults to random + Values = { + "Close", + "Normal", + "Far - Warning: May sometimes crash during map generation", }, + DefaultValue = 2, + SortPriority = -94, + }, - { - Name = "Natural Wonders", -- 7 number of natural wonders to spawn - Values = { - "0", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "Random", - "Default", - }, - DefaultValue = 15, - SortPriority = -93, + { + Name = "Natural Wonders", -- 7 number of natural wonders to spawn + Values = { + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "Random", + "Default", }, + DefaultValue = 15, + SortPriority = -93, + }, - { - Name = "Grass Moisture", -- add setting for grassland mositure (8) - Values = { - "Wet", - "Normal", - "Dry", - }, - - DefaultValue = 2, - SortPriority = -92, + { + Name = "Grass Moisture", -- add setting for grassland mositure (8) + Values = { + "Wet", + "Normal", + "Dry", }, - { - Name = "Rivers", -- add setting for rivers (9) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -92, + }, - DefaultValue = 2, - SortPriority = -91, + { + Name = "Rivers", -- add setting for rivers (9) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Tundra Size", -- add setting for tundra (10) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -91, + }, - DefaultValue = 2, - SortPriority = -90, + { + Name = "Tundra Size", -- add setting for tundra (10) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (11) - Values = { - "1 -- Nearly Nothing", - "2", - "3", - "4", - "5 -- Default", - "6", - "7", - "8", - "9", - "10 -- Almost no normal tiles left", - }, - - DefaultValue = 5, - SortPriority = -89, + + DefaultValue = 2, + SortPriority = -90, + }, + { + Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (11) + Values = { + "1 -- Nearly Nothing", + "2", + "3", + "4", + "5 -- Default", + "6", + "7", + "8", + "9", + "10 -- Almost no normal tiles left", }, - { - Name = "TXT_KEY_MAP_OPTION_BODIES_OF_WATER", -- (12) - Values = { - {"TXT_KEY_MAP_OPTION_SMALL_LAKES", "TXT_KEY_MAP_OPTION_SMALL_LAKES_HELP"}, - {"TXT_KEY_MAP_OPTION_LARGE_LAKES", "TXT_KEY_MAP_OPTION_LARGE_LAKES_HELP"}, - {"TXT_KEY_MAP_OPTION_SEAS", "TXT_KEY_MAP_OPTION_SEAS_HELP"}, - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 4, - SortPriority = 1, + + DefaultValue = 5, + SortPriority = -89, + }, + { + Name = "TXT_KEY_MAP_OPTION_BODIES_OF_WATER", -- (12) + Values = { + {"TXT_KEY_MAP_OPTION_SMALL_LAKES", "TXT_KEY_MAP_OPTION_SMALL_LAKES_HELP"}, + {"TXT_KEY_MAP_OPTION_LARGE_LAKES", "TXT_KEY_MAP_OPTION_LARGE_LAKES_HELP"}, + {"TXT_KEY_MAP_OPTION_SEAS", "TXT_KEY_MAP_OPTION_SEAS_HELP"}, + "TXT_KEY_MAP_OPTION_RANDOM", }, - { - Name = "Forest Size", -- (13) forestSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -88, + DefaultValue = 4, + SortPriority = 1, + }, + { + Name = "Forest Size", -- (13) forestSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Jungle Size", -- (14) jungleSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -87, + DefaultValue = 2, + SortPriority = -88, + }, + { + Name = "Jungle Size", -- (14) jungleSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Marsh Size", -- (15) marshSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -86, + DefaultValue = 2, + SortPriority = -87, + }, + { + Name = "Marsh Size", -- (15) marshSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Desert Size", -- (16) desertSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -85, + DefaultValue = 2, + SortPriority = -86, + }, + { + Name = "Desert Size", -- (16) desertSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Map Dimensions", -- (17) mapSize - Values = { - "Cage", - "Standard", - "Big", - "Random", - }, - DefaultValue = 2, - SortPriority = -100, + DefaultValue = 2, + SortPriority = -85, + }, + { + Name = "Map Dimensions", -- (17) mapSize + Values = { + "Cage", + "Standard", + "Big", + "Random", }, + DefaultValue = 2, + SortPriority = -100, + }, + } + opt["Tech Speed"] = { + Name = Locale.ConvertTextKey("TXT_KEY_MAP_OPTION_TECH_SPEED_ID"), + Values = { + "Online", + "Quick", + "Fair", + "Standard", + "Optimal", + "Epic", + "Marathon", }, + DefaultValue = 4, + SortPriority = -101, + } + + return { + Name = "Lekmap: Lakes (v3.6)", + Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Lakes", + IsAdvancedMap = false, + IconIndex = 13, + SortIndex = 2, + SupportsMultiplayer = true, + CustomOptions = opt }; end ------------------------------------------------------------------------------ diff --git a/LekmapOvalv3.3.lua b/LekmapOvalv3.3.lua index 3ad8f9d..0df54c3 100644 --- a/LekmapOvalv3.3.lua +++ b/LekmapOvalv3.3.lua @@ -16,265 +16,280 @@ include("MultilayeredFractal"); ------------------------------------------------------------------------------ function GetMapScriptInfo() - return { - Name = "Lekmap: Oval (v3.6)", - Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Oval", - IsAdvancedMap = false, - IconIndex = 15, - SortIndex = 2, - SupportsMultiplayer = true, - CustomOptions = { - { - Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 - Values = { - "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", - "No Mountains", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -99, + local opt = { + { + Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 + Values = { + "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", + "No Mountains", + "TXT_KEY_MAP_OPTION_RANDOM", }, - - { - Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random - Values = { - "TXT_KEY_MAP_OPTION_COOL", - "TXT_KEY_MAP_OPTION_TEMPERATE", - "TXT_KEY_MAP_OPTION_HOT", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -98, + DefaultValue = 2, + SortPriority = -99, + }, + + { + Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random + Values = { + "TXT_KEY_MAP_OPTION_COOL", + "TXT_KEY_MAP_OPTION_TEMPERATE", + "TXT_KEY_MAP_OPTION_HOT", + "TXT_KEY_MAP_OPTION_RANDOM", }, - - { - Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random - Values = { - "TXT_KEY_MAP_OPTION_ARID", - "TXT_KEY_MAP_OPTION_NORMAL", - "TXT_KEY_MAP_OPTION_WET", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -97, + DefaultValue = 2, + SortPriority = -98, + }, + + { + Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random + Values = { + "TXT_KEY_MAP_OPTION_ARID", + "TXT_KEY_MAP_OPTION_NORMAL", + "TXT_KEY_MAP_OPTION_WET", + "TXT_KEY_MAP_OPTION_RANDOM", }, - - { - Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. - Values = { - "TXT_KEY_MAP_OPTION_LOW", - "TXT_KEY_MAP_OPTION_MEDIUM", - "TXT_KEY_MAP_OPTION_HIGH", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -96, + DefaultValue = 2, + SortPriority = -97, + }, + + { + Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. + Values = { + "TXT_KEY_MAP_OPTION_LOW", + "TXT_KEY_MAP_OPTION_MEDIUM", + "TXT_KEY_MAP_OPTION_HIGH", + "TXT_KEY_MAP_OPTION_RANDOM", }, - - { - Name = "Start Quality", -- (5) add resources defaults to random - Values = { - "Legendary Start - Strat Balance", - "Legendary - Strat Balance + Uranium", - "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", - "Strategic Balance With Coal", - "Strategic Balance With Aluminum", - "Strategic Balance With Coal & Aluminum", - "Strategic Balance With Coal & Aluminum & Uran", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 7, - SortPriority = -95, + DefaultValue = 2, + SortPriority = -96, + }, + + { + Name = "Start Quality", -- (5) add resources defaults to random + Values = { + "Legendary Start - Strat Balance", + "Legendary - Strat Balance + Uranium", + "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", + "Strategic Balance With Coal", + "Strategic Balance With Aluminum", + "Strategic Balance With Coal & Aluminum", + "Strategic Balance With Coal & Aluminum & Uran", + "TXT_KEY_MAP_OPTION_RANDOM", }, - - { - Name = "Start Distance", -- 6 add resources defaults to random - Values = { - "Close", - "Normal", - "Far - Warning: May sometimes crash during map generation", - }, - DefaultValue = 2, - SortPriority = -94, + DefaultValue = 7, + SortPriority = -95, + }, + + { + Name = "Start Distance", -- 6 add resources defaults to random + Values = { + "Close", + "Normal", + "Far - Warning: May sometimes crash during map generation", }, - - { - Name = "Natural Wonders", -- 7 number of natural wonders to spawn - Values = { - "0", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "Random", - "Default", - }, - DefaultValue = 15, - SortPriority = -90, + DefaultValue = 2, + SortPriority = -94, + }, + + { + Name = "Natural Wonders", -- 7 number of natural wonders to spawn + Values = { + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "Random", + "Default", }, - - { - Name = "Grass Moisture", -- add setting for grassland mositure (8) - Values = { - "Wet", - "Normal", - "Dry", - }, - - DefaultValue = 2, - SortPriority = -89, + DefaultValue = 15, + SortPriority = -90, + }, + + { + Name = "Grass Moisture", -- add setting for grassland mositure (8) + Values = { + "Wet", + "Normal", + "Dry", }, - { - Name = "Rivers", -- add setting for rivers (9) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -89, + }, - DefaultValue = 2, - SortPriority = -88, + { + Name = "Rivers", -- add setting for rivers (9) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Tundra Size", -- add setting for tundra (10) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -88, + }, - DefaultValue = 2, - SortPriority = -87, + { + Name = "Tundra Size", -- add setting for tundra (10) + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -87, + }, + - { - Name = "Must be coast", -- (11) force coastal start - Values = { - "Yes", - "No", - }, - DefaultValue = 2, - SortPriority = -82, + { + Name = "Must be coast", -- (11) force coastal start + Values = { + "Yes", + "No", }, - { - Name = "Desert Size", -- (12) desertSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -81, + DefaultValue = 2, + SortPriority = -82, + }, + { + Name = "Desert Size", -- (12) desertSize + Values = { + "sparse", + "average", + "plentiful", }, - - { - Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) - Values = { - "1 -- Nearly Nothing", - "2", - "3", - "4", - "5 -- Default", - "6", - "7", - "8", - "9", - "10 -- Almost no normal tiles left", - }, - - DefaultValue = 5, - SortPriority = -86, + DefaultValue = 2, + SortPriority = -81, + }, + + { + Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) + Values = { + "1 -- Nearly Nothing", + "2", + "3", + "4", + "5 -- Default", + "6", + "7", + "8", + "9", + "10 -- Almost no normal tiles left", }, - { - Name = "Coastal Spawns", -- Can inland civ spawn on the coast (14) - Values = { - "Coastal Civs Only", - "Random", - "Random+ (~2 coastals)", - }, + DefaultValue = 5, + SortPriority = -86, + }, - DefaultValue = 1, - SortPriority = -85, + { + Name = "Coastal Spawns", -- Can inland civ spawn on the coast (14) + Values = { + "Coastal Civs Only", + "Random", + "Random+ (~2 coastals)", }, - { - Name = "Coastal Luxes", -- Can coast spawns have non-coastal luxes (15) - Values = { - "Guaranteed", - "Random", - }, + DefaultValue = 1, + SortPriority = -85, + }, - DefaultValue = 1, - SortPriority = -84, + { + Name = "Coastal Luxes", -- Can coast spawns have non-coastal luxes (15) + Values = { + "Guaranteed", + "Random", }, - { - Name = "Inland Sea Spawns", -- Can coastal civ spawn on inland seas (16) - Values = { - "Allowed", - "Not Allowed for Coastal Civs", - }, + DefaultValue = 1, + SortPriority = -84, + }, - DefaultValue = 1, - SortPriority = -83, + { + Name = "Inland Sea Spawns", -- Can coastal civ spawn on inland seas (16) + Values = { + "Allowed", + "Not Allowed for Coastal Civs", }, - { - Name = "Forest Size", -- (17) forestSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -80, + DefaultValue = 1, + SortPriority = -83, + }, + + { + Name = "Forest Size", -- (17) forestSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Jungle Size", -- (18) jungleSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -79, + DefaultValue = 2, + SortPriority = -80, + }, + { + Name = "Jungle Size", -- (18) jungleSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Marsh Size", -- (19) marshSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -78, + DefaultValue = 2, + SortPriority = -79, + }, + { + Name = "Marsh Size", -- (19) marshSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Map Dimensions", -- (20) mapSize - Values = { - "Cage", - "Standard", - "Big", - "Random", - }, - DefaultValue = 2, - SortPriority = -100, + DefaultValue = 2, + SortPriority = -78, + }, + { + Name = "Map Dimensions", -- (20) mapSize + Values = { + "Cage", + "Standard", + "Big", + "Random", }, - }, + DefaultValue = 2, + SortPriority = -100, + }, + } + opt["Tech Speed"] = { + Name = Locale.ConvertTextKey("TXT_KEY_MAP_OPTION_TECH_SPEED_ID"), + Values = { + "Online", + "Quick", + "Fair", + "Standard", + "Optimal", + "Epic", + "Marathon", + }, + DefaultValue = 4, + SortPriority = -101, + } + return { + Name = "Lekmap: Oval (v3.6)", + Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Oval", + IsAdvancedMap = false, + IconIndex = 15, + SortIndex = 2, + SupportsMultiplayer = true, + CustomOptions = opt }; end ------------------------------------------------------------------------------ diff --git a/LekmapPangaeaFractalv3.2.lua b/LekmapPangaeaFractalv3.2.lua index 6e97d29..287750a 100644 --- a/LekmapPangaeaFractalv3.2.lua +++ b/LekmapPangaeaFractalv3.2.lua @@ -17,286 +17,302 @@ include("MultilayeredFractal"); ------------------------------------------------------------------------------ function GetMapScriptInfo() local world_age, temperature, rainfall, sea_level, resources = GetCoreMapOptions() - return { - Name = "Lekmap: Pangaea - Fractal (v3.6)", - Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Pangaea - Fractal", - IsAdvancedMap = false, - IconIndex = 0, - SortIndex = 2, - SupportsMultiplayer = true, - CustomOptions = { - { - Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 - Values = { - "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", - "No Mountains", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -99, + local opt = { + { + Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 + Values = { + "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", + "No Mountains", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -99, + }, - { - Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random - Values = { - "TXT_KEY_MAP_OPTION_COOL", - "TXT_KEY_MAP_OPTION_TEMPERATE", - "TXT_KEY_MAP_OPTION_HOT", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -98, + { + Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random + Values = { + "TXT_KEY_MAP_OPTION_COOL", + "TXT_KEY_MAP_OPTION_TEMPERATE", + "TXT_KEY_MAP_OPTION_HOT", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -98, + }, - { - Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random - Values = { - "TXT_KEY_MAP_OPTION_ARID", - "TXT_KEY_MAP_OPTION_NORMAL", - "TXT_KEY_MAP_OPTION_WET", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -97, + { + Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random + Values = { + "TXT_KEY_MAP_OPTION_ARID", + "TXT_KEY_MAP_OPTION_NORMAL", + "TXT_KEY_MAP_OPTION_WET", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -97, + }, - { - Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. - Values = { - "TXT_KEY_MAP_OPTION_LOW", - "TXT_KEY_MAP_OPTION_MEDIUM", - "TXT_KEY_MAP_OPTION_HIGH", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -96, + { + Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. + Values = { + "TXT_KEY_MAP_OPTION_LOW", + "TXT_KEY_MAP_OPTION_MEDIUM", + "TXT_KEY_MAP_OPTION_HIGH", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -96, + }, - { - Name = "Start Quality", -- 5 start quality - Values = { - "Legendary Start - Strat Balance", - "Legendary - Strat Balance + Uranium", - "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", - "Strategic Balance With Coal", - "Strategic Balance With Aluminum", - "Strategic Balance With Coal & Aluminum", - "Strategic Balance With Coal & Aluminum & Uran", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 7, - SortPriority = -95, + { + Name = "Start Quality", -- 5 start quality + Values = { + "Legendary Start - Strat Balance", + "Legendary - Strat Balance + Uranium", + "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", + "Strategic Balance With Coal", + "Strategic Balance With Aluminum", + "Strategic Balance With Coal & Aluminum", + "Strategic Balance With Coal & Aluminum & Uran", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 7, + SortPriority = -95, + }, - { - Name = "Start Distance", -- 6 start distance - Values = { - "Close", - "Normal", - "Far - Warning: May sometimes crash during map generation", - }, - DefaultValue = 2, - SortPriority = -94, + { + Name = "Start Distance", -- 6 start distance + Values = { + "Close", + "Normal", + "Far - Warning: May sometimes crash during map generation", }, + DefaultValue = 2, + SortPriority = -94, + }, - { - Name = "Natural Wonders", -- 7 number of natural wonders to spawn - Values = { - "0", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "Random", - "Default", - }, - DefaultValue = 15, - SortPriority = -93, + { + Name = "Natural Wonders", -- 7 number of natural wonders to spawn + Values = { + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "Random", + "Default", }, + DefaultValue = 15, + SortPriority = -93, + }, - { - Name = "Grass Moisture", -- add setting for grassland mositure (8) - Values = { - "Wet", - "Normal", - "Dry", - }, - - DefaultValue = 2, - SortPriority = -92, + { + Name = "Grass Moisture", -- add setting for grassland mositure (8) + Values = { + "Wet", + "Normal", + "Dry", }, - { - Name = "Rivers", -- add setting for rivers (9) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -92, + }, - DefaultValue = 2, - SortPriority = -91, + { + Name = "Rivers", -- add setting for rivers (9) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Tundra Size", -- add setting for tundraSize (10) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -91, + }, - DefaultValue = 2, - SortPriority = -90, + { + Name = "Tundra Size", -- add setting for tundraSize (10) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Forest Size", -- (11) forestSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -89, + + DefaultValue = 2, + SortPriority = -90, + }, + { + Name = "Forest Size", -- (11) forestSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Jungle Size", -- (12) jungleSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -87, + DefaultValue = 2, + SortPriority = -89, + }, + { + Name = "Jungle Size", -- (12) jungleSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) - Values = { - "1 -- Nearly Nothing", - "2", - "3", - "4", - "5 -- Default", - "6", - "7", - "8", - "9", - "10 -- Almost no normal tiles left", - }, - - DefaultValue = 5, - SortPriority = -86, + DefaultValue = 2, + SortPriority = -87, + }, + { + Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) + Values = { + "1 -- Nearly Nothing", + "2", + "3", + "4", + "5 -- Default", + "6", + "7", + "8", + "9", + "10 -- Almost no normal tiles left", }, - { - Name = "Islands", -- add setting for islands (14) - Values = { - "No Islands", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12 - Default", - "13", - "14", - "15", - "16", - "17", - "18", - "19", - "20", - "21", - "22", - "23", - "24", - }, - - DefaultValue = 13, - SortPriority = -85, + DefaultValue = 5, + SortPriority = -86, + }, + + { + Name = "Islands", -- add setting for islands (14) + Values = { + "No Islands", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12 - Default", + "13", + "14", + "15", + "16", + "17", + "18", + "19", + "20", + "21", + "22", + "23", + "24", }, - { - Name = "Coastal Spawns", -- Can inland civ spawn on the coast (15) - Values = { - "Coastal Civs Only", - "Random", - "Random+ (~2 coastals)", - }, + DefaultValue = 13, + SortPriority = -85, + }, - DefaultValue = 1, - SortPriority = -84, + { + Name = "Coastal Spawns", -- Can inland civ spawn on the coast (15) + Values = { + "Coastal Civs Only", + "Random", + "Random+ (~2 coastals)", }, - { - Name = "Coastal Luxes", -- Can coast spawns have non-coastal luxes (16) - Values = { - "Guaranteed", - "Random", - }, + DefaultValue = 1, + SortPriority = -84, + }, - DefaultValue = 1, - SortPriority = -83, + { + Name = "Coastal Luxes", -- Can coast spawns have non-coastal luxes (16) + Values = { + "Guaranteed", + "Random", }, - { - Name = "Inland Sea Spawns", -- Can coastal civ spawn on inland seas (17) - Values = { - "Allowed", - "Not Allowed for Coastal Civs", - }, + DefaultValue = 1, + SortPriority = -83, + }, - DefaultValue = 1, - SortPriority = -82, + { + Name = "Inland Sea Spawns", -- Can coastal civ spawn on inland seas (17) + Values = { + "Allowed", + "Not Allowed for Coastal Civs", }, - { - Name = "Desert Size", -- (18) desertSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -81, + + DefaultValue = 1, + SortPriority = -82, + }, + { + Name = "Desert Size", -- (18) desertSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Marsh Size", -- (19) marshSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -80, + DefaultValue = 2, + SortPriority = -81, + }, + { + Name = "Marsh Size", -- (19) marshSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Map Dimensions", -- (20) mapSize - Values = { - "Cage", - "Standard", - "Big", - "Random", - }, - DefaultValue = 2, - SortPriority = -100, + DefaultValue = 2, + SortPriority = -80, + }, + { + Name = "Map Dimensions", -- (20) mapSize + Values = { + "Cage", + "Standard", + "Big", + "Random", }, + DefaultValue = 2, + SortPriority = -100, + }, + } + opt["Tech Speed"] = { + Name = Locale.ConvertTextKey("TXT_KEY_MAP_OPTION_TECH_SPEED_ID"), + Values = { + "Online", + "Quick", + "Fair", + "Standard", + "Optimal", + "Epic", + "Marathon", }, + DefaultValue = 4, + SortPriority = -101, + } + + return { + Name = "Lekmap: Pangaea - Fractal (v3.6)", + Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Pangaea - Fractal", + IsAdvancedMap = false, + IconIndex = 0, + SortIndex = 2, + SupportsMultiplayer = true, + CustomOptions = opt }; end ------------------------------------------------------------------------------ diff --git a/LekmapPangaeaRectangularv3.3.lua b/LekmapPangaeaRectangularv3.3.lua index 91cd794..17409fa 100644 --- a/LekmapPangaeaRectangularv3.3.lua +++ b/LekmapPangaeaRectangularv3.3.lua @@ -17,314 +17,329 @@ include("MultilayeredFractal"); ------------------------------------------------------------------------------ function GetMapScriptInfo() local world_age, temperature, rainfall, sea_level, resources = GetCoreMapOptions() - return { - Name = "Lekmap: Pangaea - Rectangular (v3.6)", - Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Pangaea - Rectangular", - IsAdvancedMap = false, - IconIndex = 0, - SortIndex = 2, - SupportsMultiplayer = true, - CustomOptions = { - { - Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 - Values = { - "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", - "No Mountains", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -99, + local opt = { + { + Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 + Values = { + "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", + "No Mountains", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -99, + }, - { - Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random - Values = { - "TXT_KEY_MAP_OPTION_COOL", - "TXT_KEY_MAP_OPTION_TEMPERATE", - "TXT_KEY_MAP_OPTION_HOT", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -98, + { + Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random + Values = { + "TXT_KEY_MAP_OPTION_COOL", + "TXT_KEY_MAP_OPTION_TEMPERATE", + "TXT_KEY_MAP_OPTION_HOT", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -98, + }, - { - Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random - Values = { - "TXT_KEY_MAP_OPTION_ARID", - "TXT_KEY_MAP_OPTION_NORMAL", - "TXT_KEY_MAP_OPTION_WET", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -97, + { + Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random + Values = { + "TXT_KEY_MAP_OPTION_ARID", + "TXT_KEY_MAP_OPTION_NORMAL", + "TXT_KEY_MAP_OPTION_WET", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -97, + }, - { - Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. - Values = { - "Very Low", - "TXT_KEY_MAP_OPTION_LOW", - "TXT_KEY_MAP_OPTION_MEDIUM", - "TXT_KEY_MAP_OPTION_HIGH", - "Very High", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 3, - SortPriority = -96, + { + Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. + Values = { + "Very Low", + "TXT_KEY_MAP_OPTION_LOW", + "TXT_KEY_MAP_OPTION_MEDIUM", + "TXT_KEY_MAP_OPTION_HIGH", + "Very High", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 3, + SortPriority = -96, + }, - { - Name = "Start Quality", -- (5) add resources defaults to random - Values = { - "Legendary Start - Strat Balance", - "Legendary - Strat Balance + Uranium", - "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", - "Strategic Balance With Coal", - "Strategic Balance With Aluminum", - "Strategic Balance With Coal & Aluminum", - "Strategic Balance With Coal & Aluminum & Uran", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 7, - SortPriority = -95, + { + Name = "Start Quality", -- (5) add resources defaults to random + Values = { + "Legendary Start - Strat Balance", + "Legendary - Strat Balance + Uranium", + "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", + "Strategic Balance With Coal", + "Strategic Balance With Aluminum", + "Strategic Balance With Coal & Aluminum", + "Strategic Balance With Coal & Aluminum & Uran", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 7, + SortPriority = -95, + }, - { - Name = "Start Distance", -- 6 add resources defaults to random - Values = { - "Close", - "Normal", - "Far - Warning: May sometimes crash during map generation", - }, - DefaultValue = 2, - SortPriority = -94, + { + Name = "Start Distance", -- 6 add resources defaults to random + Values = { + "Close", + "Normal", + "Far - Warning: May sometimes crash during map generation", }, + DefaultValue = 2, + SortPriority = -94, + }, - { - Name = "Natural Wonders", -- 7 number of natural wonders to spawn - Values = { - "0", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "Random", - "Default", - }, - DefaultValue = 15, - SortPriority = -93, + { + Name = "Natural Wonders", -- 7 number of natural wonders to spawn + Values = { + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "Random", + "Default", }, + DefaultValue = 15, + SortPriority = -93, + }, - { - Name = "Grass Moisture", -- add setting for grassland mositure (8) - Values = { - "Wet", - "Normal", - "Dry", - }, - - DefaultValue = 2, - SortPriority = -92, + { + Name = "Grass Moisture", -- add setting for grassland mositure (8) + Values = { + "Wet", + "Normal", + "Dry", }, - { - Name = "Rivers", -- add setting for rivers (9) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -92, + }, - DefaultValue = 2, - SortPriority = -91, + { + Name = "Rivers", -- add setting for rivers (9) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Tundra Size", -- add setting for tundra (10) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -91, + }, - DefaultValue = 2, - SortPriority = -90, + { + Name = "Tundra Size", -- add setting for tundra (10) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Forest Size", -- (11) forestSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -89, + DefaultValue = 2, + SortPriority = -90, + }, + + { + Name = "Forest Size", -- (11) forestSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Jungle Size", -- (12) jungleSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -88, + DefaultValue = 2, + SortPriority = -89, + }, + { + Name = "Jungle Size", -- (12) jungleSize + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -88, + }, - { - Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) - Values = { - "1 -- Nearly Nothing", - "2", - "3", - "4", - "5 -- Default", - "6", - "7", - "8", - "9", - "10 -- Almost no normal tiles left", - }, - - DefaultValue = 5, - SortPriority = -87, + { + Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) + Values = { + "1 -- Nearly Nothing", + "2", + "3", + "4", + "5 -- Default", + "6", + "7", + "8", + "9", + "10 -- Almost no normal tiles left", }, - { - Name = "Islands", -- add setting for islands (14) - Values = { - "No Islands", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12 - Default", - "13", - "14", - "15", - "16", - "17", - "18", - "19", - "20", - "21", - "22", - "23", - "24", - }, - - DefaultValue = 13, - SortPriority = -86, + DefaultValue = 5, + SortPriority = -87, + }, + + { + Name = "Islands", -- add setting for islands (14) + Values = { + "No Islands", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12 - Default", + "13", + "14", + "15", + "16", + "17", + "18", + "19", + "20", + "21", + "22", + "23", + "24", }, - { - Name = "Coastal Spawns", -- Can inland civ spawn on the coast (15) - Values = { - "Coastal Civs Only", - "Random", - "Random+ (~2 coastals)", - }, + DefaultValue = 13, + SortPriority = -86, + }, - DefaultValue = 1, - SortPriority = -85, + { + Name = "Coastal Spawns", -- Can inland civ spawn on the coast (15) + Values = { + "Coastal Civs Only", + "Random", + "Random+ (~2 coastals)", }, - { - Name = "Coastal Luxes", -- Can coast spawns have non-coastal luxes (16) - Values = { - "Guaranteed", - "Random", - }, + DefaultValue = 1, + SortPriority = -85, + }, - DefaultValue = 1, - SortPriority = -84, + { + Name = "Coastal Luxes", -- Can coast spawns have non-coastal luxes (16) + Values = { + "Guaranteed", + "Random", }, - { - Name = "Inland Sea Spawns", -- Can coastal civ spawn on inland seas (17) - Values = { - "Allowed", - "Not Allowed for Coastal Civs", - }, + DefaultValue = 1, + SortPriority = -84, + }, - DefaultValue = 1, - SortPriority = -83, + { + Name = "Inland Sea Spawns", -- Can coastal civ spawn on inland seas (17) + Values = { + "Allowed", + "Not Allowed for Coastal Civs", }, - { - Name = "Bays", -- add setting for Bays (18) - Values = { - "Sparse", - "Average", - "Plentiful", - }, + DefaultValue = 1, + SortPriority = -83, + }, - DefaultValue = 1, - SortPriority = -82, + { + Name = "Bays", -- add setting for Bays (18) + Values = { + "Sparse", + "Average", + "Plentiful", }, - { - Name = "Must be coast", -- (19) force coastal start - Values = { - "Yes", - "No", - }, - DefaultValue = 2, - SortPriority = -81, + DefaultValue = 1, + SortPriority = -82, + }, + + { + Name = "Must be coast", -- (19) force coastal start + Values = { + "Yes", + "No", }, - { - Name = "Desert Size", -- (20) desertSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -80, + DefaultValue = 2, + SortPriority = -81, + }, + { + Name = "Desert Size", -- (20) desertSize + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -80, + }, - { - Name = "Marsh Size", -- (21) marshSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -79, + { + Name = "Marsh Size", -- (21) marshSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Map Dimensions", -- (22) mapSize - Values = { - "Cage", - "Standard", - "Big", - "Random", - }, - DefaultValue = 2, - SortPriority = -100, + DefaultValue = 2, + SortPriority = -79, + }, + { + Name = "Map Dimensions", -- (22) mapSize + Values = { + "Cage", + "Standard", + "Big", + "Random", }, - + DefaultValue = 2, + SortPriority = -100, }, + } + opt["Tech Speed"] = { + Name = Locale.ConvertTextKey("TXT_KEY_MAP_OPTION_TECH_SPEED_ID"), + Values = { + "Online", + "Quick", + "Fair", + "Standard", + "Optimal", + "Epic", + "Marathon", + }, + DefaultValue = 4, + SortPriority = -101, + } + + return { + Name = "Lekmap: Pangaea - Rectangular (v3.6)", + Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Pangaea - Rectangular", + IsAdvancedMap = false, + IconIndex = 0, + SortIndex = 2, + SupportsMultiplayer = true, + CustomOptions = opt }; end ------------------------------------------------------------------------------ diff --git a/LekmapSmallContinentsv3.2.lua b/LekmapSmallContinentsv3.2.lua index 3cabd9b..12cc903 100644 --- a/LekmapSmallContinentsv3.2.lua +++ b/LekmapSmallContinentsv3.2.lua @@ -17,231 +17,247 @@ include("MultilayeredFractal"); ------------------------------------------------------------------------------ function GetMapScriptInfo() local world_age, temperature, rainfall, sea_level, resources = GetCoreMapOptions() - return { - Name = "Lekmap: Small Continents (v3.6)", - Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Small Continents", - IsAdvancedMap = false, - IconIndex = 1, - SortIndex = 2, - SupportsMultiplayer = true, - CustomOptions = { - { - Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 - Values = { - "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", - "No Mountains", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -99, + local opt = { + { + Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 + Values = { + "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", + "No Mountains", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -99, + }, - { - Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random - Values = { - "TXT_KEY_MAP_OPTION_COOL", - "TXT_KEY_MAP_OPTION_TEMPERATE", - "TXT_KEY_MAP_OPTION_HOT", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -98, + { + Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random + Values = { + "TXT_KEY_MAP_OPTION_COOL", + "TXT_KEY_MAP_OPTION_TEMPERATE", + "TXT_KEY_MAP_OPTION_HOT", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -98, + }, - { - Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random - Values = { - "TXT_KEY_MAP_OPTION_ARID", - "TXT_KEY_MAP_OPTION_NORMAL", - "TXT_KEY_MAP_OPTION_WET", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -97, + { + Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random + Values = { + "TXT_KEY_MAP_OPTION_ARID", + "TXT_KEY_MAP_OPTION_NORMAL", + "TXT_KEY_MAP_OPTION_WET", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -97, + }, - { - Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. - Values = { - "TXT_KEY_MAP_OPTION_LOW", - "TXT_KEY_MAP_OPTION_MEDIUM", - "TXT_KEY_MAP_OPTION_HIGH", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -96, + { + Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. + Values = { + "TXT_KEY_MAP_OPTION_LOW", + "TXT_KEY_MAP_OPTION_MEDIUM", + "TXT_KEY_MAP_OPTION_HIGH", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -96, + }, - { - Name = "Start Quality", -- (5) add resources defaults to random - Values = { - "Legendary Start - Strat Balance", - "Legendary - Strat Balance + Uranium", - "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", - "Strategic Balance With Coal", - "Strategic Balance With Aluminum", - "Strategic Balance With Coal & Aluminum", - "Strategic Balance With Coal & Aluminum & Uran", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 7, - SortPriority = -95, + { + Name = "Start Quality", -- (5) add resources defaults to random + Values = { + "Legendary Start - Strat Balance", + "Legendary - Strat Balance + Uranium", + "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", + "Strategic Balance With Coal", + "Strategic Balance With Aluminum", + "Strategic Balance With Coal & Aluminum", + "Strategic Balance With Coal & Aluminum & Uran", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 7, + SortPriority = -95, + }, - { - Name = "Start Distance", -- 6 add resources defaults to random - Values = { - "Close", - "Normal", - "Far - Warning: May sometimes crash during map generation", - }, - DefaultValue = 2, - SortPriority = -94, + { + Name = "Start Distance", -- 6 add resources defaults to random + Values = { + "Close", + "Normal", + "Far - Warning: May sometimes crash during map generation", }, + DefaultValue = 2, + SortPriority = -94, + }, - { - Name = "Natural Wonders", -- 7 number of natural wonders to spawn - Values = { - "0", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "Random", - "Default", - }, - DefaultValue = 15, - SortPriority = -93, + { + Name = "Natural Wonders", -- 7 number of natural wonders to spawn + Values = { + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "Random", + "Default", }, + DefaultValue = 15, + SortPriority = -93, + }, - { - Name = "Grass Moisture", -- add setting for grassland mositure (8) - Values = { - "Wet", - "Normal", - "Dry", - }, - - DefaultValue = 2, - SortPriority = -92, + { + Name = "Grass Moisture", -- add setting for grassland mositure (8) + Values = { + "Wet", + "Normal", + "Dry", }, - { - Name = "Rivers", -- add setting for rivers (9) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -92, + }, - DefaultValue = 2, - SortPriority = -91, + { + Name = "Rivers", -- add setting for rivers (9) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Tundra Size", -- add setting for tundra (10) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -91, + }, - DefaultValue = 2, - SortPriority = -90, + { + Name = "Tundra Size", -- add setting for tundra (10) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Forest Size", -- (11) forestSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -89, + + DefaultValue = 2, + SortPriority = -90, + }, + { + Name = "Forest Size", -- (11) forestSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Jungle Size", -- (12) jungleSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -88, + DefaultValue = 2, + SortPriority = -89, + }, + { + Name = "Jungle Size", -- (12) jungleSize + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -88, + }, - { - Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) - Values = { - "1 -- Nearly Nothing", - "2", - "3", - "4", - "5 -- Default", - "6", - "7", - "8", - "9", - "10 -- Almost no normal tiles left", - }, - - DefaultValue = 5, - SortPriority = -87, + { + Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) + Values = { + "1 -- Nearly Nothing", + "2", + "3", + "4", + "5 -- Default", + "6", + "7", + "8", + "9", + "10 -- Almost no normal tiles left", }, - { - Name = "Must be coast", -- (14) force coastal start - Values = { - "Yes", - "No", - }, - DefaultValue = 2, - SortPriority = -86, + DefaultValue = 5, + SortPriority = -87, + }, + + { + Name = "Must be coast", -- (14) force coastal start + Values = { + "Yes", + "No", }, + DefaultValue = 2, + SortPriority = -86, + }, - { - Name = "Desert Size", -- (15) desertSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -85, + { + Name = "Desert Size", -- (15) desertSize + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -85, + }, - { - Name = "Marsh Size", -- (16) marshSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -84, + { + Name = "Marsh Size", -- (16) marshSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Map Dimensions", -- (17) mapSize - Values = { - "Cage", - "Standard", - "Big", - "Random", - }, - DefaultValue = 2, - SortPriority = -100, + DefaultValue = 2, + SortPriority = -84, + }, + { + Name = "Map Dimensions", -- (17) mapSize + Values = { + "Cage", + "Standard", + "Big", + "Random", }, + DefaultValue = 2, + SortPriority = -100, + }, + } + opt["Tech Speed"] = { + Name = Locale.ConvertTextKey("TXT_KEY_MAP_OPTION_TECH_SPEED_ID"), + Values = { + "Online", + "Quick", + "Fair", + "Standard", + "Optimal", + "Epic", + "Marathon", }, + DefaultValue = 4, + SortPriority = -101, + } + + return { + Name = "Lekmap: Small Continents (v3.6)", + Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Small Continents", + IsAdvancedMap = false, + IconIndex = 1, + SortIndex = 2, + SupportsMultiplayer = true, + CustomOptions = opt }; end ------------------------------------------------------------------------------ diff --git a/LekmapTinyIslandsv3.2.lua b/LekmapTinyIslandsv3.2.lua index da401ac..f99fee2 100644 --- a/LekmapTinyIslandsv3.2.lua +++ b/LekmapTinyIslandsv3.2.lua @@ -17,222 +17,238 @@ include("MultilayeredFractal"); ------------------------------------------------------------------------------ function GetMapScriptInfo() local world_age, temperature, rainfall, sea_level, resources = GetCoreMapOptions() - return { - Name = "Lekmap: Tiny Islands (v3.6)", - Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Tiny Islands", - IsAdvancedMap = false, - IconIndex = 17, - SortIndex = 2, - SupportsMultiplayer = true, - CustomOptions = { - { - Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 - Values = { - "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", - "No Mountains", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -99, + local opt = { + { + Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 + Values = { + "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", + "No Mountains", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -99, + }, - { - Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random - Values = { - "TXT_KEY_MAP_OPTION_COOL", - "TXT_KEY_MAP_OPTION_TEMPERATE", - "TXT_KEY_MAP_OPTION_HOT", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -98, + { + Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random + Values = { + "TXT_KEY_MAP_OPTION_COOL", + "TXT_KEY_MAP_OPTION_TEMPERATE", + "TXT_KEY_MAP_OPTION_HOT", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -98, + }, - { - Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random - Values = { - "TXT_KEY_MAP_OPTION_ARID", - "TXT_KEY_MAP_OPTION_NORMAL", - "TXT_KEY_MAP_OPTION_WET", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -97, + { + Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random + Values = { + "TXT_KEY_MAP_OPTION_ARID", + "TXT_KEY_MAP_OPTION_NORMAL", + "TXT_KEY_MAP_OPTION_WET", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -97, + }, - { - Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. - Values = { - "TXT_KEY_MAP_OPTION_LOW", - "TXT_KEY_MAP_OPTION_MEDIUM", - "TXT_KEY_MAP_OPTION_HIGH", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -96, + { + Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. + Values = { + "TXT_KEY_MAP_OPTION_LOW", + "TXT_KEY_MAP_OPTION_MEDIUM", + "TXT_KEY_MAP_OPTION_HIGH", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -96, + }, - { - Name = "Start Quality", -- (5) add resources defaults to random - Values = { - "Legendary Start - Strat Balance", - "Legendary - Strat Balance + Uranium", - "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", - "Strategic Balance With Coal", - "Strategic Balance With Aluminum", - "Strategic Balance With Coal & Aluminum", - "Strategic Balance With Coal & Aluminum & Uran", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 7, - SortPriority = -95, + { + Name = "Start Quality", -- (5) add resources defaults to random + Values = { + "Legendary Start - Strat Balance", + "Legendary - Strat Balance + Uranium", + "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", + "Strategic Balance With Coal", + "Strategic Balance With Aluminum", + "Strategic Balance With Coal & Aluminum", + "Strategic Balance With Coal & Aluminum & Uran", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 7, + SortPriority = -95, + }, - { - Name = "Start Distance", -- 6 add resources defaults to random - Values = { - "Close", - "Normal", - "Far - Warning: May sometimes crash during map generation", - }, - DefaultValue = 2, - SortPriority = -94, + { + Name = "Start Distance", -- 6 add resources defaults to random + Values = { + "Close", + "Normal", + "Far - Warning: May sometimes crash during map generation", }, + DefaultValue = 2, + SortPriority = -94, + }, - { - Name = "Natural Wonders", -- 7 number of natural wonders to spawn - Values = { - "0", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "Random", - "Default", - }, - DefaultValue = 15, - SortPriority = -93, + { + Name = "Natural Wonders", -- 7 number of natural wonders to spawn + Values = { + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "Random", + "Default", }, + DefaultValue = 15, + SortPriority = -93, + }, - { - Name = "Grass Moisture", -- add setting for grassland mositure (8) - Values = { - "Wet", - "Normal", - "Dry", - }, - - DefaultValue = 2, - SortPriority = -92, + { + Name = "Grass Moisture", -- add setting for grassland mositure (8) + Values = { + "Wet", + "Normal", + "Dry", }, - { - Name = "Rivers", -- add setting for rivers (9) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -92, + }, - DefaultValue = 2, - SortPriority = -91, + { + Name = "Rivers", -- add setting for rivers (9) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Tundra Size", -- add setting for tundra (10) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -91, + }, - DefaultValue = 2, - SortPriority = -90, + { + Name = "Tundra Size", -- add setting for tundra (10) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Forest Size", -- (11) forestSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -89, + + DefaultValue = 2, + SortPriority = -90, + }, + { + Name = "Forest Size", -- (11) forestSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Jungle Size", -- (12) jungleSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -88, + DefaultValue = 2, + SortPriority = -89, + }, + { + Name = "Jungle Size", -- (12) jungleSize + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -88, + }, - { - Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) - Values = { - "1 -- Nearly Nothing", - "2", - "3", - "4", - "5 -- Default", - "6", - "7", - "8", - "9", - "10 -- Almost no normal tiles left", - }, - - DefaultValue = 5, - SortPriority = -87, + { + Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) + Values = { + "1 -- Nearly Nothing", + "2", + "3", + "4", + "5 -- Default", + "6", + "7", + "8", + "9", + "10 -- Almost no normal tiles left", }, - { - Name = "Desert Size", -- (14) desertSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -86, + DefaultValue = 5, + SortPriority = -87, + }, + + { + Name = "Desert Size", -- (14) desertSize + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -86, + }, - { - Name = "Marsh Size", -- (15) marshSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -85, + { + Name = "Marsh Size", -- (15) marshSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Map Dimensions", -- (16) mapSize - Values = { - "Cage", - "Standard", - "Big", - "Random", - }, - DefaultValue = 2, - SortPriority = -100, + DefaultValue = 2, + SortPriority = -85, + }, + { + Name = "Map Dimensions", -- (16) mapSize + Values = { + "Cage", + "Standard", + "Big", + "Random", }, + DefaultValue = 2, + SortPriority = -100, + }, + } + opt["Tech Speed"] = { + Name = Locale.ConvertTextKey("TXT_KEY_MAP_OPTION_TECH_SPEED_ID"), + Values = { + "Online", + "Quick", + "Fair", + "Standard", + "Optimal", + "Epic", + "Marathon", }, + DefaultValue = 4, + SortPriority = -101, + } + + return { + Name = "Lekmap: Tiny Islands (v3.6)", + Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Tiny Islands", + IsAdvancedMap = false, + IconIndex = 17, + SortIndex = 2, + SupportsMultiplayer = true, + CustomOptions = opt }; end ------------------------------------------------------------------------------ diff --git a/LoveMapArchipelagov3.0.lua b/LoveMapArchipelagov3.0.lua index afb1a20..0d8f532 100644 --- a/LoveMapArchipelagov3.0.lua +++ b/LoveMapArchipelagov3.0.lua @@ -7,210 +7,226 @@ include("MultilayeredFractal"); ------------------------------------------------------------------------------ function GetMapScriptInfo() - return { - Name = "LoveMap: Archipelago (v3.6)", - Description = "TXT_KEY_MAP_ARCHIPELAGO_HELP", - IconIndex = 2, --Archipelago Icon - SupportsMultiplayer = true, - CustomOptions = { - { - Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 1 add temperature defaults to random - Values = { - "TXT_KEY_MAP_OPTION_COOL", - "TXT_KEY_MAP_OPTION_TEMPERATE", - "TXT_KEY_MAP_OPTION_HOT", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -97, + local opt = { + { + Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 1 add temperature defaults to random + Values = { + "TXT_KEY_MAP_OPTION_COOL", + "TXT_KEY_MAP_OPTION_TEMPERATE", + "TXT_KEY_MAP_OPTION_HOT", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -97, + }, - { - Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 2 add rainfall defaults to random - Values = { - "TXT_KEY_MAP_OPTION_ARID", - "TXT_KEY_MAP_OPTION_NORMAL", - "TXT_KEY_MAP_OPTION_WET", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -96, + { + Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 2 add rainfall defaults to random + Values = { + "TXT_KEY_MAP_OPTION_ARID", + "TXT_KEY_MAP_OPTION_NORMAL", + "TXT_KEY_MAP_OPTION_WET", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -96, + }, - { - Name = "Start Locations", -- (3) add resources defaults to random - Values = { - "Legendary Start - Strat Balance", - "Legendary - Strat Balance + Uranium", - "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", - "Strategic Balance With Coal", - "Strategic Balance With Aluminum", - "Strategic Balance With Coal & Aluminum", - "Strategic Balance With Coal & Aluminum & Uran", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 7, - SortPriority = -95, + { + Name = "Start Locations", -- (3) add resources defaults to random + Values = { + "Legendary Start - Strat Balance", + "Legendary - Strat Balance + Uranium", + "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", + "Strategic Balance With Coal", + "Strategic Balance With Aluminum", + "Strategic Balance With Coal & Aluminum", + "Strategic Balance With Coal & Aluminum & Uran", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 7, + SortPriority = -95, + }, - { - Name = "Natural Wonders", -- 4 number of natural wonders to spawn - Values = { - "0", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "Random", - "Default", - }, - DefaultValue = 15, - SortPriority = -94, + { + Name = "Natural Wonders", -- 4 number of natural wonders to spawn + Values = { + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "Random", + "Default", }, + DefaultValue = 15, + SortPriority = -94, + }, - { - Name = "Grass Moisture", -- add setting for grassland mositure (5) - Values = { - "Wet", - "Normal", - "Dry", - }, - - DefaultValue = 2, - SortPriority = -93, + { + Name = "Grass Moisture", -- add setting for grassland mositure (5) + Values = { + "Wet", + "Normal", + "Dry", }, - { - Name = "Islands count", -- add setting for islands (6) - Values = { - "Sparse", - "Average", - "Plentiful", - "Abundant", - }, - - DefaultValue = 2, - SortPriority = -92, + DefaultValue = 2, + SortPriority = -93, + }, + + { + Name = "Islands count", -- add setting for islands (6) + Values = { + "Sparse", + "Average", + "Plentiful", + "Abundant", }, - { - Name = "Forest Size", -- (7) forestSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -91, + DefaultValue = 2, + SortPriority = -92, + }, + + { + Name = "Forest Size", -- (7) forestSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Jungle Size", -- (8) jungleSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -90, + DefaultValue = 2, + SortPriority = -91, + }, + { + Name = "Jungle Size", -- (8) jungleSize + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -90, + }, - { - Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (9) - Values = { - "1 -- Nearly Nothing", - "2", - "3", - "4", - "5 -- Default", - "6", - "7", - "8", - "9", - "10 -- Almost no normal tiles left", - }, - - DefaultValue = 5, - SortPriority = -89, + { + Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (9) + Values = { + "1 -- Nearly Nothing", + "2", + "3", + "4", + "5 -- Default", + "6", + "7", + "8", + "9", + "10 -- Almost no normal tiles left", }, - { - Name = "Islands size", -- chance of land in area of island (10) - Values = { - "small", - "normal", - "big", - "large", - }, - - DefaultValue = 2, - SortPriority = -88, + DefaultValue = 5, + SortPriority = -89, + }, + + { + Name = "Islands size", -- chance of land in area of island (10) + Values = { + "small", + "normal", + "big", + "large", }, - { - Name = "Connected islands", -- overlaping islands (11) - Values = { - "allowed", - "disallowed", - }, + DefaultValue = 2, + SortPriority = -88, + }, - DefaultValue = 2, - SortPriority = -87, - }, - { - Name = "Desert Size", -- (12) desertSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -86, + { + Name = "Connected islands", -- overlaping islands (11) + Values = { + "allowed", + "disallowed", }, - { - Name = "Marsh Size", -- (13) marshSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -85, + DefaultValue = 2, + SortPriority = -87, + }, + { + Name = "Desert Size", -- (12) desertSize + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -86, + }, - { - Name = "Tundra Size", -- add setting for tundra (14) - Values = { - "sparse", - "average", - "plentiful", - }, + { + Name = "Marsh Size", -- (13) marshSize + Values = { + "sparse", + "average", + "plentiful", + }, + DefaultValue = 2, + SortPriority = -85, + }, - DefaultValue = 2, - SortPriority = -84, + { + Name = "Tundra Size", -- add setting for tundra (14) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Map Dimensions", -- (15) mapSize - Values = { - "Cage", - "Standard", - "Big", - "Random", - }, - DefaultValue = 2, - SortPriority = -100, + DefaultValue = 2, + SortPriority = -84, + }, + + { + Name = "Map Dimensions", -- (15) mapSize + Values = { + "Cage", + "Standard", + "Big", + "Random", }, + DefaultValue = 2, + SortPriority = -100, }, } + opt["Tech Speed"] = { + Name = Locale.ConvertTextKey("TXT_KEY_MAP_OPTION_TECH_SPEED_ID"), + Values = { + "Online", + "Quick", + "Fair", + "Standard", + "Optimal", + "Epic", + "Marathon", + }, + DefaultValue = 4, + SortPriority = -101, + } + + return { + Name = "LoveMap: Archipelago (v3.6)", + Description = "TXT_KEY_MAP_ARCHIPELAGO_HELP", + IconIndex = 2, --Archipelago Icon + SupportsMultiplayer = true, + CustomOptions = opt + } end ------------------------------------------------------------------------------ function GetMapInitData(worldSize) diff --git a/LoveMapContinentsv3.0.lua b/LoveMapContinentsv3.0.lua index 1d818c4..5cfe4a1 100644 --- a/LoveMapContinentsv3.0.lua +++ b/LoveMapContinentsv3.0.lua @@ -17,289 +17,304 @@ include("MultilayeredFractal"); ------------------------------------------------------------------------------ function GetMapScriptInfo() local world_age, temperature, rainfall, sea_level, resources = GetCoreMapOptions() - return { - Name = "LoveMaps: Continents (v3.6)", - Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Continents", - IsAdvancedMap = false, - IconIndex = 1, - SortIndex = 2, - SupportsMultiplayer = true, - CustomOptions = { - { - Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 - Values = { - "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", - "No Mountains", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -99, + local opt = { + { + Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 + Values = { + "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", + "No Mountains", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -99, + }, - { - Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random - Values = { - "TXT_KEY_MAP_OPTION_COOL", - "TXT_KEY_MAP_OPTION_TEMPERATE", - "TXT_KEY_MAP_OPTION_HOT", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -98, + { + Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random + Values = { + "TXT_KEY_MAP_OPTION_COOL", + "TXT_KEY_MAP_OPTION_TEMPERATE", + "TXT_KEY_MAP_OPTION_HOT", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -98, + }, - { - Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random - Values = { - "TXT_KEY_MAP_OPTION_ARID", - "TXT_KEY_MAP_OPTION_NORMAL", - "TXT_KEY_MAP_OPTION_WET", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -97, + { + Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random + Values = { + "TXT_KEY_MAP_OPTION_ARID", + "TXT_KEY_MAP_OPTION_NORMAL", + "TXT_KEY_MAP_OPTION_WET", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -97, + }, - { - Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. - Values = { - "TXT_KEY_MAP_OPTION_LOW", - "TXT_KEY_MAP_OPTION_MEDIUM", - "TXT_KEY_MAP_OPTION_HIGH", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -96, + { + Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. + Values = { + "TXT_KEY_MAP_OPTION_LOW", + "TXT_KEY_MAP_OPTION_MEDIUM", + "TXT_KEY_MAP_OPTION_HIGH", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -96, + }, - { - Name = "Start Quality", -- 5 add resources defaults to random - Values = { - "Legendary Start - Strat Balance", - "Legendary - Strat Balance + Uranium", - "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", - "Strategic Balance With Coal", - "Strategic Balance With Aluminum", - "Strategic Balance With Coal & Aluminum", - "Strategic Balance With Coal & Aluminum & Uran", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -95, + { + Name = "Start Quality", -- 5 add resources defaults to random + Values = { + "Legendary Start - Strat Balance", + "Legendary - Strat Balance + Uranium", + "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", + "Strategic Balance With Coal", + "Strategic Balance With Aluminum", + "Strategic Balance With Coal & Aluminum", + "Strategic Balance With Coal & Aluminum & Uran", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -95, + }, - { - Name = "Start Distance", -- 6 add resources defaults to random - Values = { - "Close", - "Normal", - "Far - Warning: May sometimes crash during map generation", - }, - DefaultValue = 2, - SortPriority = -94, + { + Name = "Start Distance", -- 6 add resources defaults to random + Values = { + "Close", + "Normal", + "Far - Warning: May sometimes crash during map generation", }, + DefaultValue = 2, + SortPriority = -94, + }, - { - Name = "Natural Wonders", -- 7 number of natural wonders to spawn - Values = { - "0", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "Random", - "Default", - }, - DefaultValue = 15, - SortPriority = -93, + { + Name = "Natural Wonders", -- 7 number of natural wonders to spawn + Values = { + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "Random", + "Default", }, + DefaultValue = 15, + SortPriority = -93, + }, - { - Name = "Grass Moisture", -- add setting for grassland mositure (8) - Values = { - "Wet", - "Normal", - "Dry", - }, - - DefaultValue = 2, - SortPriority = -92, + { + Name = "Grass Moisture", -- add setting for grassland mositure (8) + Values = { + "Wet", + "Normal", + "Dry", }, - { - Name = "Rivers", -- add setting for rivers (9) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -92, + }, - DefaultValue = 2, - SortPriority = -91, + { + Name = "Rivers", -- add setting for rivers (9) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Tundra Size", -- add setting for tundra (10) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -91, + }, - DefaultValue = 2, - SortPriority = -90, + { + Name = "Tundra Size", -- add setting for tundra (10) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Forest Size", -- (11) forestSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -80, + DefaultValue = 2, + SortPriority = -90, + }, + + { + Name = "Forest Size", -- (11) forestSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Jungle Size", -- (12) jungleSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -79, + DefaultValue = 2, + SortPriority = -80, + }, + { + Name = "Jungle Size", -- (12) jungleSize + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -79, + }, - { - Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) - Values = { - "1 -- Nearly Nothing", - "2", - "3", - "4", - "5 -- Default", - "6", - "7", - "8", - "9", - "10 -- Almost no normal tiles left", - }, - - DefaultValue = 5, - SortPriority = -87, + { + Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) + Values = { + "1 -- Nearly Nothing", + "2", + "3", + "4", + "5 -- Default", + "6", + "7", + "8", + "9", + "10 -- Almost no normal tiles left", }, - { - Name = "Islands", -- add setting for islands (14) - Values = { - "sparse", - "average", - "plentiful", - "abundant", - }, - - DefaultValue = 2, - SortPriority = -86, + DefaultValue = 5, + SortPriority = -87, + }, + + { + Name = "Islands", -- add setting for islands (14) + Values = { + "sparse", + "average", + "plentiful", + "abundant", }, - { - Name = "Coastal Spawns", -- Can inland civ spawn on the coast (15) - Values = { - "Coastal Civs Only", - "Random", - "Random+ (~2 coastals)", - }, + DefaultValue = 2, + SortPriority = -86, + }, - DefaultValue = 1, - SortPriority = -85, + { + Name = "Coastal Spawns", -- Can inland civ spawn on the coast (15) + Values = { + "Coastal Civs Only", + "Random", + "Random+ (~2 coastals)", }, - { - Name = "Coastal Luxes", -- Can coast spawns have non-coastal luxes (16) - Values = { - "Guaranteed", - "Random", - }, + DefaultValue = 1, + SortPriority = -85, + }, - DefaultValue = 1, - SortPriority = -84, + { + Name = "Coastal Luxes", -- Can coast spawns have non-coastal luxes (16) + Values = { + "Guaranteed", + "Random", }, - { - Name = "Inland Sea Spawns", -- Can coastal civ spawn on inland seas (17) - Values = { - "Allowed", - "Not Allowed for Coastal Civs", - }, + DefaultValue = 1, + SortPriority = -84, + }, - DefaultValue = 1, - SortPriority = -83, + { + Name = "Inland Sea Spawns", -- Can coastal civ spawn on inland seas (17) + Values = { + "Allowed", + "Not Allowed for Coastal Civs", }, - { - Name = "Start type", -- add setting for land type (18) - Values = { - "One Continent Challenge", - "regular", - }, + DefaultValue = 1, + SortPriority = -83, + }, - DefaultValue = 2, - SortPriority = -82, + { + Name = "Start type", -- add setting for land type (18) + Values = { + "One Continent Challenge", + "regular", }, - { - Name = "Must be coast", -- (19) force coastal start - Values = { - "Yes", - "No", - }, - DefaultValue = 1, - SortPriority = -81, + DefaultValue = 2, + SortPriority = -82, + }, + + { + Name = "Must be coast", -- (19) force coastal start + Values = { + "Yes", + "No", }, - { - Name = "Desert Size", -- (20) desertSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -80, + DefaultValue = 1, + SortPriority = -81, + }, + { + Name = "Desert Size", -- (20) desertSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Marsh Size", -- (21) marshSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -78, + DefaultValue = 2, + SortPriority = -80, + }, + { + Name = "Marsh Size", -- (21) marshSize + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Map Dimensions", -- (22) mapSize - Values = { - "Cage", - "Standard", - "Big", - "Random", - }, - DefaultValue = 2, - SortPriority = -100, + DefaultValue = 2, + SortPriority = -78, + }, + { + Name = "Map Dimensions", -- (22) mapSize + Values = { + "Cage", + "Standard", + "Big", + "Random", }, - + DefaultValue = 2, + SortPriority = -100, }, + } + opt["Tech Speed"] = { + Name = Locale.ConvertTextKey("TXT_KEY_MAP_OPTION_TECH_SPEED_ID"), + Values = { + "Online", + "Quick", + "Fair", + "Standard", + "Optimal", + "Epic", + "Marathon", + }, + DefaultValue = 4, + SortPriority = -101, + } + + return { + Name = "LoveMaps: Continents (v3.6)", + Description = "A map script made for Lekmod based of HB's Mapscript v8.1. Continents", + IsAdvancedMap = false, + IconIndex = 1, + SortIndex = 2, + SupportsMultiplayer = true, + CustomOptions = opt }; end ------------------------------------------------------------------------------ diff --git a/LoveMapDonutv3.0.lua b/LoveMapDonutv3.0.lua index 0d2617a..67777c7 100644 --- a/LoveMapDonutv3.0.lua +++ b/LoveMapDonutv3.0.lua @@ -17,314 +17,330 @@ include("MultilayeredFractal"); ------------------------------------------------------------------------------ function GetMapScriptInfo() local world_age, temperature, rainfall, sea_level, resources = GetCoreMapOptions() - return { - Name = "LoveMap: Donut (v3.6)", - Description = "TXT_KEY_MAP_DONUT_HELP", - IsAdvancedMap = false, - IconIndex = 18, - SortIndex = 2, - SupportsMultiplayer = true, - CustomOptions = { - { - Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 - Values = { - "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", - "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", - "No Mountains", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -99, + local opt = { + { + Name = "TXT_KEY_MAP_OPTION_WORLD_AGE", -- 1 + Values = { + "TXT_KEY_MAP_OPTION_THREE_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FOUR_BILLION_YEARS", + "TXT_KEY_MAP_OPTION_FIVE_BILLION_YEARS", + "No Mountains", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -99, + }, - { - Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random - Values = { - "TXT_KEY_MAP_OPTION_COOL", - "TXT_KEY_MAP_OPTION_TEMPERATE", - "TXT_KEY_MAP_OPTION_HOT", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -98, + { + Name = "TXT_KEY_MAP_OPTION_TEMPERATURE", -- 2 add temperature defaults to random + Values = { + "TXT_KEY_MAP_OPTION_COOL", + "TXT_KEY_MAP_OPTION_TEMPERATE", + "TXT_KEY_MAP_OPTION_HOT", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -98, + }, - { - Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random - Values = { - "TXT_KEY_MAP_OPTION_ARID", - "TXT_KEY_MAP_OPTION_NORMAL", - "TXT_KEY_MAP_OPTION_WET", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -97, + { + Name = "TXT_KEY_MAP_OPTION_RAINFALL", -- 3 add rainfall defaults to random + Values = { + "TXT_KEY_MAP_OPTION_ARID", + "TXT_KEY_MAP_OPTION_NORMAL", + "TXT_KEY_MAP_OPTION_WET", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -97, + }, - { - Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. - Values = { - "TXT_KEY_MAP_OPTION_LOW", - "TXT_KEY_MAP_OPTION_MEDIUM", - "TXT_KEY_MAP_OPTION_HIGH", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 2, - SortPriority = -96, + { + Name = "TXT_KEY_MAP_OPTION_SEA_LEVEL", -- 4 add sea level defaults to random. + Values = { + "TXT_KEY_MAP_OPTION_LOW", + "TXT_KEY_MAP_OPTION_MEDIUM", + "TXT_KEY_MAP_OPTION_HIGH", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 2, + SortPriority = -96, + }, - { - Name = "Start Quality", -- (5) add resources defaults to random - Values = { - "Legendary Start - Strat Balance", - "Legendary - Strat Balance + Uranium", - "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", - "Strategic Balance With Coal", - "Strategic Balance With Aluminum", - "Strategic Balance With Coal & Aluminum", - "Strategic Balance With Coal & Aluminum & Uran", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 7, - SortPriority = -95, + { + Name = "Start Quality", -- (5) add resources defaults to random + Values = { + "Legendary Start - Strat Balance", + "Legendary - Strat Balance + Uranium", + "TXT_KEY_MAP_OPTION_STRATEGIC_BALANCE", + "Strategic Balance With Coal", + "Strategic Balance With Aluminum", + "Strategic Balance With Coal & Aluminum", + "Strategic Balance With Coal & Aluminum & Uran", + "TXT_KEY_MAP_OPTION_RANDOM", }, + DefaultValue = 7, + SortPriority = -95, + }, - { - Name = "Start Distance", -- 6 add resources defaults to random - Values = { - "Close", - "Normal", - "Far - Warning: May sometimes crash during map generation", - }, - DefaultValue = 2, - SortPriority = -94, + { + Name = "Start Distance", -- 6 add resources defaults to random + Values = { + "Close", + "Normal", + "Far - Warning: May sometimes crash during map generation", }, + DefaultValue = 2, + SortPriority = -94, + }, - { - Name = "Natural Wonders", -- 7 number of natural wonders to spawn - Values = { - "0", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "Random", - "Default", - }, - DefaultValue = 15, - SortPriority = -93, + { + Name = "Natural Wonders", -- 7 number of natural wonders to spawn + Values = { + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "Random", + "Default", }, + DefaultValue = 15, + SortPriority = -93, + }, - { - Name = "Grass Moisture", -- add setting for grassland mositure (8) - Values = { - "Wet", - "Normal", - "Dry", - }, - - DefaultValue = 2, - SortPriority = -92, + { + Name = "Grass Moisture", -- add setting for grassland mositure (8) + Values = { + "Wet", + "Normal", + "Dry", }, - { - Name = "Rivers", -- add setting for rivers (9) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -92, + }, - DefaultValue = 2, - SortPriority = -91, + { + Name = "Rivers", -- add setting for rivers (9) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Tundra Size", -- add setting for tundra (10) - Values = { - "sparse", - "average", - "plentiful", - }, + DefaultValue = 2, + SortPriority = -91, + }, - DefaultValue = 2, - SortPriority = -90, + { + Name = "Tundra Size", -- add setting for tundra (10) + Values = { + "sparse", + "average", + "plentiful", }, - { - Name = "Desert Size", -- (11) desertSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -89, + + DefaultValue = 2, + SortPriority = -90, + }, + { + Name = "Desert Size", -- (11) desertSize + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -89, + }, - { - Name = "Forest Size", -- (12) forestSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -88, + { + Name = "Forest Size", -- (12) forestSize + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -88, + }, - { - Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) - Values = { - "1 -- Nearly Nothing", - "2", - "3", - "4", - "5 -- Default", - "6", - "7", - "8", - "9", - "10 -- Almost no normal tiles left", - }, - - DefaultValue = 5, - SortPriority = -87, + { + Name = "TXT_KEY_MAP_OPTION_RESOURCES", -- add setting for resources (13) + Values = { + "1 -- Nearly Nothing", + "2", + "3", + "4", + "5 -- Default", + "6", + "7", + "8", + "9", + "10 -- Almost no normal tiles left", }, - { - Name = "Coastal Spawns", -- Can inland civ spawn on the coast (14) - Values = { - "Coastal Civs Only", - "Random", - "Random+ (~2 coastals)", - }, + DefaultValue = 5, + SortPriority = -87, + }, - DefaultValue = 1, - SortPriority = -86, + { + Name = "Coastal Spawns", -- Can inland civ spawn on the coast (14) + Values = { + "Coastal Civs Only", + "Random", + "Random+ (~2 coastals)", }, - { - Name = "Coastal Luxes", -- Can coast spawns have non-coastal luxes (15) - Values = { - "Guaranteed", - "Random", - }, + DefaultValue = 1, + SortPriority = -86, + }, - DefaultValue = 1, - SortPriority = -85, + { + Name = "Coastal Luxes", -- Can coast spawns have non-coastal luxes (15) + Values = { + "Guaranteed", + "Random", }, - { - Name = "Inland Sea Spawns", -- Can coastal civ spawn on inland seas (16) - Values = { - "Allowed", - "Not Allowed for Coastal Civs", - }, + DefaultValue = 1, + SortPriority = -85, + }, - DefaultValue = 1, - SortPriority = -84, + { + Name = "Inland Sea Spawns", -- Can coastal civ spawn on inland seas (16) + Values = { + "Allowed", + "Not Allowed for Coastal Civs", }, - { - Name = "Radius Size", -- (17) radiusSize - Values = { - "0 - to the edge", - "1", - "2", - "3", - "4 - default", - }, - DefaultValue = 5, - SortPriority = -83, + + DefaultValue = 1, + SortPriority = -84, + }, + { + Name = "Radius Size", -- (17) radiusSize + Values = { + "0 - to the edge", + "1", + "2", + "3", + "4 - default", }, - { - Name = "Holy Radius Factor", -- (18) holyRadiusFactor - Values = { - "1,5", - "2 - default", - "3", - "4", - }, - DefaultValue = 2, - SortPriority = -82, + DefaultValue = 5, + SortPriority = -83, + }, + { + Name = "Holy Radius Factor", -- (18) holyRadiusFactor + Values = { + "1,5", + "2 - default", + "3", + "4", }, - { - Name = "Outside Region", -- (19) Outside terrain Type - Values = { - "TXT_KEY_MAP_OPTION_HILLS", - "TXT_KEY_MAP_OPTION_MOUNTAINS", - "TXT_KEY_MAP_OPTION_OCEAN", - "TXT_KEY_MAP_OPTION_STANDARD", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 3, - SortPriority = -81, + DefaultValue = 2, + SortPriority = -82, + }, + { + Name = "Outside Region", -- (19) Outside terrain Type + Values = { + "TXT_KEY_MAP_OPTION_HILLS", + "TXT_KEY_MAP_OPTION_MOUNTAINS", + "TXT_KEY_MAP_OPTION_OCEAN", + "TXT_KEY_MAP_OPTION_STANDARD", + "TXT_KEY_MAP_OPTION_RANDOM", }, - { - Name = "TXT_KEY_MAP_OPTION_CENTER_REGION", -- (20) - Values = { - "TXT_KEY_MAP_OPTION_HILLS", - "TXT_KEY_MAP_OPTION_MOUNTAINS", - "TXT_KEY_MAP_OPTION_OCEAN", - "TXT_KEY_MAP_OPTION_DESERT", - "TXT_KEY_MAP_OPTION_STANDARD", - "TXT_KEY_MAP_OPTION_RANDOM", - }, - DefaultValue = 3, - SortPriority = -80, + DefaultValue = 3, + SortPriority = -81, + }, + { + Name = "TXT_KEY_MAP_OPTION_CENTER_REGION", -- (20) + Values = { + "TXT_KEY_MAP_OPTION_HILLS", + "TXT_KEY_MAP_OPTION_MOUNTAINS", + "TXT_KEY_MAP_OPTION_OCEAN", + "TXT_KEY_MAP_OPTION_DESERT", + "TXT_KEY_MAP_OPTION_STANDARD", + "TXT_KEY_MAP_OPTION_RANDOM", }, - { - Name = "Must be coast", -- (21) force coastal start - Values = { - "Yes", - "No", - }, - DefaultValue = 1, - SortPriority = -79, + DefaultValue = 3, + SortPriority = -80, + }, + { + Name = "Must be coast", -- (21) force coastal start + Values = { + "Yes", + "No", }, + DefaultValue = 1, + SortPriority = -79, + }, - { - Name = "Jungle Size", -- (22) jungleSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -78, + { + Name = "Jungle Size", -- (22) jungleSize + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -78, + }, - { - Name = "Marsh Size", -- (23) marshSize - Values = { - "sparse", - "average", - "plentiful", - }, - DefaultValue = 2, - SortPriority = -77, + { + Name = "Marsh Size", -- (23) marshSize + Values = { + "sparse", + "average", + "plentiful", }, + DefaultValue = 2, + SortPriority = -77, + }, - { - Name = "Map Dimensions", -- (24) mapSize - Values = { - "Cage", - "Standard", - "Big", - "Random", - }, - DefaultValue = 2, - SortPriority = -100, + { + Name = "Map Dimensions", -- (24) mapSize + Values = { + "Cage", + "Standard", + "Big", + "Random", }, + DefaultValue = 2, + SortPriority = -100, }, + } + opt["Tech Speed"] = { + Name = Locale.ConvertTextKey("TXT_KEY_MAP_OPTION_TECH_SPEED_ID"), + Values = { + "Online", + "Quick", + "Fair", + "Standard", + "Optimal", + "Epic", + "Marathon", + }, + DefaultValue = 4, + SortPriority = -101, + } + + return { + Name = "LoveMap: Donut (v3.6)", + Description = "TXT_KEY_MAP_DONUT_HELP", + IsAdvancedMap = false, + IconIndex = 18, + SortIndex = 2, + SupportsMultiplayer = true, + CustomOptions = opt }; end ------------------------------------------------------------------------------