Skip to content

Configuration files

Jonathan Bayer edited this page Aug 28, 2016 · 1 revision

Setting up a Vessel Viewer page for a MFD is pretty simple. Use the following template:

Example config file

The following fields must remain unchanged:

(unless you're writting a custom overlay?)

  • name = InternalVesselView
  • method = ShowMenu
  • buttonClickMethod = ButtonProcessor
  • multiHandler = true
  • method = RenderViewer
  • pageActiveMethod = PageActive

The following fields are mandatory:

  • buttonUp
  • buttonDown
  • buttonEnter
  • buttonEsc
  • buttonHome

Set them to values corresponding to the right buttons on your MFD.

The following fields are optional:

  • pageTitle: change the title of the screen.

defaults to -------------Vessel Viewer--------------

  • colorModeFill, colorModeMesh, colorModeBox: color mode for the mesh fill/mesh wireframe/part bounds (0=WHITE, 1=STATE, 2=STAGE, 3=HEAT, 4=FUEL , 5=DRAG, 6=LIFT, 7=STALL, 8=HIDE)

default for fill is FUEL, for wireframe its WHITE, for bounds its HIDE

  • colorModeFillDull, colorModeMeshDull, colorModeBoxDull: dulling of the colors above.

defaults are: false, true, false

  • autoCenterMode: whenever the screen autorecenters.

default is true.

  • centerOnRootH, centerOnRootV: horizontal/vertical centering of the crafts root part (autocentering must be enabled)

horizontal default is true, vertical is false.

  • centeringModeRescaleNew: if autocentering is on, how often should the screen be rescaled (0=OFF(never), 1=INCR(craft < half the screen), CLOSE(craft < 9/10ths of the screen), BEST(as close as possible))

default is INCR.

  • scaleFactor: if autorescaling is off, you can use this to specify a custom scale factor.

  • scrOffX, scrOffY: if autocentering is off, you can use these to specify the crafts position on the screen

the center of the crafts root part is in 0,0 (so to center it, you need to move that point into the screens center)

  • partSelectMode:whenever the part selector is active.

defaults to false.

  • selectionSymmetry: whenever part selector activated actions affect all symmetry counterparts.

defaults to true.

  • centerSelection: whenever the part selector should center/rescale to fit on the selected part instead of the whole vessel.

defaults to false.

  • latencyMode: determines how many frames should pass between renders (0=OFF(none), 1=LOW(3) 2=MEDIUM(10), 3=HIGH(30), 4=OBSCENE(75))

defaults to LOW.

  • spinAxis: which axis the autorotation should rotate around (0=X, 1=Y, 2=Z)

defaults to Y.

  • spinSpeed: autorotation speed (0=OFF, 1=SLOW, 2=NORMAL, 3=FAST)

defaults to OFF.

  • displayEngines: whenever the engine status display is active.

defaults to true.

  • displayCOM: whenever the center of mass display is active.

defaults to true.

  • displayAxes: whenever the axes display is active.

defaults to false.

  • displayGround: state of the landing assist display (0=OFF, 1=ROCKET, 2=PLANE)

defaults to ROCKET.