Re: [Flightgear-devel] aircraft search
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 also wants to give it a try (works for me). I've just pushed an equivalent patch to Gitorious, as always, please let me know if anyone discovers problems. If anyone can easily run Cygwin or a non-Linux, non-Mac Unix (FreeBSD being the obvious example), it would probably be good to verify the code is sane on those platforms. Huge thanks to Alex for his help and patience figuring this one out! James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 on linux. 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 also wants to give it a try (works for me). --show-aircraft works here with the patch, same as you, datas on a reiserfs file system, and now planes which were impossible to lauch are ok . jano -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
-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 discovers problems. If anyone can easily run Cygwin or a non-Linux, non-Mac Unix (FreeBSD being the obvious example), it would probably be good to verify the code is sane on those platforms. Huge thanks to Alex for his help and patience figuring this one out! James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel - -- Lance Levsen, Catprint Computing Tel: (306) 493-2278 Cell: (306) 230-8783 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxLB5sACgkQWSOc2vLaechWkQCfWRRZ9BdHe1f1Lj+ONyTfXhYw p+YAoKbaf6SVgdMTNeHv+wmu2TQXrnHI =5t/e -END PGP SIGNATURE- -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
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 and Unix, and things seem fine to me. 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. Thanks, James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
James Many thanks All seems well with aircraft search and and the plib change here. Alan -- From: James Turner zakal...@mac.com Sent: Friday, July 23, 2010 8:02 AM To: FlightGear developers discussions flightgear-devel@lists.sourceforge.net 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 and Unix, and things seem fine to me. 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. Thanks, James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 me (same behaviour). i'll try to find some time and figure out what's going on. --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. | -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 work for me (same behaviour). i'll try to find some time and figure out what's going on. 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. Other suggestions welcome. James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 try. --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. | -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 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 also wants to give it a try (works for me). diff --git a/simgear/misc/sg_dir.cxx b/simgear/misc/sg_dir.cxx index 9c5aa78..64232c3 100644 --- a/simgear/misc/sg_dir.cxx +++ b/simgear/misc/sg_dir.cxx @@ -119,25 +119,11 @@ PathList Dir::children(int types, const std::string nameFilter) const continue; } -int type = entry-d_type; -if (type == DT_LNK) { - // find symlink target type using stat() - struct stat s; - if (stat(file(entry-d_name).c_str(), s)) { -continue; // stat() failed - } - - if (S_ISDIR(s.st_mode)) { -type = DT_DIR; - } else if (S_ISREG(s.st_mode)) { -type = DT_REG; - } else { -// symlink to block/fifo/char file, ignore -continue; - } -} // of symlink look-through - -if (type == DT_DIR) { +struct stat st; +if(stat(file(entry-d_name).c_str(), st)) + continue; // stat() failed + +if (S_ISDIR(st.st_mode)) { if (!(types TYPE_DIR)) { continue; } @@ -147,7 +133,7 @@ PathList Dir::children(int types, const std::string nameFilter) const continue; } } -} else if (type == DT_REG) { +} else if (S_ISREG(st.st_mode)) { if (!(types TYPE_FILE)) { continue; } --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. | -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 find specified aircraft: p61 Config option parsing failed ... i tried it with and without a .fgfsrc file with the same results. this is with the latest from git. Can you email me what you get for --show-aircraft? (off list, is best) Also, are you on Windows or Unix? James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 707-set.xml Boeing 707 [...] - SNAP --- I shorten it, all entries look the same way. Roland signature.asc Description: This is a digitally signed message part -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 707 [...] - SNAP --- I shorten it, all entries look the same way. What's strange about this? Is this the problem of adding -set.xml to the names (I will fix that), or something else? James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 working. Maybe this observation helps for debugging?! Indeed it does - my symlink handling needs some work, I suppose. Expect a patch in the next few days. I have a local fix for the symlink issue - which should only affect Unix (including Mac), not Windows - will commit this evening. James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 isc172p Directory C:\FlightGear\fgdata\Aircraft\c172p exists on my system. Alan -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 {path=C:/Flightgear/fgdata/Aircraft} aircraft isc172p Directory C:\FlightGear\fgdata\Aircraft\c172p exists on my system. Can you add some logging in the search functions, to see which directories it is / isn't walking into? I tested on my MSVC box and it all seemed to work as expected, but I will test again this evening. Note at this point in the startup, SG_LOG has not yet processed the --log-level argument, so using std::cout to debug may be easier - this confused me before I understood the order thing are happening in, here. James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
-- 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 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 {path=C:/Flightgear/fgdata/Aircraft} aircraft isc172p Directory C:\FlightGear\fgdata\Aircraft\c172p exists on my system. Can you add some logging in the search functions, to see which directories it is / isn't walking into? I tested on my MSVC box and it all seemed to work as expected, but I will test again this evening. Note at this point in the startup, SG_LOG has not yet processed the --log-level argument, so using std::cout to debug may be easier - this confused me before I understood the order thing are happening in, here. James I edited line 507 of fg_init.cxx as log level ALERT works at this point void fgFindAircraftInDir(const SGPath dirPath, T* obj, bool (T::*pred)(const SGPath p)) { if (!dirPath.exists()) { SG_LOG(SG_GENERAL, SG_ALERT, fgFindAircraftInDir: no such path: dirPath.str()); return; } and the result was: fgFindAircraftInDir: no such path:C:/Flightgear/fgdata/Aircraft Single stepping the debugger showed that fopen in simgear SGPath::exists() failed. Alan -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 fopen() to check existence; I am planning to change it to use stat() on Unix - and now, I shall make the change on Windows too. Clearly there's some broken path handling going on too. I'll fix these issues this evening, and post here when I need people to test. James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. | -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 with :- 'fgfs.exe': Loaded 'C:\WINDOWS\system32\msacm32.dll' 'fgfs.exe': Loaded 'C:\WINDOWS\system32\midimap.dll' 'fgfs.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll' 'fgfs.exe': Unloaded 'C:\WINDOWS\system32\setupapi.dll' 'fgfs.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll' 'fgfs.exe': Unloaded 'C:\WINDOWS\system32\setupapi.dll' 'fgfs.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll' 'fgfs.exe': Unloaded 'C:\WINDOWS\system32\setupapi.dll' 'fgfs.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll' 'fgfs.exe': Unloaded 'C:\WINDOWS\system32\setupapi.dll' 'fgfs.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll' 'fgfs.exe': Unloaded 'C:\WINDOWS\system32\setupapi.dll' The thread 'Win32 Thread' (0x14b8) has exited with code -1 (0x). The program '[5360] fgfs.exe: Native' has exited with code -1 (0x).a error code -1. and I have no idea where to put breakpoint(s) to track this down. This is consistent on all aircraft that I have tested. Alan :-( -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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. Maybe this observation helps for debugging?! Indeed it does - my symlink handling needs some work, I suppose. Expect a patch in the next few days. James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 parsed - *before* most of the config files are loaded. You're on Unix, I infer from the paths you posted earlier ... hmm. Can you email me your .fgfsrc? 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 find specified aircraft: p61 Config option parsing failed ... i tried it with and without a .fgfsrc file with the same results. this is with the latest from git. --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. | -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
-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. 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 FG_ROOT=/home/lance/Desktop/Source_Code/Flightgear/fgdata FG_SCENERY=/home/lance/.fgfs/Scenery:/home/lance/Desktop/Source_Code/Flightgear/Scenery/ The c172p directory (and all others) are in ${FG_ROOT}/Aircraft/ It doesn't matter what options I use to fgfs, it dies in exactly the same way every time. Cheers, lance On 17/07/10 07:46 AM, James Turner wrote: 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 --aircraft option and --show-aircraft used unrelated code paths. 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 happens really early in the startup process. James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel - -- Lance Levsen, Catprint Computing Tel: (306) 493-2278 Cell: (306) 230-8783 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxEjfYACgkQWSOc2vLaechHnQCfVEIEdIepjFSAWWTq4BdAFVjF t6gAoNp9OJYunUSKaIOTKDRPWXSo75cj =W9OL -END PGP SIGNATURE- -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 FG_ROOT=/home/lance/Desktop/Source_Code/Flightgear/fgdata FG_SCENERY=/home/lance/.fgfs/Scenery:/home/lance/Desktop/Source_Code/Flightgear/Scenery/ The c172p directory (and all others) are in ${FG_ROOT}/Aircraft/ It doesn't matter what options I use to fgfs, it dies in exactly the same way every time. Does it work if you specify --aircraft=c172p explicitly? how about other aircraft? what does --show-aircraft list? I wonder if I have a bug picking up the default value James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
-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 --aircraft=b1900d Cannot find specified aircraft: b1900d Config option parsing failed ... dante:~$ fgfs --aircraft=777-200ER Cannot find specified aircraft: 777-200ER Config option parsing failed ... 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.) Cheers, lance On 19/07/10 01:55 PM, James Turner wrote: 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 FG_ROOT=/home/lance/Desktop/Source_Code/Flightgear/fgdata FG_SCENERY=/home/lance/.fgfs/Scenery:/home/lance/Desktop/Source_Code/Flightgear/Scenery/ The c172p directory (and all others) are in ${FG_ROOT}/Aircraft/ It doesn't matter what options I use to fgfs, it dies in exactly the same way every time. Does it work if you specify --aircraft=c172p explicitly? how about other aircraft? what does --show-aircraft list? I wonder if I have a bug picking up the default value James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel - -- Lance Levsen, Catprint Computing Tel: (306) 493-2278 Cell: (306) 230-8783 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxEr8YACgkQWSOc2vLaecj5JwCeKGttEqjjmk4x/OeD7W8rNBCP Q8oAoNrpRWAi1JijXx6Cq5UqXmkpl0/8 =y2jz -END PGP SIGNATURE- -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 --aircraft=b1900d Cannot find specified aircraft: b1900d Config option parsing failed ... dante:~$ fgfs --aircraft=777-200ER Cannot find specified aircraft: 777-200ER Config option parsing failed ... 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 parsed - *before* most of the config files are loaded. You're on Unix, I infer from the paths you posted earlier ... hmm. Can you email me your .fgfsrc? James -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 happens really early in the startup process. Hello James, Certainly does seem quicker but aircraft are shown as whatever-set.xml. Would it be possible to remove the -set.xml from the listed output? Martin. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] aircraft search
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 --aircraft option and --show-aircraft used unrelated code paths. 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 happens really early in the startup process. Works flawlessly here. Torsten -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel