Skip to content

DCS BIOS Decoder

Jerker Dahlblom edited this page Sep 12, 2021 · 15 revisions

DCS-BIOS Decoder (Stream Deck & DCS-BIOS)

Enables Stream Deck to show different images, texts based on current DCS-BIOS value

The function "decodes" DCS-BIOS values and produces different output based on user's settings.

To see how it looks like see this video (first 5 minutes). https://youtu.be/lgTJa-NUnM8?t=573

Getting started

Select a Stream Deck Button and choose DCS-BIOS Decoder. DCS-BIOS Decoder

The DCS-BIOS Decoder window will be shown. DCS-BIOS Decoder

DCS-BIOS Data Type

The DCS-BIOS Control Type option declares how the incoming DCS-BIOS value should be treated, is it a number or a string of text.

DCS-BIOS Decoder

Depending which type is chosen some functionality will be enabled or disabled.

If DCS-BIOS sends a string type e.g. "Open" or "Closed" or "Locked" then Rule Formatting is disabled as Rule Formatting uses arithmetic operators on the DCS-BIOS value. On the other hand, if DCS-BIOS sends a string which contains a number e.g. "1" then that can be converted into a number and thus be used with Rule Formatting.

Formula

You can use a formula to transform the DCS-BIOS value before it is further process by the DCS-BIOS Decoder.

Raw Decoding Example

DCS-BIOS Decoder

This DCS-BIOS Encoder is configured to show the raw DCS-BIOS value for ALT_MSL_FT. It will show this suffixed with "ft".

The actual DCS-BIOS value is held by the marker {dcs-bios}. To get the marker inserted click Click to Insert {dcs-bios} or type it manually.

Rule Formatting

By setting up rules you can have different outputs depending on what the value of the DCS-BIOS control is. You can have a set of images for each position a cockpit switch has and have them shown as in the cockpit. You can also have different texts associated with DCS-BIOS values.

Add first rule

Click here to add new rule.

DCS-BIOS Decoder

DCS-BIOS Decoder

This rule will check whether the DCS-BIOS value for ALT_MSL_FT is greater than 0, if it is then the text "We are in the air!" will be shown. You could also chose an image to be shown when this rule is true, or text overlaid on an image. Note that here we do not show the actual value, only the text.

Click Ok to save the rule.

Add second rule

DCS-BIOS Decoder

And this rule will check whether the DCS-BIOS value for ALT_MSL_FT is equal to 0 and show the text "We are on the ground!" if the rule is true.

Final DCS-BIOS configuration

DCS-BIOS Decoder

Here both rules are now listed and it clearly states the condition and output for each rule.

Click Ok to save the DCS-BIOS Decoder configuration.