MASIdGeneric - MOARdV/AvionicsSystems GitHub Wiki

MASIdGeneric is the base class used by Avionics Systems to identify specific parts. The module provides the player with an interface in the VAB/SPH to change a numeric identifier associated with the part using the right-click context menu.

MASIdGeneric and its derivatives allow the player to identify parts uniquely, allowing advanced MAS features. For instance, an IVA maker could create an IVA that supports four-engine propeller aircraft, with separate instruments for each engine. The IVA maker could provide controls that allow the engine's propeller pitch or mixture to be adjusted separately. If a player builds an aircraft that uses supported engines, and the player configured the MAS Part ID correctly for each of those engines, it would allow a the IVA to work authentically. Alternatively, the modder could provide a craft file that was pre-configured for the player.

The rules for using MAS Part ID is simple: MAS ignores all parts with an ID of 0. Each part that should be tracked should have a unique part ID - if MAS encounters multiple IDs, only one of those parts will be controlled. In the above example, the player would need to configure the four engines with part IDs of 1, 2, 3, and 4 in order for all of them to show up and work correctly.

MASIdGeneric should not be used directly in part module configuration. Instead, one of the following modules should be used.

MASIdEngine

MASIdEngine is used to identify specific engines, allowing props to control engines or query them individually. All functions that can use MASIdEngine are part of MASIEngine.

At present, MASIdEngine only works with Advanced Jet Engine engines.

MODULE
{
  name = MASIdEngine
}

MASIdEngineGroup

MASIdEngineGroup is used to group multiple engines together, allowing them to be switched on or off separately from other engines. The functions that use MASIdEngineGroup are in MASIEngine.

MODULE
{
  name = MASIdEngineGroup
}