Re: [Flightgear-devel] aircraft search

2010-07-24 Thread James Turner
On 23 Jul 2010, at 21:03, Alex Romosan wrote: on non ext* file systems readdir doesn't return the file type in d_type so this explains why i kept getting an empty list for show-aircraft (my flightgear directory is on reiserfs). i've already sent the patch to james, but maybe somebody else

Re: [Flightgear-devel] aircraft search

2010-07-24 Thread jean pellotier
Le 23/07/2010 22:03, Alex Romosan a écrit : Alex Romosanromo...@sycorax.lbl.gov writes: James Turnerja...@bugless.co.uk writes: Can you email me what you get for --show-aircraft? (off list, is best) fgfs --show-aircraft Available aircraft: (that is nothing). this

Re: [Flightgear-devel] aircraft search

2010-07-24 Thread Lance Levsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 We're good here. No problem loading the aircraft on XFS. Thanks for your work James and Alex! Cheers, lance On 10-07-24 03:32 AM, James Turner wrote: I've just pushed an equivalent patch to Gitorious, as always, please let me know if anyone

Re: [Flightgear-devel] aircraft search

2010-07-23 Thread James Turner
I've committed various tweaks to the path/directory code - if you were having difficulties, please update SimGear and try again. In particular, the Win32 broken-ness should be gone - I've tested various aircraft, and --show-aircraft, on Windows and Unix, and things seem fine to me. Alex and

Re: [Flightgear-devel] aircraft search

2010-07-23 Thread Alan Teeder
Subject: Re: [Flightgear-devel] aircraft search I've committed various tweaks to the path/directory code - if you were having difficulties, please update SimGear and try again. In particular, the Win32 broken-ness should be gone - I've tested various aircraft, and --show-aircraft, on Windows

Re: [Flightgear-devel] aircraft search

2010-07-23 Thread Alex Romosan
James Turner zakal...@mac.com writes: Alex and Lance, I'm still confused as to the failures you are seeing. Assuming you're still seeing same issues after updating (and anyone else who is seeing something similar), I will make up a debug patch to see what's going on. still doesn't work for

Re: [Flightgear-devel] aircraft search

2010-07-23 Thread James Turner
On 23 Jul 2010, at 12:42, Alan Teeder wrote: All seems well with aircraft search and and the plib change here. Excellent, thanks for the report. James -- This SF.net email is sponsored by Sprint What will you do

Re: [Flightgear-devel] aircraft search

2010-07-23 Thread James Turner
On 23 Jul 2010, at 13:45, Alex Romosan wrote: Alex and Lance, I'm still confused as to the failures you are seeing. Assuming you're still seeing same issues after updating (and anyone else who is seeing something similar), I will make up a debug patch to see what's going on. still doesn't

Re: [Flightgear-devel] aircraft search

2010-07-23 Thread Alex Romosan
James Turner zakal...@mac.com writes: My basic plan is to send you a patch that adds many log calls, and get you to send me the console output with that applied. If you can get me an ssh login to a box with debug-enabled fgfs, I can do it in GDB, of course. post the patch, i'll give it a

Re: [Flightgear-devel] aircraft search

2010-07-23 Thread Alex Romosan
Alex Romosan romo...@sycorax.lbl.gov writes: James Turner ja...@bugless.co.uk writes: Can you email me what you get for --show-aircraft? (off list, is best) fgfs --show-aircraft Available aircraft: (that is nothing). this on linux. on non ext* file systems readdir doesn't return the

Re: [Flightgear-devel] aircraft search

2010-07-21 Thread James Turner
On 21 Jul 2010, at 01:15, Alex Romosan wrote: i noticed something even stranger. for me, if the aircraft file matches the directory name then i can load it using --aircraft=aircraft syntax (tried it with f16, f-14b, b1900d and some others). if it doesn't (p61 and x35) then i get: Cannot

Re: [Flightgear-devel] aircraft search

2010-07-21 Thread Roland Haeder
Hi James, for me, updated GIT version from this morning, the p61 works fine. :) But BTW: --show-aircraft gives me a strange listing: - SNIP --- Available aircraft: 14bis-set.xml14bis Santos DUMONT 21-set.xml Santos Dumont N 21 Demoiselle

Re: [Flightgear-devel] aircraft search

2010-07-21 Thread James Turner
On 21 Jul 2010, at 08:02, Roland Haeder wrote: But BTW: --show-aircraft gives me a strange listing: - SNIP --- Available aircraft: 14bis-set.xml14bis Santos DUMONT 21-set.xml Santos Dumont N 21 Demoiselle 707-set.xml Boeing

Re: [Flightgear-devel] aircraft search

2010-07-21 Thread James Turner
On 20 Jul 2010, at 23:14, James Turner wrote: I get the same parsing error in Linux if a Aircraft-Directory is linked (Soft- Link) to fgdata/Aircraft. If I copy this Aircraft-Directory directly into fgdata/Aircraft everything works fine. A few days ago the linked Aircraft was still

Re: [Flightgear-devel] aircraft search

2010-07-21 Thread Alan Teeder
Debugging on my windows boxes fg_init.cxx line 21 is reached. if (_foundPath.str().empty()) { SG_LOG(SG_GENERAL, SG_ALERT, Cannot find specified aircraft: aircraft ); return false; aircaftDir is {path=C:/Flightgear/fgdata/Aircraft} aircraft is

Re: [Flightgear-devel] aircraft search

2010-07-21 Thread James Turner
On 21 Jul 2010, at 09:24, Alan Teeder wrote: Debugging on my windows boxes fg_init.cxx line 21 is reached. if (_foundPath.str().empty()) { SG_LOG(SG_GENERAL, SG_ALERT, Cannot find specified aircraft: aircraft ); return false; aircaftDir is

Re: [Flightgear-devel] aircraft search

2010-07-21 Thread Alan Teeder
-- From: James Turner zakal...@mac.com Sent: Wednesday, July 21, 2010 9:51 AM To: FlightGear developers discussions flightgear-devel@lists.sourceforge.net Subject: Re: [Flightgear-devel] aircraft search On 21 Jul 2010, at 09:24, Alan Teeder

Re: [Flightgear-devel] aircraft search

2010-07-21 Thread James Turner
On 21 Jul 2010, at 11:40, Alan Teeder wrote: and the result was: fgFindAircraftInDir: no such path:C:/Flightgear/fgdata/Aircraft Single stepping the debugger showed that fopen in simgear SGPath::exists() failed. Interesting - I only discovered this morning that SGPath::exists() uses

Re: [Flightgear-devel] aircraft search

2010-07-21 Thread Alex Romosan
James Turner ja...@bugless.co.uk writes: Can you email me what you get for --show-aircraft? (off list, is best) fgfs --show-aircraft Available aircraft: (that is nothing). this on linux. --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the

Re: [Flightgear-devel] aircraft search

2010-07-20 Thread Alan Teeder
The current git build does not run on either of my Vista or Xp systems. The release build just has a windows box saying that fgfs.exe has stopped working. The DOS window gets as far as loading scenario nimitz demo and loading scenario aircraft demo. Attempts at debugging fail as FG shuts down

Re: [Flightgear-devel] aircraft search

2010-07-20 Thread James Turner
On 20 Jul 2010, at 21:34, D-NXKT wrote: I get the same parsing error in Linux if a Aircraft-Directory is linked (Soft- Link) to fgdata/Aircraft. If I copy this Aircraft-Directory directly into fgdata/Aircraft everything works fine. A few days ago the linked Aircraft was still working.

Re: [Flightgear-devel] aircraft search

2010-07-20 Thread Alex Romosan
James Turner ja...@bugless.co.uk writes: dante:~$ fgfs --help Cannot find specified aircraft: b1900d Config option parsing failed ... All options command line options fail in the same way. (That's a little worrying actually.) Unfortunately that's due to how the --aircraft option is

Re: [Flightgear-devel] aircraft search

2010-07-19 Thread Lance Levsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am not sure if this is my issue or not, but I appear to be having troubles since this push. I pulled a fresh simgear and flightgear from gitorious this morning, compiled and installed. I verified that this simgear was the only one on the system.

Re: [Flightgear-devel] aircraft search

2010-07-19 Thread James Turner
On 19 Jul 2010, at 18:40, Lance Levsen wrote: Result: dante:~/Desktop/Source_Code/Flightgear/flightgear$ fgfs Cannot find specified aircraft: c172p Config option parsing failed ... Environment vars: FG_HOME=/home/lance/Desktop/Source_Code/Flightgear

Re: [Flightgear-devel] aircraft search

2010-07-19 Thread Lance Levsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Same, same. Sorry. :) I have a .fgfsrc which sets the b1900d as default. However, I also specified it on the cmdline. dante:~$ fgfs --show-aircraft Cannot find specified aircraft: b1900d Config option parsing failed ... dante:~$ fgfs

Re: [Flightgear-devel] aircraft search

2010-07-19 Thread James Turner
On 19 Jul 2010, at 21:04, Lance Levsen wrote: Same, same. Sorry. :) I have a .fgfsrc which sets the b1900d as default. However, I also specified it on the cmdline. dante:~$ fgfs --show-aircraft Cannot find specified aircraft: b1900d Config option parsing failed ... dante:~$ fgfs

Re: [Flightgear-devel] aircraft search

2010-07-18 Thread Martin Fenelon
On Saturday 17 July 2010 13:46, James Turner wrote: [snip] You will need an up-to-date SimGear (which includes the new simgear::Dir helper), and please let me know if you see any problems with aircraft -set loading; they're going to be apparent very quickly, since locating the -set.xml file

Re: [Flightgear-devel] aircraft search

2010-07-17 Thread Torsten Dreyer
I've pushed some changes to the aircraft search code, including the --show-aircraft option. We're no longer using PLIB ulDir to traverse directory structures (a couple more steps on the road to kill off PLIB), and aircraft searching is a unified code path - previously the actual