Equipment.data

From Big Pharma Wiki
Jump to: navigation, search

Back to modding

Equipment.data[edit | edit source]

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

Example Equipment[edit | edit source]

{
"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_<a>","shadow":true},
     {"name":"evaporator_b_<a>"},
     {"name":"evaporator_c_<a>"},
     {"name":"evaporator_d_<a>","color":true},
     {"name":"evaporator_e_<a>"},
     {"name":"evaporator_f_<a>"},
     {"name":"evaporator_g_<a>"},
     {"name":"evaporator_h_<a>","angles":[0,270]},
     {"name":"evaporator_i_<a>"},
     {"name":"evaporator_j_<a>","mask":true},
     {"name":"evaporator_k_<a>","angles":[270]}
     ],
  "cost":600,
  "processCost":10,
  "processTime":1,
  "colorTween":[0.1,0.2]
}

Equipment Keys[edit | edit source]

  • 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[edit | edit source]

  • 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[edit | edit source]

....

Belt Keys[edit | edit source]

  • type - belt/socket/machine

Socket Example[edit | edit source]

....

Socket Keys[edit | edit source]

  • type - belt/socket/machine