Equipment.data

Back to modding

Equipment.data
The equipment.data file contains an array of 'equipment' objects which can be type of either belts, socket, or machines.

Example Equipment
{ "type":"machine", "id":"evaporator", "fixedIO":{"ioTiles": [  {"m":1,"n":0,"d":3,"drugType":"all_except_box","io":"INPUT"}, {"m":0,"n":0,"d":2,"drugType":"crystal","io":"OUTPUT"} ]  },   "processor":{"linearConc":1}, "toolOffset":{"x":-0.5,"z":0}, "size":{"x":2,"z":1}, "spriteName":"evaporator", "spriteCollection":{"all":"evaporator"}, "animCollection":"evaporatorAnims", "ghostMaterial":{"all":"evaporatorGhost"}, "layerInfo":[{"name":"evaporator_a_","shadow":true}, {"name":"evaporator_b_"}, {"name":"evaporator_c_"}, {"name":"evaporator_d_","color":true}, {"name":"evaporator_e_"}, {"name":"evaporator_f_"}, {"name":"evaporator_g_"}, {"name":"evaporator_h_","angles":[0,270]}, {"name":"evaporator_i_"}, {"name":"evaporator_j_","mask":true}, {"name":"evaporator_k_","angles":[270]} ],  "cost":600, "processCost":10, "processTime":1, "colorTween":[0.1,0.2] }

Equipment Keys

 * type - belt/socket/machine
 * id - name
 * fixedIO - IOType chosen (stateIO/tBeltIO/fixedIO)
 * ioTiles - array of input/output tiles
 * ioTiles:m,n - tile location of IO relative to 0,0 of equipment origin tile
 * ioTiles:d - ordinal direction IO faces (0/1/2/3)
 * ioTiles:drugType - type of ingredient/drug allowed through I/O (all/all_finished_box/all_except_box/'form")
 * for "maker" can also be [pill:cream:satchet:syringe]
 * "form" = ingredient form (e.g. "crystal", "solution", "ore", etc.)
 * ioTiles:io type (DONTCARE/INPUT/OUTPUT)


 * toolOffset - ?
 * size:x/z tile footprint of equipment
 * spriteName - ?
 * animCollection - animation files used?
 * ghostMaterial - graphic used when machine placed/moved?
 * layerinfo - graphics??


 * cost - cost to purchase the equipment
 * processCost - cost to process for a machine
 * processTime - game tick duration for the equipment
 * colorTween - timing, in percentage of game tick, for color changes to begin and to end

Equipment Processor Keys

 * processor (optional) - changes the concentration
 * processor:linearConc - plus/minus change to concentration
 * processor:multiplyConc - multiply/divide concentration
 * processor:invertConc - true:false
 * processor:fixedConc - value target of concentration
 * processor:chooseConc - array value target of concentration
 * processor:collided - true:false


 * incinerator - true:false (for analyzer)


 * swapper - true:false (for swapping effects on ingredients)
 * needsAllOutputsOpen - true:false


 * mixer - 2 input ingredients will be mixed


 * rotator - (for shaker)
 * nRotations - number of shifts for ingredient in shaker


 * maker - outputs drug (pill:cream:satchet:syringe)


 * packer - true:false

Belt Example
....

Belt Keys

 * type - belt/socket/machine

Socket Example
....

Socket Keys

 * type - belt/socket/machine