diff --git a/configuration.default b/configuration.default index 4f93ac4e..3ef09c10 100644 --- a/configuration.default +++ b/configuration.default @@ -2,10 +2,13 @@ # NOTE: the 'templates' section is now found in the templates.txt (and can be safely customized using custom-templates.txt) # NOTE: the 'worlds' section is now found in the worlds.txt (example custom settings can be found in worlds.txt.sample) -# To use the HDMap map templates as world defaults (normal-HDMap, nether-HDMap and skylands-HDMap), uncomment the following line -# Otherwise, the world defaults will be based on classic templates (normal, nether, skylands) +# To use the HDMap low-res map templates as world defaults (normal-lowres, nether-lowres and skylands-lowres), uncomment the following line +#deftemplatesuffix: lowres +# To use the HDMap hi-res map templates (these can take a VERY long time for initial fullrender), comment the following line +#deftemplatesuffix: hires +# Otherwise, the world defaults will be based on classic FlatMap/KzedMap templates (normal, nether, skylands) + # Other values will search for templates named normal-, nether-, skylands- -#deftemplatesuffix: HDMap components: - class: org.dynmap.ClientConfigurationComponent diff --git a/src/main/assembly/package.xml b/src/main/assembly/package.xml index 6b31b3f1..f1accf0b 100644 --- a/src/main/assembly/package.xml +++ b/src/main/assembly/package.xml @@ -31,13 +31,15 @@ shaders.txt perspectives.txt lightings.txt - templates.txt models.txt texture.txt worlds.txt.sample ${project.basedir}/texturepacks /dynmap/texturepacks + + ${project.basedir}/templates + /dynmap/templates diff --git a/src/main/java/org/dynmap/DynmapPlugin.java b/src/main/java/org/dynmap/DynmapPlugin.java index 6bd163d7..c3c6b598 100644 --- a/src/main/java/org/dynmap/DynmapPlugin.java +++ b/src/main/java/org/dynmap/DynmapPlugin.java @@ -131,6 +131,37 @@ public class DynmapPlugin extends JavaPlugin { } } + private static final String CUSTOM_PREFIX = "custom-"; + /* Load templates from template folder */ + private void loadTemplates() { + File templatedir = new File(dataDirectory, "templates"); + String[] templates = templatedir.list(); + /* Go through list - process all ones not starting with 'custom' first */ + for(String tname: templates) { + /* If matches naming convention */ + if(tname.endsWith(".txt") && (!tname.startsWith(CUSTOM_PREFIX))) { + File tf = new File(templatedir, tname); + org.bukkit.util.config.Configuration cfg = new org.bukkit.util.config.Configuration(tf); + cfg.load(); + ConfigurationNode cn = new ConfigurationNode(cfg); + /* Supplement existing values (don't replace), since configuration.txt is more custom than these */ + mergeConfigurationBranch(cn, "templates", false, false); + } + } + /* Go through list again - this time do custom- ones */ + for(String tname: templates) { + /* If matches naming convention */ + if(tname.endsWith(".txt") && tname.startsWith(CUSTOM_PREFIX)) { + File tf = new File(templatedir, tname); + org.bukkit.util.config.Configuration cfg = new org.bukkit.util.config.Configuration(tf); + cfg.load(); + ConfigurationNode cn = new ConfigurationNode(cfg); + /* This are overrides - replace even configuration.txt content */ + mergeConfigurationBranch(cn, "templates", true, false); + } + } + } + @Override public void onEnable() { permissions = NijikokunPermissions.create(getServer(), "dynmap"); @@ -187,33 +218,9 @@ public class DynmapPlugin extends JavaPlugin { } } - /* Now, process templates.txt - supplement existing values (don't replace), since configuration.txt is more custom than these */ - f = new File(this.getDataFolder(), "templates.txt"); - if(f.exists()) { - org.bukkit.util.config.Configuration cfg = new org.bukkit.util.config.Configuration(f); - cfg.load(); - ConfigurationNode cn = new ConfigurationNode(cfg); - mergeConfigurationBranch(cn, "templates", false, false); - } + /* Now, process templates */ + loadTemplates(); - /* Now, process custom-templates.txt - these are user supplied, so override anything matcing */ - f = new File(this.getDataFolder(), "custom-templates.txt"); - if(f.exists()) { - org.bukkit.util.config.Configuration cfg = new org.bukkit.util.config.Configuration(f); - cfg.load(); - ConfigurationNode cn = new ConfigurationNode(cfg); - mergeConfigurationBranch(cn, "templates", true, false); - } - else { - try { - FileWriter fw = new FileWriter(f); - fw.write("# This file is intended to allow the user to define templates, including replacements for standard templates\n"); - fw.write("# Dynmap's install will not overwrite it\n"); - fw.write("templates:\n"); - fw.close(); - } catch (IOException iox) { - } - } Log.verbose = configuration.getBoolean("verbose", true); deftemplatesuffix = configuration.getString("deftemplatesuffix", ""); diff --git a/templates.txt b/templates.txt deleted file mode 100644 index b777baad..00000000 --- a/templates.txt +++ /dev/null @@ -1,310 +0,0 @@ -# templates provide default definitions for worlds that are not otherwise defined in the worlds.txt. Unless otherwise -# configured, worlds will default to the template corresponding to their environment (normal, nether, skylands). Use of the -# 'deftemplatesuffix' setting in configuration.txt can alter this by appending a dash and a suffix string to the template name -# used by default (for example deftemplatesuffix=HDMap implies default template names of normal-HDMap, nether-HDMap, skylands-HDMap. -# -# NOTE: -# templates.txt is updated frequently: if you wish to customize some or all of the templates, or define your own, place -# the templates you wish to modify in the custom-templates.txt file - these will be preserved, and will override those found -# in templates.txt -templates: - # Template for normal world (classic render) - normal: - enabled: true - # # If bigworld set to true, use alternate directory layout better suited to large worlds - # bigworld: true - # # Number of extra zoom-out levels for world (each level is twice as big as the previous one) - # extrazoomout: 3 - center: - x: 0 - y: 64 - z: 0 - maps: - - class: org.dynmap.flat.FlatMap - name: flat - title: "Flat" - prefix: flat - colorscheme: default - # The textured setting makes the flat render toning much more consistent with the other maps: set to 'none' for the original flat texture, 'smooth' for blended tile top colors, 'dither' for dither pattern - textured: smooth - # # To render a world as a "night view", set shadowstrength and ambientlight - # shadowstrength: 1.0 - # ambientlight: 4 - # # To render both night and day versions of tiles (when ambientlight is set), set true - # night-and-day: true - # # Option to turn on transparency support (off by default) - slows render - # transparency: true - # # Background color for map during the day - # backgroundday: "#153E7E" - # # Background color for map during the night - # backgroundnight: "#000000" - # # Background color for map (independent of night/day) - # background: "#000000" - # # Adjust extra zoom in levels - default is 3 - # mapzoomin: 3 - - class: org.dynmap.kzedmap.KzedMap - renderers: - - class: org.dynmap.kzedmap.DefaultTileRenderer - name: surface - title: "Surface" - prefix: t - maximumheight: 127 - colorscheme: default - # # Add shadows to world (based on top-down shadows from chunk data) - # shadowstrength: 1.0 - # # To render a world as a "night view", set shadowstrength and ambientlight - # ambientlight: 4 - # # To render both night and day versions of tiles (when ambientlight is set), set true - # night-and-day: true - # # Option to turn off transparency support (on by default) - speeds render - # transparency: false - # # Background color for map during the day - # backgroundday: "#153E7E" - # # Background color for map during the night - # backgroundnight: "#000000" - # # Background color for map (independent of night/day) - # background: "#000000" - # # Sets the icon to 'images/block_custom.png' - # icon: custom - # # Adjust extra zoom in levels - default is 3 - # mapzoomin: 3 - # # Biome-based mapping - # - class: org.dynmap.kzedmap.DefaultTileRenderer - # name: biome - # title: "Biome" - # prefix: b - # maximumheight: 127 - # colorscheme: default - # # Biome-based coloring : biome=biome type, temperature=biome-temperature, rainfall=biome-rainfall - # biomecolored: biome - # - class: org.dynmap.kzedmap.HighlightTileRenderer - # prefix: ht - # maximumheight: 127 - # colorscheme: default - # highlight: # For highlighting multiple block-types. - # - 56 # Highlight diamond-ore - # - 66 # Highlight minecart track - # highlight: 56 # For highlighting a single block-type. - - class: org.dynmap.kzedmap.CaveTileRenderer - name: cave - title: "Cave" - prefix: ct - maximumheight: 127 - # Nether world template (classic render) - nether: - enabled: true - # # If bigworld set to true, use alternate directory layout better suited to large worlds - # bigworld: true - # # Number of extra zoom-out levels for world (each level is twice as big as the previous one) - # extrazoomout: 3 - center: - x: 0 - y: 64 - z: 0 - maps: - - class: org.dynmap.flat.FlatMap - name: flat - title: "Flat" - prefix: flat - colorscheme: default - # Map background color (day or night) - background: "#300806" - # The textured setting makes the flat render toning much more consistent with the other maps: set to 'none' for the original flat texture, 'smooth' for blended tile top colors, 'dither' for dither pattern - textured: smooth - - class: org.dynmap.kzedmap.KzedMap - renderers: - - class: org.dynmap.kzedmap.DefaultTileRenderer - name: nether - title: "Surface" - prefix: nt - maximumheight: 127 - colorscheme: default - # Map background color (day or night) - background: "#300806" - # Skylands world template (classic render) - skylands: - enabled: true - # # If bigworld set to true, use alternate directory layout better suited to large worlds - # bigworld: true - # # Number of extra zoom-out levels for world (each level is twice as big as the previous one) - # extrazoomout: 3 - center: - x: 0 - y: 64 - z: 0 - maps: - - class: org.dynmap.flat.FlatMap - name: flat - title: "Flat" - prefix: flat - colorscheme: default - # Background color for map during the day - backgroundday: "#153E7E" - # Background color for map during the night - backgroundnight: "#000000" - # The textured setting makes the flat render toning much more consistent with the other maps: set to 'none' for the original flat texture, 'smooth' for blended tile top colors, 'dither' for dither pattern - textured: smooth - - class: org.dynmap.kzedmap.KzedMap - renderers: - - class: org.dynmap.kzedmap.DefaultTileRenderer - name: skylands - title: "Surface" - prefix: st - maximumheight: 127 - colorscheme: default - # Background color for map during the day - backgroundday: "#153E7E" - # Background color for map during the night - backgroundnight: "#000000" - night-and-day: true - shadowstrength: 1.0 - ambientlight: 4 - - # Template for normal world (HDMap) - normal-HDMap: - enabled: true - # # If bigworld set to true, use alternate directory layout better suited to large worlds - # bigworld: true - # # Number of extra zoom-out levels for world (each level is twice as big as the previous one) - # extrazoomout: 3 - center: - x: 0 - y: 64 - z: 0 - maps: - - class: org.dynmap.hdmap.HDMap - name: flat - title: "Flat" - prefix: flat - perspective: iso_S_90_lowres - shader: stdtexture - lighting: default - # # To render a world as a "night view", switch to lighting: night - # lighting: night - # # To render both night and day versions of tiles, set light: nightandday - # lighting: nightandday - # # Background color for map during the day - # backgroundday: "#153E7E" - # # Background color for map during the night - # backgroundnight: "#000000" - # # Background color for map (independent of night/day) - # background: "#000000" - # Adjust extra zoom in levels - default is 2 - mapzoomin: 2 - - class: org.dynmap.hdmap.HDMap - name: surface - title: "Surface" - prefix: t - perspective: iso_SE_60_lowres - shader: stdtexture - lighting: default - # # Add shadows to world (based on top-down shadows from chunk data) - # lighting: shadows - # # To render a world as a "night view", set lighting: night - # lighting: night - # # To render both night and day versions of tiles, set lighting: nightandday - # lighting: nightandday - # # Background color for map during the day - # backgroundday: "#153E7E" - # # Background color for map during the night - # backgroundnight: "#000000" - # # Background color for map (independent of night/day) - # background: "#000000" - # # Sets the icon to 'images/block_custom.png' - # icon: custom - # Adjust extra zoom in levels - default is 2 - mapzoomin: 2 - # # Biome-based mapping - # - class: org.dynmap.hdmap.HDMap - # name: biome - # title: "Biome" - # prefix: b - # perspective: iso_SE_60_lowres - # lighting: default - # # Biome-based shading : biome=biome type, temperature=biome-temperature, rainfall=biome-rainfall - # shader: biome - # # Adjust extra zoom in levels - default is 2 - # mapzoomin: 2 - - class: org.dynmap.hdmap.HDMap - name: cave - title: "Cave" - prefix: ct - perspective: iso_SE_60_lowres - shader: cave - lighting: default - # Adjust extra zoom in levels - default is 2 - mapzoomin: 2 - - # Nether world template (HDMap) - nether-HDMap: - enabled: true - # # If bigworld set to true, use alternate directory layout better suited to large worlds - # bigworld: true - # # Number of extra zoom-out levels for world (each level is twice as big as the previous one) - # extrazoomout: 3 - center: - x: 0 - y: 64 - z: 0 - maps: - - class: org.dynmap.hdmap.HDMap - name: flat - title: "Flat" - prefix: flat - perspective: iso_S_90_lowres - shader: stdtexture - lighting: default - # Map background color (day or night) - background: "#300806" - # Adjust extra zoom in levels - default is 2 - mapzoomin: 2 - - class: org.dynmap.hdmap.HDMap - name: nether - title: "Surface" - prefix: nt - perspective: iso_SE_60_lowres - shader: stdtexture - lighting: default - # Map background color (day or night) - background: "#300806" - # Adjust extra zoom in levels - default is 2 - mapzoomin: 2 - # Skylands world template (HDMap) - skylands-HDMap: - enabled: true - # # If bigworld set to true, use alternate directory layout better suited to large worlds - # bigworld: true - # # Number of extra zoom-out levels for world (each level is twice as big as the previous one) - # extrazoomout: 3 - center: - x: 0 - y: 64 - z: 0 - maps: - - class: org.dynmap.hdmap.HDMap - name: flat - title: "Flat" - prefix: flat - perspective: iso_S_90_lowres - shader: stdtexture - lighting: default - # Background color for map during the day - backgroundday: "#153E7E" - # Background color for map during the night - backgroundnight: "#000000" - # Adjust extra zoom in levels - default is 2 - mapzoomin: 2 - - class: org.dynmap.hdmap.HDMap - name: skylands - title: "Surface" - prefix: st - perspective: iso_SE_60_lowres - shader: stdtexture - lighting: nightandday - # Background color for map during the day - backgroundday: "#153E7E" - # Background color for map during the night - backgroundnight: "#000000" - # Adjust extra zoom in levels - default is 2 - mapzoomin: 2 - \ No newline at end of file diff --git a/templates/nether-hires.txt b/templates/nether-hires.txt new file mode 100644 index 00000000..1d1b6327 --- /dev/null +++ b/templates/nether-hires.txt @@ -0,0 +1,39 @@ +# +# Default template for "Nether" environment worlds (deftemplatesuffix="hires") +# Uses the HDMap renderer with view from the SE with the "hires" resolution (16 pixels per block edge) +# +# To customize without losing updates during upgrade, rename file to 'custom-nether-hires.txt' +# +templates: + # Nether world template (HDMap hires) + nether-hires: + enabled: true + # Number of extra zoom-out levels for world (each level is twice as big as the previous one) + extrazoomout: 2 + center: + x: 0 + y: 64 + z: 0 + maps: + - class: org.dynmap.hdmap.HDMap + name: flat + title: "Flat" + prefix: flat + perspective: iso_S_90_hires + shader: stdtexture + lighting: default + # Map background color (day or night) + background: "#300806" + # Adjust extra zoom in levels - default is 2 + mapzoomin: 2 + - class: org.dynmap.hdmap.HDMap + name: nether + title: "Surface" + prefix: nt + perspective: iso_SE_60_hires + shader: stdtexture + lighting: shadows + # Map background color (day or night) + background: "#300806" + # Adjust extra zoom in levels - default is 2 + mapzoomin: 2 diff --git a/templates/nether-lowres.txt b/templates/nether-lowres.txt new file mode 100644 index 00000000..da5924ba --- /dev/null +++ b/templates/nether-lowres.txt @@ -0,0 +1,39 @@ +# +# Default template for "Nether" environment worlds (deftemplatesuffix="lowres") +# Uses the HDMap renderer with view from the SE with the "lowres" resolution (4 pixels per block edge) +# +# To customize without losing updates during upgrade, rename file to 'custom-nether-lowres.txt' +# +templates: + # Nether world template (HDMap lowres) + nether-lowres: + enabled: true + # # Number of extra zoom-out levels for world (each level is twice as big as the previous one) + # extrazoomout: 3 + center: + x: 0 + y: 64 + z: 0 + maps: + - class: org.dynmap.hdmap.HDMap + name: flat + title: "Flat" + prefix: flat + perspective: iso_S_90_lowres + shader: stdtexture + lighting: default + # Map background color (day or night) + background: "#300806" + # Adjust extra zoom in levels - default is 2 + mapzoomin: 2 + - class: org.dynmap.hdmap.HDMap + name: nether + title: "Surface" + prefix: nt + perspective: iso_SE_60_lowres + shader: stdtexture + lighting: default + # Map background color (day or night) + background: "#300806" + # Adjust extra zoom in levels - default is 2 + mapzoomin: 2 diff --git a/templates/nether.txt b/templates/nether.txt new file mode 100644 index 00000000..de315546 --- /dev/null +++ b/templates/nether.txt @@ -0,0 +1,36 @@ +# +# Default template for "Nether" environment worlds (deftemplatesuffix="") +# To customize without losing updates during upgrade, rename file to 'custom-nether.txt' +# +templates: + # Nether world template (classic render) + nether: + enabled: true + # # If bigworld set to true, use alternate directory layout better suited to large worlds + # bigworld: true + # # Number of extra zoom-out levels for world (each level is twice as big as the previous one) + # extrazoomout: 3 + center: + x: 0 + y: 64 + z: 0 + maps: + - class: org.dynmap.flat.FlatMap + name: flat + title: "Flat" + prefix: flat + colorscheme: default + # Map background color (day or night) + background: "#300806" + # The textured setting makes the flat render toning much more consistent with the other maps: set to 'none' for the original flat texture, 'smooth' for blended tile top colors, 'dither' for dither pattern + textured: smooth + - class: org.dynmap.kzedmap.KzedMap + renderers: + - class: org.dynmap.kzedmap.DefaultTileRenderer + name: nether + title: "Surface" + prefix: nt + maximumheight: 127 + colorscheme: default + # Map background color (day or night) + background: "#300806" diff --git a/templates/normal-hires.txt b/templates/normal-hires.txt new file mode 100644 index 00000000..1787c5ca --- /dev/null +++ b/templates/normal-hires.txt @@ -0,0 +1,44 @@ +# +# Default template for "Normal" environment worlds (deftemplatesuffix="lhires") +# Uses the HDMap renderer with view from the SE with the "hires" resolution (16 pixels per block edge) +# +# To customize without losing updates during upgrade, rename file to 'custom-normal-lowres.txt' +# +templates: + # Template for normal world (HDMap hires) + normal-hires: + enabled: true + # Number of extra zoom-out levels for world (each level is twice as big as the previous one) + extrazoomout: 2 + center: + x: 0 + y: 64 + z: 0 + maps: + - class: org.dynmap.hdmap.HDMap + name: flat + title: "Flat" + prefix: flat + perspective: iso_S_90_hires + shader: stdtexture + lighting: default + # Adjust extra zoom in levels - default is 2 + mapzoomin: 2 + - class: org.dynmap.hdmap.HDMap + name: surface + title: "Surface" + prefix: t + perspective: iso_SE_60_hires + shader: stdtexture + lighting: shadows + # Adjust extra zoom in levels - default is 2 + mapzoomin: 2 + - class: org.dynmap.hdmap.HDMap + name: cave + title: "Cave" + prefix: ct + perspective: iso_SE_60_lowres + shader: cave + lighting: default + # Adjust extra zoom in levels - make it 4 to match number of levels for surface map + mapzoomin: 4 diff --git a/templates/normal-lowres.txt b/templates/normal-lowres.txt new file mode 100644 index 00000000..0847e168 --- /dev/null +++ b/templates/normal-lowres.txt @@ -0,0 +1,44 @@ +# +# Default template for "Normal" environment worlds (deftemplatesuffix="lowres") +# Uses the HDMap renderer with view from the SE with the "lowres" resolution (4 pixels per block edge) +# +# To customize without losing updates during upgrade, rename file to 'custom-normal-lowres.txt' +# +templates: + # Template for normal world (HDMap lowres) + normal-lowres: + enabled: true + # Number of extra zoom-out levels for world (each level is twice as big as the previous one) + extrazoomout: 2 + center: + x: 0 + y: 64 + z: 0 + maps: + - class: org.dynmap.hdmap.HDMap + name: flat + title: "Flat" + prefix: flat + perspective: iso_S_90_lowres + shader: stdtexture + lighting: default + # Adjust extra zoom in levels - default is 2 + mapzoomin: 2 + - class: org.dynmap.hdmap.HDMap + name: surface + title: "Surface" + prefix: t + perspective: iso_SE_60_lowres + shader: stdtexture + lighting: default + # Adjust extra zoom in levels - default is 2 + mapzoomin: 2 + - class: org.dynmap.hdmap.HDMap + name: cave + title: "Cave" + prefix: ct + perspective: iso_SE_60_lowres + shader: cave + lighting: default + # Adjust extra zoom in levels - default is 2 + mapzoomin: 2 diff --git a/templates/normal.txt b/templates/normal.txt new file mode 100644 index 00000000..e2f2b058 --- /dev/null +++ b/templates/normal.txt @@ -0,0 +1,87 @@ +# +# Default template for "Normal" environment worlds (deftemplatesuffix="") +# To customize without losing updates during upgrade, rename file to 'custom-normal.txt' +# +templates: + # Template for normal world (classic render) + normal: + enabled: true + # # If bigworld set to true, use alternate directory layout better suited to large worlds + # bigworld: true + # # Number of extra zoom-out levels for world (each level is twice as big as the previous one) + # extrazoomout: 3 + center: + x: 0 + y: 64 + z: 0 + maps: + - class: org.dynmap.flat.FlatMap + name: flat + title: "Flat" + prefix: flat + colorscheme: default + # The textured setting makes the flat render toning much more consistent with the other maps: set to 'none' for the original flat texture, 'smooth' for blended tile top colors, 'dither' for dither pattern + textured: smooth + # # To render a world as a "night view", set shadowstrength and ambientlight + # shadowstrength: 1.0 + # ambientlight: 4 + # # To render both night and day versions of tiles (when ambientlight is set), set true + # night-and-day: true + # # Option to turn on transparency support (off by default) - slows render + # transparency: true + # # Background color for map during the day + # backgroundday: "#153E7E" + # # Background color for map during the night + # backgroundnight: "#000000" + # # Background color for map (independent of night/day) + # background: "#000000" + # # Adjust extra zoom in levels - default is 3 + # mapzoomin: 3 + - class: org.dynmap.kzedmap.KzedMap + renderers: + - class: org.dynmap.kzedmap.DefaultTileRenderer + name: surface + title: "Surface" + prefix: t + maximumheight: 127 + colorscheme: default + # # Add shadows to world (based on top-down shadows from chunk data) + # shadowstrength: 1.0 + # # To render a world as a "night view", set shadowstrength and ambientlight + # ambientlight: 4 + # # To render both night and day versions of tiles (when ambientlight is set), set true + # night-and-day: true + # # Option to turn off transparency support (on by default) - speeds render + # transparency: false + # # Background color for map during the day + # backgroundday: "#153E7E" + # # Background color for map during the night + # backgroundnight: "#000000" + # # Background color for map (independent of night/day) + # background: "#000000" + # # Sets the icon to 'images/block_custom.png' + # icon: custom + # # Adjust extra zoom in levels - default is 3 + # mapzoomin: 3 + # # Biome-based mapping + # - class: org.dynmap.kzedmap.DefaultTileRenderer + # name: biome + # title: "Biome" + # prefix: b + # maximumheight: 127 + # colorscheme: default + # # Biome-based coloring : biome=biome type, temperature=biome-temperature, rainfall=biome-rainfall + # biomecolored: biome + # - class: org.dynmap.kzedmap.HighlightTileRenderer + # prefix: ht + # maximumheight: 127 + # colorscheme: default + # highlight: # For highlighting multiple block-types. + # - 56 # Highlight diamond-ore + # - 66 # Highlight minecart track + # highlight: 56 # For highlighting a single block-type. + - class: org.dynmap.kzedmap.CaveTileRenderer + name: cave + title: "Cave" + prefix: ct + maximumheight: 127 diff --git a/templates/skylands-hires.txt b/templates/skylands-hires.txt new file mode 100644 index 00000000..fce478a1 --- /dev/null +++ b/templates/skylands-hires.txt @@ -0,0 +1,44 @@ +# +# Default template for "Skylands" environment worlds (deftemplatesuffix="hires") +# Uses the HDMap renderer with view from the SE with the "hires" resolution (16 pixels per block edge) +# +# To customize without losing updates during upgrade, rename file to 'custom-skylands-hires.txt' +# +templates: + # Skylands world template (HDMap hires) + skylands-hires: + enabled: true + # Number of extra zoom-out levels for world (each level is twice as big as the previous one) + extrazoomout: 2 + center: + x: 0 + y: 64 + z: 0 + maps: + - class: org.dynmap.hdmap.HDMap + name: flat + title: "Flat" + prefix: flat + perspective: iso_S_90_hires + shader: stdtexture + lighting: default + # Background color for map during the day + backgroundday: "#153E7E" + # Background color for map during the night + backgroundnight: "#000000" + # Adjust extra zoom in levels - default is 2 + mapzoomin: 2 + - class: org.dynmap.hdmap.HDMap + name: skylands + title: "Surface" + prefix: st + perspective: iso_SE_60_hires + shader: stdtexture + lighting: shadows + # Background color for map during the day + backgroundday: "#153E7E" + # Background color for map during the night + backgroundnight: "#000000" + # Adjust extra zoom in levels - default is 2 + mapzoomin: 2 + \ No newline at end of file diff --git a/templates/skylands-lowres.txt b/templates/skylands-lowres.txt new file mode 100644 index 00000000..f326e9d0 --- /dev/null +++ b/templates/skylands-lowres.txt @@ -0,0 +1,44 @@ +# +# Default template for "Skylands" environment worlds (deftemplatesuffix="lowres") +# Uses the HDMap renderer with view from the SE with the "lowres" resolution (4 pixels per block edge) +# +# To customize without losing updates during upgrade, rename file to 'custom-skylands-lowres.txt' +# +templates: + # Skylands world template (HDMap lowres) + skylands-lowres: + enabled: true + # Number of extra zoom-out levels for world (each level is twice as big as the previous one) + extrazoomout: 2 + center: + x: 0 + y: 64 + z: 0 + maps: + - class: org.dynmap.hdmap.HDMap + name: flat + title: "Flat" + prefix: flat + perspective: iso_S_90_lowres + shader: stdtexture + lighting: default + # Background color for map during the day + backgroundday: "#153E7E" + # Background color for map during the night + backgroundnight: "#000000" + # Adjust extra zoom in levels - default is 2 + mapzoomin: 2 + - class: org.dynmap.hdmap.HDMap + name: skylands + title: "Surface" + prefix: st + perspective: iso_SE_60_lowres + shader: stdtexture + lighting: shadows + # Background color for map during the day + backgroundday: "#153E7E" + # Background color for map during the night + backgroundnight: "#000000" + # Adjust extra zoom in levels - default is 2 + mapzoomin: 2 + \ No newline at end of file diff --git a/templates/skylands.txt b/templates/skylands.txt new file mode 100644 index 00000000..b3d8e657 --- /dev/null +++ b/templates/skylands.txt @@ -0,0 +1,43 @@ +# +# Default template for "Skylands" environment worlds (deftemplatesuffix="") +# To customize without losing updates during upgrade, rename file to 'custom-skylands.txt' +# +templates: + # Skylands world template (classic render) + skylands: + enabled: true + # # If bigworld set to true, use alternate directory layout better suited to large worlds + # bigworld: true + # # Number of extra zoom-out levels for world (each level is twice as big as the previous one) + # extrazoomout: 3 + center: + x: 0 + y: 64 + z: 0 + maps: + - class: org.dynmap.flat.FlatMap + name: flat + title: "Flat" + prefix: flat + colorscheme: default + # Background color for map during the day + backgroundday: "#153E7E" + # Background color for map during the night + backgroundnight: "#000000" + # The textured setting makes the flat render toning much more consistent with the other maps: set to 'none' for the original flat texture, 'smooth' for blended tile top colors, 'dither' for dither pattern + textured: smooth + - class: org.dynmap.kzedmap.KzedMap + renderers: + - class: org.dynmap.kzedmap.DefaultTileRenderer + name: skylands + title: "Surface" + prefix: st + maximumheight: 127 + colorscheme: default + # Background color for map during the day + backgroundday: "#153E7E" + # Background color for map during the night + backgroundnight: "#000000" + night-and-day: true + shadowstrength: 1.0 + ambientlight: 4