[redirected to flightgear-devel]

Frederic Bouvier wrote:
> Melchior FRANZ wrote:
> > * Frederic Bouvier -- Sunday 16 November 2003 15:32:
> > > Are you using the binary distribution or do you compile FG 
> > > yourself ?
> > 
> > The xp version is the binary distribution as offered on the
> > fgfs site. My Linux version is selfcompiled (CVS/HEAD).
> 
> I finally tried the multiplayer options between a WinXP box and 
> a Linux box.
> 
> With the ( A320, p51d ) pair, no problem : I can see both from 
> either systems. I configured on to start on runway 28L while 
> the other is at runway 28R.
> 
> When a c172 is on one machine, I only got segfault on an animation
> not found. This animation is named ControlsGroup and I guess 
> that one object name referenced in this null animation no 
> longer exist in the .ac model. I say that because the 
> preceding one is analogous and works.
> 
> So I would say the multiplayer works, except when there is a c172.

It seems that this animation refers to 'PanelInstruments' that is 
a panel outside the model, so, when loaded with SGModelLib::load_model
the object is not found in the model and there is a non tested 
read access through a null pointer in sgMakeAnimation. 

This path makes things go better :

D:\FlightGear\cvs\SimGear\simgear\scene\model>cvs diff -u model.cxx
Index: model.cxx
===================================================================
RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/scene/model/model.cxx,v
retrieving revision 1.11
diff -u -r1.11 model.cxx
--- model.cxx   28 Sep 2003 08:38:48 -0000      1.11
+++ model.cxx   16 Nov 2003 23:36:49 -0000
@@ -150,6 +150,9 @@
   } else {
     object = model;
   }
+
+  if ( animation == 0 )
+     return;

   ssgBranch * branch = animation->getBranch();
   splice_branch(branch, object);

BTW: it is funny ( but not inexplicable ) that the other model is 
animated but with the input of the current aircraft : push the 
throttle and you will see the propeller of the foreign model 
accelerate.

-Fred



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to