Skip to content
Pedro Costa edited this page May 10, 2023 · 7 revisions

Configuration

LOABE uses .cfg files formatted in JSON to configure its sizes (lets call them LOABESize)

Each size should have its own configuration following the file naming of ÌD - AbbreviatedName.cfg. Even tho the file is named as .cfg its actually JSON formatted, this extension was choosen because well, its a configuration file.

These files must exclusively be placed inside BepInEx/plugins/luxsoabextensions/Sizes.

Example file

{
  "ID": 1,
  "Diameter": 1.25,
  "AbbreviatedName": "SM",
  "FullName": "SMALL",
  "SortingOrder": 20,
  "TagColor": {
    "r": 255,
    "g": 136,
    "b": 42,
    "a": 255
  }
}

Properties

  • ID - int - unique id, should be positive and not overlap no other ID (including Stock's ID). Look at the existing IDs in plugins/luxsoabextensions/Sizes
  • Diameter - float - Its not used by the game for now but its a good practice to set this as your LOABESize's diameter
  • AbbreviatedName - string - Name that will appear on the tag (XS, SM, MD, LG, XL, etc)
  • FullName - string - Name that will appear when parts are filtered by size on the OAB
  • SortingOrder - int - Indicates where this LOABESize should fall in the ordering of the sizes once the OAB is loaded
  • TagColor - Color32 - Color of the Tag and text of the LOABESize

How to add new sizes

  1. Check other sizes and choose an ID that has not been used yet.
  2. Create a .cfg file based on the configuration shown in here.
  3. Paste that .cfg into BepInEx/plugins/luxsoabextensions/Sizes.
  4. Enjoy your new label!
Clone this wiki locally