* Josh Babcock -- Wednesday 09 August 2006 20:03:
> Melchior FRANZ wrote:
> > getprop("/sim/fg-home")~"/"~aircraft_name~".xml", that is:

> Well, I already use /sim/model/<name>/ for aircraft specific stuff just
> to keep things neat.

Yes, it's a kind-of standard.



> For that reason I like the latter idea, though i would use something
> more descriptive like /sim/ac-saved-states/~b29. Home sounds to me like
> you are talking about people, not planes.

Huh? Is this supposed to be a path on the hard-disk? You are aware that
getprop("/sim/fg-home") resolves to the same path where autosave.xml is
put? This is $HOME/.fgfs/ on Unices, and something ugly on MS Windows.
And generating directories isn't possible with fgfs' nasal. So what
makes most sense is:

   getprop("/sim/fg-home")~"/"~aircraft_name~".xml"

which resolves under Linux with the bo105 to:

   /home/foo/.fgfs/bo105.xml

But this requires extra code in Nasal, while putting such settings in
autosave.xml doesn't.

m.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to