hi Emilian,
On 20 Sep 2011, at 22:56, Emilian Huminiuc wrote:
>>
> Adding archive="y" to the property tag?:
> <new-archived-property archive="y">myprop</new-archived-property>
>
That's how I thought it should work, but I don't get this to work. After some
more experimentation, I found that I can save the property using
userarchive="y", into autosave.xml. But using "archive" doesn't seem to work.
My hypothesis is that "userarchive" save a property globally, whereas "archive"
saves it into the local, aircraft specific (.fgfs/aircraft-data/777-200ER.xml)
file. But,I couldn't find these properties anywhere.
Incidentally, I did find a few "interesting things". Taking
/sim/aircraft-operaror as an example, I added:
<sim>
<aircraft-operator userarchive="y">NONE</aircraft-operator>
</sim>
to the 777-200ER-set.xml file, and added
<sim>
<aircraft-operator>DAL</aircraft-operator>
</sim>
<sim>
<aircraft-operator>KLM</aircraft-operator>
</sim>
<sim>
<aircraft-operator>BAW</aircraft-operator>
</sim>
To the DAL, KLM, and BAW .xml fles in Models/Liveries, assuming that these
would override the values of the already existing properties. However that's
not what happens: This way the property value does not get saved, presumably
because it destroys the original property object and replaces it with a new one
that doesn't carry the "userarchive" flag. Is that correct? After adding the
"userarchive" flag, to the properties in the Livery xml files, I found that
they were saved again.
Finally, I would be perfectly happy to just use the value stored in the livery
xml file, but the problem here is that the aircraft model is only read AFTER
the initial position has been calculated. At that point, the
<aircraft-operator> property is still set to the default value of NONE, which
essentially makes it useless. If there would be other ways to retrieve a
property from the currently selected livery xml file that I would also be
interested in hearing that.
So close, yet so far away...
cheers,
Durk
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel