Re: [Flightgear-devel] --fg-aircraft and multiplayer..aircraft not found?
On 20 Jan 2011, at 23:47, Jacob Burbach wrote: Ok, that does raise another question then. In order for the 'wrong' method to work in any fashion, means you have to be recursively searching the path given by --fg-aircraft...right? Seems odd, and certainly serves to create ambiguity and confusionso why are we doing that? Would it not be much simpler to only search the top level directories located under the path given with --fg-aircraft for the set.xml or model.xml in question? Then you either give it the right path and it works, or you don't, and it doesn't. Actually the search has *always* been recursive - for years, by the look of it. I use the same (refactored) code to support all aircraft dirs, both the default one in fg-data, and the additional ones. Obviously I didn't want to break the existing support for the recursive search, so I kept it - so it works for all aircraft dirs. You're absolutely correct that it creates some ambiguity and confusion (and makes the code a little bit more complex). If that cost is judged to exceed that of removing an existing feature that *probably* nobody is using, I can remove it - the problem is sometimes when I do that, we discover much later that someone did actually want/like/need the feature :) James -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] --fg-aircraft and multiplayer..aircraft not found?
On Fri, Jan 21, 2011 at 3:56 AM, James Turner zakal...@mac.com wrote: Actually the search has *always* been recursive - for years, by the look of it. I use the same (refactored) code to support all aircraft dirs, both the default one in fg-data, and the additional ones. Obviously I didn't want to break the existing support for the recursive search, so I kept it - so it works for all aircraft dirs. You're absolutely correct that it creates some ambiguity and confusion (and makes the code a little bit more complex). If that cost is judged to exceed that of removing an existing feature that *probably* nobody is using, I can remove it - the problem is sometimes when I do that, we discover much later that someone did actually want/like/need the feature :) I see. Well if it is consistent with how aircraft loading normally works then it makes sense to keep it I guess. I've never came across an aircraft that used it myself, but yeah, that doesn't mean there isn't one out there. Does seem like an odd feature though, and one that could potentially increase the search time for a file in the aircraft directories...or even find wrong one in some circumstance. Perhaps it's something that should be reviewed and possibly deprecated for removal at a later date? May not be worth the trouble though... Anyway, thanks to everyone for helping me get my stuff sorted, I appreciate it. I'm still a bit baffled about why it works now but not before...but that's ok. :) cheers! -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] --fg-aircraft and multiplayer..aircraft not found?
On Thu, Jan 20, 2011 at 4:56 AM, Jacob Burbach wrote: Was just playing around a bit on MP and noticed that aircraft located in directories specified with --fg-aircraft do not seem to get picked up by multiplayer. The pilot list shows them as aircraft not installed in the pilots list, and you just get the good old yellow glider. Once I copied or linked the aircraft in question to $FG_ROOT/Aircraft or $FG_ROOT/AI/Aircraft, they are then found. Anyone else notice this...is it a feature, a bug, or just some mistake on my end somewhere? It didn't work with MP initially - but that was fixed months ago. I'd been using this with MP a quite a lot afterwards. And I guess you're using a recent build, so it should work, though I haven't tested it in recent weeks. There is a missing feature with the $FG_ROOT/AI/Aircraft: the AI/Aircraft models have to be in FGDATA - these don't work with --fg-aircraft yet, only the main models do. Also, only a single --fg-aircraft command-line argument is supported. If it's still not working for you, then which OS are you running (you have a proper filesystem supporting directory links, so probably not Windows ;) ), what's the exact command-line and also how does the directory structure in your --fg-aircraft directory look, i.e. are you using an Aircraft subdirectory? cheers, Thorsten -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] --fg-aircraft and multiplayer..aircraft not found?
On Thu, Jan 20, 2011 at 3:01 AM, ThorstenB bre...@gmail.com wrote: It didn't work with MP initially - but that was fixed months ago. I'd been using this with MP a quite a lot afterwards. And I guess you're using a recent build, so it should work, though I haven't tested it in recent weeks. There is a missing feature with the $FG_ROOT/AI/Aircraft: the AI/Aircraft models have to be in FGDATA - these don't work with --fg-aircraft yet, only the main models do. Also, only a single --fg-aircraft command-line argument is supported. If it's still not working for you, then which OS are you running (you have a proper filesystem supporting directory links, so probably not Windows ;) ), what's the exact command-line and also how does the directory structure in your --fg-aircraft directory look, i.e. are you using an Aircraft subdirectory? Hmm, does not work here for me. Aircraft from outside FG_ROOT are not getting picked up with MP. I am using Ubuntu Linux, recent git build, and have --fg-aircraft set to $HOME/FlightGear which contains an Aircraft directory where the aircraft are located. Command line is just standard --multiplay options along with --aircraft and --airport selections. cheers --Jacob -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] --fg-aircraft and multiplayer..aircraft not found?
On 20 Jan 2011, at 16:58, Jacob Burbach wrote: Hmm, does not work here for me. Aircraft from outside FG_ROOT are not getting picked up with MP. I am using Ubuntu Linux, recent git build, and have --fg-aircraft set to $HOME/FlightGear which contains an Aircraft directory where the aircraft are located. Command line is just standard --multiplay options along with --aircraft and --airport selections. That won't work, you need: --fg-aircraft set to $HOME/FlightGear/Aircraft (This changed half-way through the development of the --fg-aircraft feature, and I should add code to detect it and warn/fix this case, since it has tripped up several people) James -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] --fg-aircraft and multiplayer..aircraft not found?
On Thu, Jan 20, 2011 at 12:06 PM, James Turner zakal...@mac.com wrote: That won't work, you need: --fg-aircraft set to $HOME/FlightGear/Aircraft (This changed half-way through the development of the --fg-aircraft feature, and I should add code to detect it and warn/fix this case, since it has tripped up several people) James Oh...but previously we had discussion (December?) in regards to IO permissions 'not' working if you used an Aircraft directory directly and had to use only a directory 'containing' an Aircraft directory. This must be a fairly recent change then I guess? -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] --fg-aircraft and multiplayer..aircraft not found?
On Thu, Jan 20, 2011 at 6:22 PM, Jacob Burbach wrote: Oh...but previously we had discussion (December?) in regards to IO permissions 'not' working if you used an Aircraft directory directly and had to use only a directory 'containing' an Aircraft directory. This must be a fairly recent change then I guess? I'm not aware of any IO permission discussions. But I'm also _not_ using an Aircraft subdirectory. It's been like this for a while now (at least since I started using it last September). Fix for multi-player aircraft was pushed in November. Try if it works for you after removing the subdirectory. Indeed, the directory structures are a bit confusing - a directory check/error messages would help here. cheers, Thorsten -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] --fg-aircraft and multiplayer..aircraft not found?
On 20 Jan 2011, at 17:22, Jacob Burbach wrote: Oh...but previously we had discussion (December?) in regards to IO permissions 'not' working if you used an Aircraft directory directly and had to use only a directory 'containing' an Aircraft directory. This must be a fairly recent change then I guess? Err, I suspect there's been some crossed wires here, but that's not what I *meant* (though maybe it's what I said, without realising). Nothing has changed in this area for several months, so I'm confused what state your setup was/is in, that half works, but not completely. (And, I'll code up the detect/warn/fix for an 'Aircraft' directory in the near future) James -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] --fg-aircraft and multiplayer..aircraft not found?
On Thu, Jan 20, 2011 at 4:59 PM, James Turner zakal...@mac.com wrote: Nothing has changed in this area for several months, so I'm confused what state your setup was/is in, that half works, but not completely. Interesting. :) Ok, so may layout is like so: Top level aircraft directory, which contains individual aircraft directories. $HOME/FlightGear/Aircraft So then, aircraft would be like so $HOME/FlightGear/Aircraft/FOO/FOO-set.xml $HOME/FlightGear/Aircraft/BAR/BAR-set.xml Originally I had --fg-aircraft pointed to the top level aircraft directory $HOME/FlightGear/Aircraft. However, though it found the aircraft this way, I was getting permissions errors from aircraft that made use of any IO methods such as loadxml. That was when I brought it up on the list back in December and took away from that that I should not specify $HOME/FlightGear/Aircraft, but $HOME/FlightGear. Perhaps that was a miscommunicationbut it did indeed work fine that way, aircraft were loaded, no permissions errors...all good. It was only recently I noticed that those aircraft are not found by the MP code though, for whatever reason. Now from this discussion I'm getting that I 'should' be passing my $HOME/FlightGear/Aircraft as I had originally. And now that does work, mp finds them, and no permissions errors. So if nothing has changed, I am really baffled about that one. :) So then, once and for all, so there is no mistaking.which way 'is' the right way? cheers! -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] --fg-aircraft and multiplayer..aircraft not found?
On 20 Jan 2011, at 23:02, Jacob Burbach wrote: Originally I had --fg-aircraft pointed to the top level aircraft directory $HOME/FlightGear/Aircraft. However, though it found the aircraft this way, I was getting permissions errors from aircraft that made use of any IO methods such as loadxml. That was when I brought it up on the list back in December and took away from that that I should not specify $HOME/FlightGear/Aircraft, but $HOME/FlightGear. Perhaps that was a miscommunicationbut it did indeed work fine that way, aircraft were loaded, no permissions errors...all good. Okay, there was miscommunication here, apologies. It was only recently I noticed that those aircraft are not found by the MP code though, for whatever reason. Now from this discussion I'm getting that I 'should' be passing my $HOME/FlightGear/Aircraft as I had originally. And now that does work, mp finds them, and no permissions errors. So if nothing has changed, I am really baffled about that one. :) This the correct way, and it's good (and a big relief!) to hear that it does work with Nasal scripts and MP. Unfortunately, you shall indeed be baffled, because to my knowledge nothing has changed in terms of the committed code and data. I'm not 100% sure about this, but certainly 95% sure - I haven't changed the behaviour myself, and I haven't observed any commits that would obviously affect this - but I might have missed a Nasal change. James -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] --fg-aircraft and multiplayer..aircraft not found?
Ok, that does raise another question then. In order for the 'wrong' method to work in any fashion, means you have to be recursively searching the path given by --fg-aircraft...right? Seems odd, and certainly serves to create ambiguity and confusionso why are we doing that? Would it not be much simpler to only search the top level directories located under the path given with --fg-aircraft for the set.xml or model.xml in question? Then you either give it the right path and it works, or you don't, and it doesn't. cheers! -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] --fg-aircraft and multiplayer..aircraft not found?
Was just playing around a bit on MP and noticed that aircraft located in directories specified with --fg-aircraft do not seem to get picked up by multiplayer. The pilot list shows them as aircraft not installed in the pilots list, and you just get the good old yellow glider. Once I copied or linked the aircraft in question to $FG_ROOT/Aircraft or $FG_ROOT/AI/Aircraft, they are then found. Anyone else notice this...is it a feature, a bug, or just some mistake on my end somewhere? cheers -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel