Ancient Warfare 2

Ancient Warfare 2

6M Downloads

Add AW 'town' creation to template system

shadowmage45 opened this issue ยท 0 comments

commented

Add additional configs to generate 'towns' from multiple structure templates and settings denoted by a 'town template'.

These town-templates will be designed to be easily written/filled out, as they are intended to be written by hand (i.e. there will be no in-game GUI based config for these). A default (blank) template should be included/posted for a 'fill-in-the-blanks' type setup.

Template example:

### Ancient Warfare Town Template ###
# a line beginning with # denotes a comment line, and is ignored during parsing
# the line must -start- with # to be ignored, mid-line comments are not allowed
header:
name=test_town_template
minSize=4
maxSize=9
buildingExpansion=2
selectionWeight=10
clusterValue=300
townBlockSize=30
townPlotSize=3
wallStyle=2
wallSize=8
roadBlock=minecraft:gravel
roadMeta=0
biomeWhiteList=false
biomeList=ocean,beach
dimensionWhiteList=true
dimensionList=0
townHall=town_hall1
lamp=
:endheader

#wall type registry
#name:type:id:weight
walls:
wall_corner1:corner:0:10
wall_straight1:wall:1:10
wall_straight2:wall:2:10
wall_gate:gate:3:10
wall_lgate:lgate:4:10
wall_rgate:rgate:5:10
:endwalls

#wall patterns
#size:pattern
wallPatterns:
4:0-4-5-0
5:0-1-3-1-0
6:0-1-4-5-1-0
7:0-1-2-3-2-1-0
8:0-1-2-4-5-2-1-0
9:0-1-2-1-3-1-2-1-0
:endWallPaterns

#list of structures, one per line, colon separating min and max values for each (could alternatively use nearly any separator char)
structures:
village_church:1:3
village_garden_large:2:4
village_garden_small:2:4
village_house_garden:5:8
village_house:5:8
village_hut1:5:8
village_hut2:5:8
village_library:5:8
village_smith:5:8
:endstructures

#list of cosmetic structure templates w/weight, to be used to fill in random positions post-generation
cosmetics:
#commented out as I have no cosmetic templates yet....
#village_torch:5
#village_well:1
:endcosmetics