Re: [Flightgear-devel] c172p-dual-pilot broken
On Fri, 20 Mar 2009, Torsten Dreyer wrote: > I followed your advice and didn't rush ;-) > No problem with the nasal wrapper for the animations. > Do you have a "generic" interface for the properties for the remote aircraft? > Are they transmitted via the generic multiplayer values? Hi, They are "packed" into a set of generic MP properties for transmission using a set utility components (in ZLT-NT/DualControl/pilot-dual-control.nas). The best structure I currently have is that the instrument's nasal module provides functions that return the configuration pieces needed to configure such utility components for the instrument (which is done at the per-aircraft level). E.g. the aircraft might use a MP property to encode 32 switches/buttons - that encoder component would be configured with to handle switches from from several instruments. > It should be cool to have a single instrument to be used for both of the > dual-control aircraft. Hmm, I suppose you mean for both the normal and the dual control aircraft? To make an instrument dual control enabled one does not, at least in principle, need to modify the instrument 3d object at all, and the XML model file only if the pick animations isn't already going through Nasal wrappers. So what is needed is a modified Nasal module for the instrument but (except for the code bloat) it would work fine also for the single user case (since it anyway has to work when there isn't any copilot around). However, in practice I ended up forking the 3d objects too for quite a few instruments since I wanted to use a different pick animation style (I don't fancy the "hotspot" rectangles :) (But OTOH my input style is not friendly to people without a mouse wheel and/or MMB.) Speaking of that, maybe we should try to figure out a common style or best practice for pick animations? I like the "point at the control", LMB inc, MMB dec and mouse wheel inc/dec style, but it isn't too friendly to people without a fully featured :) pointing device. I'm not too fond of the flat "hotspot like" rectangles since they end up in non obvious places when the instrument is far away on the other side of the cockpit. > I am very much interested in this feature to implement it into the SenecaII, > but I feared so far, that I have to double all instruments. > I haven't spent to much time yet to understand how dual control works, though. Gearing up the SenecaII for dual control will be a handful, yes :) But I think you can do it with it without changing your 3d objects - only XML and Nasal work needed. Look in Aircraft/ZLT-NT/Systems/ZLT-NT-dual-control.nas to get some idea of the per-aircraft configuration. Aircraft/ZLT-NT/DualControl/Instruments/VHF-22/ctl22.nas is an example of a dual control instrument. One could imagine splitting such a instrument module into the basic single user instrument and a module that (when needed) can wrap around it and add the dual control parts while still using the original module for the actual operations of the instrument. Hmm, that's yet another item on my TODO list :) Cheers, Anders -- --- Anders Gidenstam WWW: http://www.gidenstam.org/FlightGear/ -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] c172p-dual-pilot broken
> In the longer run it would be nice to merge the dual control > functionallity into the kx165 units in Instruments-3d instead of having > separate versions. I'll look into it within the next two or three days. Torsten -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] c172p-dual-pilot broken
Anders Gidenstam a écrit : > Done and it seems to work. It is available here: > http://www.gidenstam.org/FlightGear/DualControl/ > > (Btw, as far as I could see the previous version there carried its > own copies of the KX165 radios - are you sure you had the latest version > installed?) > In the longer run it would be nice to merge the dual control > functionallity into the kx165 units in Instruments-3d instead of having > separate versions. > > Cheers, > > Anders > thank you for the quick reply, you are right, I was thinking it was included in CVS, and forgot it was an add-on , sorry for the noise :) jano -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] c172p-dual-pilot broken
On Wed, 11 Mar 2009, Anders Gidenstam wrote: > > On Wed, March 11, 2009 9:37 am, jean pellotier wrote: >> hi, trying the c172p dual pilot, it don't load, saying it can't find >> the file: >> >> Aircraft/SenecaII/Instruments-3d/kx165tso1.xml >> >> wich don't exist anymore! > > I'll try to dig that version (old 3d model + the instruments in > DualControl) out of my local CVS this evening and upload it to my site. Done and it seems to work. It is available here: http://www.gidenstam.org/FlightGear/DualControl/ (Btw, as far as I could see the previous version there carried its own copies of the KX165 radios - are you sure you had the latest version installed?) In the longer run it would be nice to merge the dual control functionallity into the kx165 units in Instruments-3d instead of having separate versions. Cheers, Anders -- --- Anders Gidenstam WWW: http://www.gidenstam.org/FlightGear/ -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] c172p-dual-pilot broken
On Wed, March 11, 2009 9:37 am, jean pellotier wrote: > hi, trying the c172p dual pilot, it don't load, saying it can't find > the file: > > Aircraft/SenecaII/Instruments-3d/kx165tso1.xml > > wich don't exist anymore! > > i removed the references to this file and it load fine, but i don't have > the radios, any way to make them come back? Hi, The dual control c172p is overdue for an update. (IIRC it is stuck in a half done conversion to the new c172p 3d model in my local tree). As an intermediate solution you could try switching to the radios in Aircraft/ZLT-NT/DualControl/Instruments/KX165/ which encapsulates the dual control logic for the radios in the radio's Nasal file rather than having it all in the aircraft (should make reuse in other aircraft much easier). However, this means the c172p-dual-control.nas file will need to be changed too. I'll try to dig that version (old 3d model + the instruments in DualControl) out of my local CVS this evening and upload it to my site. Cheers, Anders -- Anders Gidenstam WWW: http://www.gidenstam.org/FlightGear -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel