House Generator Plugin
This plugin is under development and features may change or be added.
The house gen plugin adds a system to generate random versions of structures, or other arbitrary features, from a specially formatted schematic template. The schematic template consists of two separate files, a
.TEditHGSchfile and a
.JSONfile. The files must be named identically except for their associated extension.
The JSON file contains the following entries:
Count - the number of variations present in the schematic.
Rooms - an array of objects with each object having the following fields. Name: room name, can be anything, currently only used in error reporting. X: the number of tiles between the left edge of the schematic and the left edge of the room. Y: the number of tiles between the top edge of the schematic and the top of the room. Width: the rooms tile width. Height: the rooms tile height.
Roofs - an array of objects representing the roof sections, roofs currently function identically to rooms. (This may change in the future.)
.TEditHGSchfiles can be created in TEdit itself by creating the various versions of a schematic and then stacking the versions directly on top of one another. The combined schematic can then be exported and renamed as
filename.JSONfile must then be written to let the generator know where each room is located in relation to the left and top edge of a single instance of the structure.