f1a61549a5
Here's some new AI stuff. 1) AI objects must now be defined in a scenario file, not in preferences.xml or a *-set file. (Of course this doesn't prevent objects from being created dynamically, as with Durk's traffic manager). 2) A new demo_scenario file is attached. It creates 3 aircraft, a sailboat, and a thunderstorm. 3) Objects without flightplans live forever. 4) FGAIShip::ProcessFlightplan() is not yet implemented. 5) preferences.xml should now define only <enabled> and <scenario>
519 lines
12 KiB
XML
519 lines
12 KiB
XML
<PropertyList>
|
|
<name>Radar</name>
|
|
<w-base>256</w-base>
|
|
<h-base>256</h-base>
|
|
<layers>
|
|
|
|
<layer>
|
|
<name>background</name>
|
|
<w>256</w>
|
|
<h>256</h>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/radar_background.rgb</path>
|
|
<x1>0</x1>
|
|
<y1>0</y1>
|
|
<x2>1</x2>
|
|
<y2>1</y2>
|
|
</texture>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>target0 - range 40</name>
|
|
<w>8</w>
|
|
<h>17</h>
|
|
<condition>
|
|
<and>
|
|
<less-than>
|
|
<property>ai/models/aircraft[0]/radar/range-nm</property>
|
|
<value>43</value>
|
|
</less-than>
|
|
<equals>
|
|
<property>/instrumentation/radar/range</property>
|
|
<value>40</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>ai/models/aircraft[0]/radar/range-nm</property>
|
|
<value>0</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/radar_misc.rgb</path>
|
|
<x1>0.0429687</x1>
|
|
<y1>0.8320312</y1>
|
|
<x2>0.0703125</x2>
|
|
<y2>0.8945312</y2>
|
|
</texture>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<property>ai/models/aircraft[0]/radar/x-shift</property>
|
|
<scale>2.55</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<property>ai/models/aircraft[0]/radar/y-shift</property>
|
|
<scale>2.55</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>ai/models/aircraft[0]/radar/rotation</property>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>target0 - range 20</name>
|
|
<w>8</w>
|
|
<h>17</h>
|
|
<condition>
|
|
<and>
|
|
<less-than>
|
|
<property>ai/models/aircraft[0]/radar/range-nm</property>
|
|
<value>22</value>
|
|
</less-than>
|
|
<equals>
|
|
<property>/instrumentation/radar/range</property>
|
|
<value>20</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>ai/models/aircraft[0]/radar/range-nm</property>
|
|
<value>0</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/radar_misc.rgb</path>
|
|
<x1>0.0429687</x1>
|
|
<y1>0.8320312</y1>
|
|
<x2>0.0703125</x2>
|
|
<y2>0.8945312</y2>
|
|
</texture>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<property>ai/models/aircraft[0]/radar/x-shift</property>
|
|
<scale>5.1</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<property>ai/models/aircraft[0]/radar/y-shift</property>
|
|
<scale>5.1</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>ai/models/aircraft[0]/radar/rotation</property>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>target1 - range 40</name>
|
|
<w>8</w>
|
|
<h>17</h>
|
|
<condition>
|
|
<and>
|
|
<less-than>
|
|
<property>ai/models/aircraft[1]/radar/range-nm</property>
|
|
<value>43</value>
|
|
</less-than>
|
|
<equals>
|
|
<property>/instrumentation/radar/range</property>
|
|
<value>40</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>ai/models/aircraft[1]/radar/range-nm</property>
|
|
<value>0</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/radar_misc.rgb</path>
|
|
<x1>0.0429687</x1>
|
|
<y1>0.8320312</y1>
|
|
<x2>0.0703125</x2>
|
|
<y2>0.8945312</y2>
|
|
</texture>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<property>ai/models/aircraft[1]/radar/x-shift</property>
|
|
<scale>2.55</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<property>ai/models/aircraft[1]/radar/y-shift</property>
|
|
<scale>2.55</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>ai/models/aircraft[1]/radar/rotation</property>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>target1 - range 20</name>
|
|
<w>8</w>
|
|
<h>17</h>
|
|
<condition>
|
|
<and>
|
|
<less-than>
|
|
<property>ai/models/aircraft[1]/radar/range-nm</property>
|
|
<value>22</value>
|
|
</less-than>
|
|
<equals>
|
|
<property>/instrumentation/radar/range</property>
|
|
<value>20</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>ai/models/aircraft[1]/radar/range-nm</property>
|
|
<value>0</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/radar_misc.rgb</path>
|
|
<x1>0.0429687</x1>
|
|
<y1>0.8320312</y1>
|
|
<x2>0.0703125</x2>
|
|
<y2>0.8945312</y2>
|
|
</texture>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<property>ai/models/aircraft[1]/radar/x-shift</property>
|
|
<scale>5.1</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<property>ai/models/aircraft[1]/radar/y-shift</property>
|
|
<scale>5.1</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>ai/models/aircraft[1]/radar/rotation</property>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>target2 - range 40</name>
|
|
<w>8</w>
|
|
<h>17</h>
|
|
<condition>
|
|
<and>
|
|
<less-than>
|
|
<property>ai/models/aircraft[2]/radar/range-nm</property>
|
|
<value>43</value>
|
|
</less-than>
|
|
<equals>
|
|
<property>/instrumentation/radar/range</property>
|
|
<value>40</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>ai/models/aircraft[2]/radar/range-nm</property>
|
|
<value>0</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/radar_misc.rgb</path>
|
|
<x1>0.0429687</x1>
|
|
<y1>0.8320312</y1>
|
|
<x2>0.0703125</x2>
|
|
<y2>0.8945312</y2>
|
|
</texture>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<property>ai/models/aircraft[2]/radar/x-shift</property>
|
|
<scale>2.55</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<property>ai/models/aircraft[2]/radar/y-shift</property>
|
|
<scale>2.55</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>ai/models/aircraft[2]/radar/rotation</property>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>target2 - range 20</name>
|
|
<w>8</w>
|
|
<h>17</h>
|
|
<condition>
|
|
<and>
|
|
<less-than>
|
|
<property>ai/models/aircraft[2]/radar/range-nm</property>
|
|
<value>22</value>
|
|
</less-than>
|
|
<equals>
|
|
<property>/instrumentation/radar/range</property>
|
|
<value>20</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>ai/models/aircraft[2]/radar/range-nm</property>
|
|
<value>0</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/radar_misc.rgb</path>
|
|
<x1>0.0429687</x1>
|
|
<y1>0.8320312</y1>
|
|
<x2>0.0703125</x2>
|
|
<y2>0.8945312</y2>
|
|
</texture>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<property>ai/models/aircraft[2]/radar/x-shift</property>
|
|
<scale>5.1</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<property>ai/models/aircraft[2]/radar/y-shift</property>
|
|
<scale>5.1</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>ai/models/aircraft[2]/radar/rotation</property>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>frame</name>
|
|
<w>256</w>
|
|
<h>256</h>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/radar_frame.rgb</path>
|
|
<x1>0</x1>
|
|
<y1>0</y1>
|
|
<x2>1</x2>
|
|
<y2>1</y2>
|
|
</texture>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>range knob</name>
|
|
<condition>
|
|
<equals>
|
|
<property>instrumentation/radar/range</property>
|
|
<value>20</value>
|
|
</equals>
|
|
</condition>
|
|
<w>22</w>
|
|
<h>22</h>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/radar_misc.rgb</path>
|
|
<x1>0.0273437</x1>
|
|
<y1>0.9101562</y1>
|
|
<x2>0.0898437</x2>
|
|
<y2>0.9765662</y2>
|
|
</texture>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<offset>-108</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<offset>-112</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<offset>-45</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>range knob</name>
|
|
<condition>
|
|
<equals>
|
|
<property>instrumentation/radar/range</property>
|
|
<value>40</value>
|
|
</equals>
|
|
</condition>
|
|
<w>22</w>
|
|
<h>22</h>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/radar_misc.rgb</path>
|
|
<x1>0.0273437</x1>
|
|
<y1>0.9101562</y1>
|
|
<x2>0.0898437</x2>
|
|
<y2>0.9765662</y2>
|
|
</texture>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<offset>-108</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<offset>-112</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<offset>40</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>altitude</name>
|
|
<type>text</type>
|
|
<font>led</font>
|
|
<point-size>6</point-size>
|
|
<color>
|
|
<red>0.96</red>
|
|
<green>1.0</green>
|
|
<blue>0.96</blue>
|
|
</color>
|
|
<chunks>
|
|
<chunk>
|
|
<type>number-value</type>
|
|
<property>ai/models/aircraft[1]/position/altitude-ft</property>
|
|
<scale>0.001</scale>
|
|
<format>%2.1f</format>
|
|
</chunk>
|
|
</chunks>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<offset>85</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<offset>-121</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>outer range ring</name>
|
|
<type>text</type>
|
|
<font>led</font>
|
|
<point-size>6</point-size>
|
|
<color>
|
|
<red>0.96</red>
|
|
<green>1.0</green>
|
|
<blue>0.96</blue>
|
|
</color>
|
|
<chunks>
|
|
<chunk>
|
|
<type>number-value</type>
|
|
<property>instrumentation/radar/range</property>
|
|
<format>%2.0f</format>
|
|
</chunk>
|
|
</chunks>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<offset>-90</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<offset>66</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>inner range ring</name>
|
|
<type>text</type>
|
|
<font>led</font>
|
|
<point-size>6</point-size>
|
|
<color>
|
|
<red>0.96</red>
|
|
<green>1.0</green>
|
|
<blue>0.96</blue>
|
|
</color>
|
|
<chunks>
|
|
<chunk>
|
|
<type>number-value</type>
|
|
<property>instrumentation/radar/range</property>
|
|
<scale>0.5</scale>
|
|
<format>%2.0f</format>
|
|
</chunk>
|
|
</chunks>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<offset>-50</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<offset>32</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
</layers>
|
|
|
|
<actions>
|
|
|
|
<action>
|
|
<name>set range 40</name>
|
|
<button>0</button>
|
|
<x>-120</x>
|
|
<y>-120</y>
|
|
<w>35</w>
|
|
<h>35</h>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/radar/range</property>
|
|
<value>20</value>
|
|
</equals>
|
|
</condition>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/radar/range</property>
|
|
<value>40</value>
|
|
</binding>
|
|
</action>
|
|
|
|
<action>
|
|
<name>set range 20</name>
|
|
<button>0</button>
|
|
<x>-120</x>
|
|
<y>-120</y>
|
|
<w>35</w>
|
|
<h>35</h>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/radar/range</property>
|
|
<value>40</value>
|
|
</equals>
|
|
</condition>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/radar/range</property>
|
|
<value>20</value>
|
|
</binding>
|
|
</action>
|
|
|
|
<action>
|
|
<name>minimize</name>
|
|
<button>0</button>
|
|
<x>112</x>
|
|
<y>112</y>
|
|
<w>16</w>
|
|
<h>16</h>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/radar/minimized</property>
|
|
<value>true</value>
|
|
</binding>
|
|
</action>
|
|
|
|
|
|
</actions>
|
|
|
|
</PropertyList>
|