ModbaseOffsets: Difference between revisions

From The Colonists
Jump to navigation Jump to search
initial create
 
No edit summary
Line 21: Line 21:
| array
| array
| tile requirements
| tile requirements
| see link [[ModbaseOffsetsRequiements]]
| see link [[ModbaseOffsetsRequirements]]
|-
|-
| isOccupy
| isOccupy

Revision as of 16:18, 13 July 2022

`baseOffsets` used in buildings, structures, and flora.


JSON

Table of main building.json entries:

Value Type Description Example/Link
type integer defines as 'baseOffsets' 0
coord Name-Value pairs X and Y coordinates of tile "coord": {"x": -1,"y": 2}
requirements array tile requirements see link ModbaseOffsetsRequirements
isOccupy boolean tile will count as player occupied? true
isOwnedTerritoryRequired boolean tile must be within player territory true
structureToCreate integer structure to create 255 or StructureModIds
layerTypeToCreate integer layer to create - can adjust bot height/pathing 255 or 3
customLayerHeights array allows slope of tile: height of TopLeft, TopRight, BottomLeft, BottomRight null OR [ 0,-3, 0,-3]
autoAdjustType integer adjust tile. Default, None, Only Up, Only Down, Flatten from : 0,1,2,3,4
isPassable boolean bots may path through the tile true
sidesToAdjust array side(s) to adjust height to adjacent tile [] OR [{"x": -1,"y": 0},{"x": 1,"y": 0}]
heightOffset integer adjust height of tile from "0" see Boatyard, TrainStation, ColonyShip, ShaftMine, Well
isBypassVerify boolean ask CodeByFire??
trackDirections array Obsolete?
inaccessibleDirections array sides of tile that bot may not access [] OR [{"x": 0,"y": 1},{"x": 1,"y": 0}]
doesNeedUnoccupied boolean Tile needs to be occupied? See ShaftMine
showFootprintHighlight boolean Highlight tile footprint when placing/deleting See ShaftMine 1,3 and 1,4
heightLeeway integer Clearance needed over tile for Elevated Rails -1, 6, 10, 12, 16, 24, 34