Skip to content

jtsage/FS22_ProductionInspector

Repository files navigation

FS22_ProductionInspector

GitHub release (latest by date) GitHub all releases

First I did the vehicle one. Then I thought it might be nice to have productions on screen too. Then there was an animal one, but it was too much so - BIG NEWS:

ProductionInspector now includes AnimalInspector and the conceived, but never released SiloInspector

Note about the ZIP in the repo

That ZIP file, while the ?working? mod, is usually my test version. It's updated multiple times per version string, so be aware if you download from there, instead of the releases page, you might be unknowingly using an old version. For "official" releases, please use the release link to the right.

Multiplayer

No idea. I left the flag on for now, but I can't imagine it will work flawlessly.

Features

  • Show input materials and their fill levels for production facilities
  • Show output products and their fill levels for production facilities
  • Show production lines and their status in production facilities
  • Show number of animals and space left
  • Show food levels (total and individual)
  • Show output products and their fill levels
  • Show animal health average, breeding average, and immature animal percentage
  • Show silo fill percentage, and what is in it.
  • Add an underscore to a production point, animal pen, or silo name to hide it from the HUD (_)
  • HUD elements can be shown, hidden and positioned individually. When in the same position, they will stack.

Default Input Bindings

  • Left Ctrl + Left Alt + Num Pad 8 : Reload configuration file from disk
  • Left Alt + Num Pad 8 : Toggle productions display on and off
  • Left Alt + Num Pad 7 : Toggle animal pens display on and off
  • Left Alt + Num Pad 6 : Toggle silos display on and off

Options

All options are set via a xml file in modSettings/FS22_ProductionInspector/savegame##/productionInspector.xml

Most view options can be set in the in-game settings menu (scroll down)

displayMode (configurable in the game settings menu)

  • 1 - Top left, under the input help display (auto height under key bindings, if active). Not compatible with FS22_InfoMessageHUD (they overlap). Hidden if large map and key bindings are visible together.
  • 2 - Top right, under the clock. Not compatible with FS22_EnhancedVehicle new damage / fuel displays
  • 3 - Bottom left, over the map (if shown). Hidden if large map and key bindings are visible together.
  • 4 - Bottom right, over the speedometer. Special logic added for FS22_EnhancedVehicle HUD (but not the old style damage / fuel)
  • 5 - Custom placement. Set X/Y origin point in settings XML file as well.

in-game configurable

  • isEnabledProdVisible - Productions HUD visibility
  • isEnabledAnimVisible - Animals HUD visibility
  • isEnabledSiloVisible - Silo HUD visiblity
  • isEnabledForceProdJustify - Force justification, productions (1 - no, 2 - left, 3 - right )
  • isEnabledForceAnimJustify - Force justification, animals (1 - no, 2 - left, 3 - right )
  • isEnabledForceSiloJustify - Force justification, silos (1 - no, 2 - left, 3 - right )
  • isEnabledProdOnlyOwned - Only owned productions visible
  • isEnabledProdInactivePoint - Inactive productions visible
  • isEnabledProdInactiveProd - Inactive products visible
  • isEnabledProdOutPercent - Production output percentages
  • isEnabledProdOutFillLevel - Production output raw fill levels
  • isEnabledProdInPercent - Production input percentages
  • isEnabledProdInFillLevel - Production input raw fill levels
  • isEnabledProdInputs - Production input visibility
  • isEnabledProdOutputs - Production output visibility
  • isEnabledProdEmptyOutput - Productions show empty outputs
  • isEnabledProdEmptyInput - Productions show empty inputs
  • isEnabledProdShortEmptyOut - Productions show empty inputs as "--" instead of 0 (0%)
  • isEnabledProdOutputMode - Productions show output mode
  • isEnabledProdMax - Maximum number of productions to show
  • isEnabledAnimCount - Animal counts
  • isEnabledAnimFood - Animal food percentage
  • isEnabledAnimFoodTypes - Animal food types
  • isEnabledAnimProductivity - Animal productivity
  • isEnabledAnimReproduction - Animal reproduction percentage
  • isEnabledAnimPuberty - Animals below breeding age percentage
  • isEnabledAnimHealth - Animal average health
  • isEnabledAnimOutputs - Animal output products
  • isEnabledAnimMax - Maximum number of animal pens to show
  • isEnabledSiloMax - Maximum number of silos to show

colors

Fill type levels are color coded from empty (green) to full (red) unless it is a consumable in a consuming vehicle, in which case the scale is flipped. There is a color blind mode available (use the game setting). All other colors are defined with a red, green, blue, and alpha component

  • colorPointOwned - Color for owned production points
  • colorPointNotOwned - Color for not owned production points
  • colorProdName - Color for production line name
  • colorFillType - Color for fill type names
  • colorCaption - Color for captions (Input: Output: Productions:)
  • colorEmpty - Color for empty entries (no input or output or product lines)
  • colorEmptyInput - Color for empty inputs
  • ColorAniHome - Color for animal pen and silo names
  • ColorAniData - Color for animal pen and silo data points
  • colorSep - Color for seperator
  • colorEmpty - Color for empty input / output / production lines
  • colorStatusInactive - Color for production line status when inactive
  • colorStatusRunning - Color for production line status when running
  • colorStatusMissing - Color for production line status when missing materials
  • colorStatusNoSpace - Color for production line status when full

text

  • setStringTextIndent - text for indentation of production lines, default " " (4 spaces)
  • setStringTextSep - text for separators, default " | "
  • setValueTextMarginX - text margin height, default "15"
  • setValueTextMarginY - text margin width, default "10"
  • setValueTextSize - text size, default "12"
  • setStringTextSelling - text string for output mode selling , default "↑"
  • setStringTextStoring - text string for output mode storing, default "↓"
  • setStringTextDistribute - text string for output mode distributing, default "→"
  • setTotalMaxProductions - maximum number of productions available in the settings menu, default 40.
  • setTotalMaxAnimals - maximum number of animal pens available in the settings menu, default 20
  • setTotalMaxSilos - maximum number of silos available in the settings menu, default 10

dev, debug and extras

  • setValueTimerFrequency - timer update frequency. We probably don't need to query every vehicle on every tick for performance reasons.

Sample