-
Notifications
You must be signed in to change notification settings - Fork 8
Dungeon Format
heinermann edited this page Dec 24, 2014
·
4 revisions
-
metadataThe metadata is an object containing global information about the dungeon. It consists of the following.-
name : stringContains the dungeon's name as referred to in code. -
species : stringContains the species that the dungeon belongs to. Its purpose is currently unknown. -
rulesSee rules. -
maxRadius : integerTheorized as the maximum radius of the dungeon spread. -
maxParts : integerTheorized to be the maximum number of parts used by the dungeon. -
anchor : list<string>The parts that the dungeon can spawn from (AKA heart or core of the dungeon). -
gravity : integer(Optional) The amount of gravity that applies to the dungeon area. -
protected : boolean(Optional, Default: false) Indicates that the dungeon tiles and objects are protected from being damaged by the players.
-
-
tilesInformation about tiles (brushes).-
value : colorThe colour key of the brush in the image. -
rules(Optional) See rules. -
brush(Optional) See brushes. -
connector : boolean(Optional) Used to connect with other parts. -
connector-value : color(Optional) Not sure. -
direction : string(Optional) Not sure. -
comment : stringNot actually used by Starbound.
-
-
partsInformation about parts (layers).-
name : stringName of the part. -
rulesSee rules. -
chance : float(Optional) The chance of this part appearing. Default is 1.0. def
-
The rules segment can apply to every level of the dungeon hierarchy. It is a list of lists of strings. Each list of strings can have a second member which is another list of some sort. A list of different rules is found below.
worldGenMustContainSolidworldGenMustContainAirworldGenMustContainSolidBackgroundworldGenMustContainAirBackgroundallowOverdrawingignorePartMaximumRule-
maxSpawnCount, [integer]Contains only a single integer in the list. -
doNotConnectToPart, [string]Contains a list of part names that this should not connect to. -
doNotCombineWith, [string]Contains a list of part names that this should not combine with, whatever that means.
-
clearNot sure. -
front, string,string | objectThe brush for the foreground. It can be either one of the following: 1. A string (the material name) and a second optional string for the mod. 2. An object describing the material. If it is an object type, it may contain the following information.-
material : stringThe material name. -
mod : string(Optional) The material modifier (ore). -
hueshift : float(Optional) Not sure. -
modhueshift : float(Optional) Not sure.
-
-
back, string | objectThe brush for the background. It is the same format as front, without mod. That is, it can be either a string (the material name) or an object describing the material, containing the following fields:-
material : stringThe material name. -
hueshift : float(Optional) Not sure.
-
-
object, string, objectThe brush for a game object. The first string contains the name of the game object. The second object is optional, containing the following optional information:-
direction : stringThe facing direction (left/right). -
parameters : objectParameters for objects.
-
-
biomeitemsNot sure. -
biometreeA tree. -
item,Not sure. Contains an item descriptor. -
npc,Contains npc info. -
random, []Contains a list of brushes and chooses one randomly. -
surface, objectNot sure. Contains optional object with the following information.variant : integer
-
surfacebackgroundNot sure. -
liquid, stringA liquid. The string contains the liquid type. -
wire, objectWiring. Object contains the following.group : stringlocal : boolean
-
playerstartPlayer spawn point.