WIP
DirectOutput framework for virtual pinball cabinets WIP
|
Go to: Overview |
The table configuration defines the table elements (e.g. solenoids or lamps), the configuration of the effects and the assigment of the effects to the table elements. The assigned effects are triggered if the value of a table element changes (typicaly when new data from Pinmame is received).
In addition there is also a collection of static effects which are triggered when the framework is starting up. Use the static effects to control toys which dont have to change their state during game play (e.g. set illuminated flipper button to a specific color).
The framework does also allow to mix the configuration in a table config file with configurations loaded from ledcontrol files. This will allow you to use configurations from the DOF Config Tool for commonly used gadgets and to supplement this with your own config.
Table configurations are stored as XML-files. The basic structure of a table configuration file contains the following sections:
The basic structure of a table configuration looks as follows:
The TableElements section contains the definition of the table elements (solenoids, lamps and so on) of the pinball table. Table elements are configured using TableElement sections. A TableElements secation can contain any number of TableElement sections.
The definition of a table element consists of the type and the number of the table element. A name for the element can be specified in addition. The name has no technical relevance, but can be useful for informational purposes and configuring a table will for sure be easier if the table elements are named.
For every table element one or several effects can be assigned.
On initialization of the framework the names of the assigned effects are resolved into references to the actual effect objects. If a name cant be resolved, the effect assignmenet will be disabled.
A typical table element definition looks as follows:
The AssignedStaticEffects contains the assignment of the static effects which are triggered when the system starts up. The static effects are defined by using AssignedEffect sections.
On initialization of the framework the names of the assigned effects are resolved into references to the actual effect objects. If a name cant be resolved, the effect assignmenet will be disabled.
This section might looks like this: <AssignedStaticEffects> <AssignedEffect> <EffectName>Turn on Start Button</EffectName> </AssignedEffect> <AssignedEffect> <EffectName>Turn on Launch Button</EffectName> </AssignedEffect> </AssignedEffects> </AssignedStaticEffects>
The effects section contains the configurations for all table effects. Effects configured in this section can be referenced by their name in the static effects section and in the assigned effect sections of the various table elements.
Please refer to the pages on Effects and on Built in Effects for more information.