On Tue, 2009-05-05 at 09:46 -0700, Hannes Schweikl wrote: > Hi, > > > > I am trying to define an additional view which is looking from the > current aircraft position to the waypoint (lon,lat)@ground-elevation > the aircraft is approaching. After going thru the howto on the > flightgear wiki, I would do it the following way:
<snip> > I added these lines to preferences.xml. After adding that, I had to > change line 530 in view.nas to: if (index > 7 and index < 100) in > order to get rid of a nasal error caused by the increased # of views. > I am not sure, if that is the way to go to. I didn’t like the idea to > change some line in some random file in order to get my additional > view working. What would be the appropriate way to add a view? This is an easy question, so I'll answer it. :) Our concept is views <100 are system views, user views are >100. If you had added your view in the aircraft -set file and made its number over 100 you would not have had an error. Since you modified preferences.xml, which, despite the name, is not intended as a preferences file, and added a view to the system set, you have to beat on the system to have it accepted. You could/should have said <view n="100"> ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Flightgear-users mailing list Flightgear-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-users