Overview
Variables
Global L: variables your scenery reacts to. SimRESC writes them, the scenery reads them.
Templates
Ready-made ModelBehavior templates for doors, dolly and alarm light to include in your model.
Description
simresc-wache.json in the package: the tablet shows exactly your switches, with your names.
The variables are the same ones used by the 30West sceneries and the HPG H145 mission pack "Random & Everywhere", so a station built with this SDK works there too.
Variables
| Variable | Value | Meaning |
|---|---|---|
L:SCENERY_HANGAR_DOOR_1 | 0 / 1 | door 1 closed / open |
L:SCENERY_HANGAR_DOOR_2 … _9 | 0 / 1 | further doors (SimRESC extension) |
L:SCENERY_HANGAR_DOLLY_1 | 0 / 1 | dolly inside / outside |
L:SCENERY_HANGAR_DOLLY_2 | 1 / 0 | counterpart ("move in"), set as well; the scenery does not need to read it |
L:Dispatch | 0 / 1 | alarm light off / on |
- The variables are global (
L:without an index) and apply to every station in the simulator. The pilot only sees the station nearby, so this is intended. - SimRESC writes the variables; the scenery only reads them. After a flight is loaded all of them are 0: doors closed, dolly inside, alarm light off.
- The tablet only moves the dolly while one of the station's doors is open.
- On an alert SimRESC sets
L:Dispatch= 1 and back to 0 after 120 seconds.
Building the scenery
2.1 Switched parts are a SimObject
Model behaviors only run in SimObjects, not in plain library objects. Build the doors, dolly and alarm light as a SimObject of category StaticObject (SimObjects\Landmarks\<name>\, example sim.cfg) and place it in the Scenery Editor as a SimObject. The rest of the station stays regular scenery.
2.2 Animations in the model
Create one animation per moving part in Blender and export it with the glTF:
- Door: frame 0 = closed, last frame = open.
- Dolly: frame 0 = inside, last frame = outside.
- Rotating beacon (optional): one full turn from frame 0 to the last frame.
- Flashing lens (optional): its own node, visible only while lit.
2.3 Using the templates
- Copy Wache.xml unchanged to
<package>\ModelBehaviorDefs\SimRESC\Wache.xml. If several sceneries ship the file the simulator uses one copy for all of them, so do not edit it. - Include it in the SimObject's model XML and use the templates. A full example is beispiel-modell.xml.
<Behaviors>
<Include ModelBehaviorFile="SimRESC\Wache.xml"/>
<Component ID="Tor_links" Node="Tor_links">
<UseTemplate Name="SIMRESC_WACHE_TOR">
<ANIM_NAME>Tor_links</ANIM_NAME>
<TOR>1</TOR>
<ANIM_LENGTH>120</ANIM_LENGTH>
<ANIM_LAG>10</ANIM_LAG>
</UseTemplate>
</Component>
</Behaviors>| Template | Parameters | Effect |
|---|---|---|
SIMRESC_WACHE_TOR | ANIM_NAME, TOR (1–9), ANIM_LENGTH, ANIM_LAG | door animation, 0 = closed, ANIM_LENGTH = open |
SIMRESC_WACHE_DOLLY | ANIM_NAME, ANIM_LENGTH, ANIM_LAG | dolly animation, 0 = inside, ANIM_LENGTH = outside |
SIMRESC_WACHE_ALARM_SICHTBAR | – | node visible while the alarm is on |
SIMRESC_WACHE_ALARM_BLINKEN | PERIODE (seconds) | node flashes while the alarm is on |
SIMRESC_WACHE_ALARM_DREHEN | ANIM_NAME, ANIM_LENGTH, UMDREHUNGEN (per second) | beacon rotates while the alarm is on |
ANIM_LENGTH is the animation length in frames, ANIM_LAG the speed in frames per second. A door with 120 frames and ANIM_LAG 10 is open after 12 seconds.
Without the include you can use the Asobo template directly:
<UseTemplate Name="ASOBO_GT_Anim_Code">
<ANIM_NAME>Tor_links</ANIM_NAME>
<ANIM_CODE>(L:SCENERY_HANGAR_DOOR_1, Bool) 120 *</ANIM_CODE>
<ANIM_LENGTH>120</ANIM_LENGTH>
<ANIM_LAG>10</ANIM_LAG>
</UseTemplate>2.4 Dolly limitation
Animation only. A helicopter standing on the dolly does not move along. Pilots should start from a spot next to the dolly, or taxi or hover out themselves.
Station description
Put the file in your scenery's package folder, next to manifest.json and layout.json. It does not have to be listed in layout.json. SimRESC searches the MSFS 2020 and 2024 Community folders on start and every ten minutes after that. An example is simresc-wache.json.
| Field | Required | Meaning |
|---|---|---|
format | yes | always 1 |
stations | yes | one or more stations in the package |
name | no | name shown on the tablet, at most 60 characters |
lat, lon | yes | centre of the station (hangar or helipad), decimal degrees |
radius_m | no | radius in which the tablet shows the station, 50–2000 m, default 300 |
doors | no | doors: index 1–9 (= L:SCENERY_HANGAR_DOOR_<index>), name at most 30 characters |
dolly | no | true if the station has a dolly |
alarm_light | no | true if the station has an alarm light |
Each station needs at least one door, a dolly or an alarm light. SimRESC skips invalid entries and logs the reason in the client log (rescueclient.log, lines "Wachen-Beschreibung"). The JSON schema validates the file in editors such as VS Code.
Without a description the tablet shows default switches for door 1, alarm light and dolly.
Testing
- Put the package in the Community folder, start MSFS, stand at the station.
- Start the SimRESC client (it reads the description on start), tablet → Schicht.
- The tablet shows your station's name and doors. Every switch should act immediately.
Without SimRESC you can set the variables with any tool that writes L: variables, such as MobiFlight, SPAD.neXt or FSUIPC.
Notes
- Only packages in the Community folder are read. Marketplace packages are not readable on disk.
- In MSFS 2024
L:Nameis global whileL:1:Nameis bound to one object. Always use the global form for this SDK. - If the format changes it gets a new number. Format 1 stays valid.
Downloads
Contains the templates in the package folder structure, the examples, the schema and this guide.
Download everything as a zipEvery file to download or copy. Put each one at the path shown, inside your package.
<?xml version="1.0" encoding="utf-8"?>
<!--
SimRESC Wachen-SDK, Format 1 - Vorlagen fuer Tore, Dolly und Alarmlicht einer Rettungswache.
SimRESC station SDK, format 1 - templates for doors, dolly and alarm light of a rescue station.
Datei unveraendert nach <Paket>\ModelBehaviorDefs\SimRESC\Wache.xml kopieren und im Modell-XML
mit <Include ModelBehaviorFile="SimRESC\Wache.xml"/> einbinden. Nicht anpassen: Liefern mehrere
Szenerien diese Datei mit, nimmt der Simulator eine davon fuer alle.
Copy this file unchanged to <package>\ModelBehaviorDefs\SimRESC\Wache.xml and include it with
<Include ModelBehaviorFile="SimRESC\Wache.xml"/>. Do not edit it: if several sceneries ship it,
the simulator uses one copy for all of them.
Variablen / variables (global, 1 = an/offen/draussen):
L:SCENERY_HANGAR_DOOR_1 ... L:SCENERY_HANGAR_DOOR_9 Tor 1-9 offen / door 1-9 open
L:SCENERY_HANGAR_DOLLY_1 Dolly draussen / dolly out
L:Dispatch Alarmlicht an / alarm light on
-->
<ModelBehaviors>
<Include ModelBehaviorFile="Asobo\Generic.xml"/>
<!--
Tor: spielt die Animation ANIM_NAME von 0 (zu) bis ANIM_LENGTH (offen).
Door: plays animation ANIM_NAME from 0 (closed) to ANIM_LENGTH (open).
ANIM_NAME Animation im glTF / animation in the glTF
TOR Nummer 1-9 / door number 1-9 (Standard/default 1)
ANIM_LENGTH Laenge der Animation in Bildern / animation length in frames (Standard/default 100)
ANIM_LAG Bilder je Sekunde beim Oeffnen / frames per second while moving (Standard/default 10)
-->
<Template Name="SIMRESC_WACHE_TOR">
<DefaultTemplateParameters>
<TOR>1</TOR>
<ANIM_LENGTH>100</ANIM_LENGTH>
<ANIM_LAG>10</ANIM_LAG>
</DefaultTemplateParameters>
<UseTemplate Name="ASOBO_GT_Anim_Code">
<ANIM_CODE>(L:SCENERY_HANGAR_DOOR_#TOR#, Bool) #ANIM_LENGTH# *</ANIM_CODE>
</UseTemplate>
</Template>
<!--
Dolly: spielt die Animation von 0 (in der Halle) bis ANIM_LENGTH (draussen). Reine Animation,
ein Flugzeug faehrt nicht mit.
Dolly: plays the animation from 0 (inside) to ANIM_LENGTH (outside). Animation only, an
aircraft standing on it does not move along.
-->
<Template Name="SIMRESC_WACHE_DOLLY">
<DefaultTemplateParameters>
<ANIM_LENGTH>100</ANIM_LENGTH>
<ANIM_LAG>5</ANIM_LAG>
</DefaultTemplateParameters>
<UseTemplate Name="ASOBO_GT_Anim_Code">
<ANIM_CODE>(L:SCENERY_HANGAR_DOLLY_1, Bool) #ANIM_LENGTH# *</ANIM_CODE>
</UseTemplate>
</Template>
<!--
Alarmlicht, Teil sichtbar solange der Alarm an ist (z. B. leuchtendes Glas).
Alarm light, node visible while the alarm is on (e.g. a lit lens).
-->
<Template Name="SIMRESC_WACHE_ALARM_SICHTBAR">
<UseTemplate Name="ASOBO_GT_Visibility_Code">
<VISIBILITY_CODE>(L:Dispatch, Bool)</VISIBILITY_CODE>
</UseTemplate>
</Template>
<!--
Alarmlicht, blinkend: sichtbar in der ersten Haelfte jeder Periode.
Alarm light, flashing: visible during the first half of each period.
PERIODE Sekunden je Blinken / seconds per flash (Standard/default 1)
-->
<Template Name="SIMRESC_WACHE_ALARM_BLINKEN">
<DefaultTemplateParameters>
<PERIODE>1</PERIODE>
</DefaultTemplateParameters>
<UseTemplate Name="ASOBO_GT_Visibility_Code">
<VISIBILITY_CODE>(L:Dispatch, Bool) (E:SIMULATION TIME, second) #PERIODE# / d flr - 0.5 < and</VISIBILITY_CODE>
</UseTemplate>
</Template>
<!--
Alarmlicht, Rundumleuchte: dreht die Animation ANIM_NAME endlos, solange der Alarm an ist.
Alarm light, rotating beacon: loops animation ANIM_NAME while the alarm is on.
UMDREHUNGEN Umdrehungen je Sekunde / turns per second (Standard/default 1.5)
-->
<Template Name="SIMRESC_WACHE_ALARM_DREHEN">
<DefaultTemplateParameters>
<ANIM_LENGTH>100</ANIM_LENGTH>
<UMDREHUNGEN>1.5</UMDREHUNGEN>
</DefaultTemplateParameters>
<UseTemplate Name="ASOBO_GT_Anim_Code">
<ANIM_CODE>(L:Dispatch, Bool) if{ (E:SIMULATION TIME, second) #UMDREHUNGEN# * d flr - #ANIM_LENGTH# * } els{ 0 }</ANIM_CODE>
<ANIM_WRAP>True</ANIM_WRAP>
</UseTemplate>
</Template>
</ModelBehaviors><?xml version="1.0" encoding="utf-8"?>
<!--
Beispiel: Modell-XML eines SimObjects "Wache" mit zwei Toren, Dolly und Alarmlicht.
Example: model XML of a "station" SimObject with two doors, a dolly and an alarm light.
Die Knoten- und Animationsnamen (Tor_links, Tor_rechts, Dolly, Blitzer_Glas, Rundumleuchte)
stehen im glTF aus Blender; eigene Namen hier eintragen. Die GUID durch eine eigene ersetzen.
Node and animation names come from the glTF exported from Blender; use your own names here.
Replace the GUID with your own.
-->
<ModelInfo guid="{00000000-0000-0000-0000-000000000000}" version="1.1">
<LODS>
<LOD minSize="0" ModelFile="Wache.gltf"/>
</LODS>
<Behaviors>
<Include ModelBehaviorFile="SimRESC\Wache.xml"/>
<!-- Tor 1: 120 Bilder, in 12 s offen / door 1: 120 frames, open in 12 s -->
<Component ID="Tor_links" Node="Tor_links">
<UseTemplate Name="SIMRESC_WACHE_TOR">
<ANIM_NAME>Tor_links</ANIM_NAME>
<TOR>1</TOR>
<ANIM_LENGTH>120</ANIM_LENGTH>
<ANIM_LAG>10</ANIM_LAG>
</UseTemplate>
</Component>
<!-- Tor 2 -->
<Component ID="Tor_rechts" Node="Tor_rechts">
<UseTemplate Name="SIMRESC_WACHE_TOR">
<ANIM_NAME>Tor_rechts</ANIM_NAME>
<TOR>2</TOR>
<ANIM_LENGTH>120</ANIM_LENGTH>
<ANIM_LAG>10</ANIM_LAG>
</UseTemplate>
</Component>
<!-- Dolly: 200 Bilder, in 40 s draussen / dolly: 200 frames, out in 40 s -->
<Component ID="Dolly" Node="Dolly">
<UseTemplate Name="SIMRESC_WACHE_DOLLY">
<ANIM_NAME>Dolly</ANIM_NAME>
<ANIM_LENGTH>200</ANIM_LENGTH>
<ANIM_LAG>5</ANIM_LAG>
</UseTemplate>
</Component>
<!-- Alarmlicht: blinkendes Glas und drehende Rundumleuchte / flashing lens and rotating beacon -->
<Component ID="Blitzer_Glas" Node="Blitzer_Glas">
<UseTemplate Name="SIMRESC_WACHE_ALARM_BLINKEN">
<PERIODE>0.8</PERIODE>
</UseTemplate>
</Component>
<Component ID="Rundumleuchte" Node="Rundumleuchte">
<UseTemplate Name="SIMRESC_WACHE_ALARM_DREHEN">
<ANIM_NAME>Rundumleuchte</ANIM_NAME>
<ANIM_LENGTH>100</ANIM_LENGTH>
<UMDREHUNGEN>1.5</UMDREHUNGEN>
</UseTemplate>
</Component>
</Behaviors>
</ModelInfo>; Beispiel / example: SimObjects\Landmarks\<Hersteller>_Wache\sim.cfg ; Geschaltete Teile muessen ein SimObject sein (Platzierung im Scenery Editor als SimObject), ; einfache Bibliotheksobjekte fuehren keine Behaviors aus. ; Switched parts must be a SimObject (placed in the Scenery Editor as a SimObject); plain ; library objects do not run behaviors. [fltsim.0] title=Hersteller_Wache model= texture= [General] category=StaticObject DistanceToNotAnimate=1500
{
"format": 1,
"stations": [
{
"name": "Christoph 99 Musterstadt",
"lat": 50.12345,
"lon": 8.67890,
"radius_m": 300,
"doors": [
{ "index": 1, "name": "Hallentor links" },
{ "index": 2, "name": "Hallentor rechts" }
],
"dolly": true,
"alarm_light": true
}
]
}{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SimRESC Wachen-Beschreibung / station description",
"description": "simresc-wache.json im Paketordner einer Scenery: welche Tore, Dolly und Alarmlicht eine Rettungswache hat. / simresc-wache.json in a scenery package folder: which doors, dolly and alarm light a rescue station has.",
"type": "object",
"required": ["format", "stations"],
"properties": {
"$schema": { "type": "string" },
"format": { "const": 1 },
"stations": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["lat", "lon"],
"anyOf": [
{ "required": ["doors"], "properties": { "doors": { "minItems": 1 } } },
{ "required": ["dolly"], "properties": { "dolly": { "const": true } } },
{ "required": ["alarm_light"], "properties": { "alarm_light": { "const": true } } }
],
"properties": {
"name": { "type": "string", "maxLength": 60, "description": "Anzeigename im Tablet / name shown on the tablet" },
"lat": { "type": "number", "minimum": -90, "maximum": 90, "description": "Mitte der Wache (Landeplatz/Halle) / centre of the station" },
"lon": { "type": "number", "minimum": -180, "maximum": 180 },
"radius_m": { "type": "number", "minimum": 50, "maximum": 2000, "default": 300, "description": "Umkreis, in dem das Tablet die Wache zeigt / radius in which the tablet shows the station" },
"doors": {
"type": "array",
"maxItems": 9,
"items": {
"type": "object",
"required": ["index"],
"properties": {
"index": { "type": "integer", "minimum": 1, "maximum": 9, "description": "Tor n = L:SCENERY_HANGAR_DOOR_n / door n = L:SCENERY_HANGAR_DOOR_n" },
"name": { "type": "string", "maxLength": 30 }
},
"additionalProperties": false
}
},
"dolly": { "type": "boolean", "default": false, "description": "L:SCENERY_HANGAR_DOLLY_1" },
"alarm_light": { "type": "boolean", "default": false, "description": "L:Dispatch" }
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}