Skip to content

jtsage/FS22_simpleInspector

Repository files navigation

FS22_SimpleInspector

GitHub release (latest by date) GitHub all releases

Spiritual ripoff of VehicleInspector - pared down to what I need/want

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.

Features

  • 4 on screen placement locations - each corner of the display
  • Just your vehicles or all vehicles
  • Speed of vehicles
  • Fuel level of vehicles
  • On Field Status, optionally with Field number
  • Occupation status - Vanilla AI, AutoDrive, CoursePlay, user, or noone
  • CoursePlay course progression, if applicable
  • Fill level of vehicle and attached implements
  • Damage warning if vehicle or attached implement is over threshold

Default Input Bindings

  • Left Ctrl + Left Alt + Num Pad 9 : Reload configuration file from disk
  • Left Alt + Num Pad 9 : Toggle Visibility

Options

All options are set via a xml file in modSettings/FS22_SimpleInspector/savegame##/simpleInspector.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

  • isEnabledShowPlayer - show player name for user controlled vehicles, multi-player only
  • isEnabledShowAll - always show all vehicles
  • isEnabledShowFillPercent - show fill level percentage
  • isEnabledShowFuel - show fuel levels
  • isEnabledShowSpeed - show vehicle speed
  • isEnabledShowFills - show fill level
  • isEnabledShowField - show on-field status
  • isEnabledShowFieldNum - show field number when on-field
  • isEnabledPadFieldNum - Pad field numbers less than 10 with a zero ( F-9 becomes F-09 )
  • isEnabledShowDamage - show damage marker if vehicle or attachments are over threshold
  • isEnabledShowCPWaypoints - show CoursePlay waypoint status when on a course
  • isEnabledTextBold - use bold font

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

  • colorAI - Color for vehicle name when AI controlled (second highest priority)
  • colorAIMark - Color for AI marker
  • colorDamaged - Color for the damage marker
  • colorDiesel - Color for diesel fuel type
  • colorElectric - Color for electric fuel type
  • colorField - Color for on field number indicator
  • colorFillType - Color for fill type name
  • colorMethane - Color for methane fuel type
  • colorNormal - Color for vehicle name when running (showAll == false) or not running vehicles (showAll == true)
  • colorRunning - Color for vehicle name when running (showAll == true)
  • colorSep - Color for separators
  • colorSpeed - Color for vehicle speed
  • colorUser - Color for vehicle name when user controlled (highest priority)

text

  • setStringTextDamaged - text for damage marker, default "-!!- "
  • setStringTextDiesel - text for diesel fuel, default "D:"
  • setStringTextElectric - text for electric fuel, default "E:"
  • setStringTextField - text for on-field indicator, default "F-"
  • setStringTextFieldNoNum - text for on-field indicator when field number is unknown, default "-F-"
  • setStringTextHelper - text for AI marker, default "_AI_ "
  • setStringTextADHelper - text for AutoDrive driver, default "_AD_ "
  • setStringTextCPHelper - text for CoursePlayer worker, default "_CP_ "
  • setStringTextCPWaypoint - text for CoursePlayer worker w/ waypoints, default "_CP:"
  • setStringTextMethane - text for methane fuel, default "M:"
  • setStringTextSep - text for separators, default " | "
  • setValueTextMarginX - text margin height, default "15"
  • setValueTextMarginY - text margin width, default "10"
  • setValueTextSize - text size, default "12"

dev, debug and extras

  • setValueDamageThreshold - Damage threshold, 20% remaining by default
  • setValueTimerFrequency - timer update frequency. We probably don't need to query every vehicle on every tick for performance reasons
  • debugMode - show debug output. Mostly garbage.
  • setValueMaxDepth - max number of implements attached to implements to index. (i.e. trailer trains - it will get the pulling tractor and 5 trailers by default)

Custom Order

Not totally supported yet, but in the xml settings you will find displayOrder - the options are

  • SPD - speed
  • GAS - fuel level
  • DAM - damage indicator (if applicable)
  • FLD - on-field status
  • AIT - AI worker tag
  • USR - User worker tag
  • VEH - Vehicle name
  • FIL - Fill Levels
  • SEP - Standard separator

Additionally you can append an asterisk (*) after each element to show a separator after that element when it is printed (either enabled in settings, or in the case of something like damage, when applicable). You can use a dash (-) instead for a single space. e.g.

__DAM*__ will output " -!!- | " when the vehicle is damaged, and nothing when not damaged. __AIT-__ will show the AI tag with a space after it when on AI control.

You must use a single underscore between terms!!

Default: SPD_SEP_GAS_SEP_DAM*_FLD*_AIT*_USR-_VEH_FIL

Sample

About

Spiritual ripoff of VehicleInspector - pared down to what I need/want, and completely re-written

Resources

Stars

Watchers

Forks

Packages

No packages published