Re: [Flightgear-devel] Overhauling the networking code(was:Multiplayer crashes with unknown aircrafts, any solution?)

2005-07-27 Thread Andy Ross
Oliver Schroeder wrote: > Apperantly gcc under cygwin uses a different alignment for structs > than gcc under linux (I don't know which gcc version is used under > cygwin). At home I use gcc 3.3.6, and it reports: Yet another reason why blasting raw structures out an I/O channel (especially a net

Re: [Flightgear-devel] Overhauling the networking code(was:Multiplayer crashes with unknown aircrafts, any solution?)

2005-07-27 Thread Erik Hofman
Vivian Meazza wrote: This patch does not work for Cygwin. I'm not sure if Multiplayer ever worked under Cygwin. Norman Vine did a bit of quick diagnosis last night, and came up with a cause and a fix. Apparently Linux uses 4 bytes while Cygwin uses 8 as standard. I attach Norman's diff against

Re: [Flightgear-devel] Overhauling the networking code(was:Multiplayer crashes with unknown aircrafts, any solution?)

2005-07-27 Thread Oliver Schroeder
Vivian Meazza wrote: >This patch does not work for Cygwin. I'm not sure if Multiplayer ever worked >under Cygwin. > > >Norman Vine did a bit of quick diagnosis last night, and came up with a >cause and a fix. Apparently Linux uses 4 bytes while Cygwin uses 8 as >standard. > > > Apperantly gcc

RE: [Flightgear-devel] Overhauling the networking code(was:Multiplayer crashes with unknown aircrafts, any solution?)

2005-07-27 Thread Vivian Meazza
Mathias Fröhlich > Hi, > > On Sonntag 17 Juli 2005 10:16, Vivian Meazza wrote: > > Before we do any rework of the MP code, it works as is in 0.9.8 (with > some > > bugs), but it is fundamentally broken in CVS. In cvs the received > aircraft > > are displayed close to the observer, rather than i

Re: [Flightgear-devel] Overhauling the networking code(was:Multiplayer crashes with unknown aircrafts, any solution?)

2005-07-25 Thread Oliver Schroeder
Mathias Fröhlich wrote: >What is missing is a clear architecture indenpendent definition of the storage >layout >Also a 'protocol version' field in the message header will be a good idea IMO. >That way clients could distinguish if and how they should look at that binary >chunk. > > The ve

Re: [Flightgear-devel] Overhauling the networking code (was:Multiplayer crashes with unknown aircrafts, any solution?)

2005-07-24 Thread Oliver Schroeder
Mathias Fröhlich wrote: >The jitter removal patch was the cause for that. >But to be honest, that current multiplayer protocol cannot really work. >It transmits only offsets to the tile center without the information on which >tile it is. >This was more or less sufficient for the case we had the

Re: [Flightgear-devel] Overhauling the networking code (was:Multiplayer crashes with unknown aircrafts, any solution?)

2005-07-24 Thread Ampere K. Hardraade
On July 24, 2005 01:08 pm, Mathias Fröhlich wrote: > Since the fg_server only forwards the network packets without looking into > them, this will still work with that code. It would appear that fg_server is doing more than merely forwarding network packets now. Those who are using your patch are

Re: [Flightgear-devel] Overhauling the networking code(was:Multiplayer crashes with unknown aircrafts, any solution?)

2005-07-24 Thread Mathias Fröhlich
On Sonntag 24 Juli 2005 19:51, Vivian Meazza wrote: > That's got to be better than broken. Shame it's not backward compatible > though. Let's get it into cvs then we can move forward. > > Norman Vine came up with some modified code over on the IRC channel: > > "globals->get_multiplayer_tx_mgr()-> >

RE: [Flightgear-devel] Overhauling the networking code(was:Multiplayer crashes with unknown aircrafts, any solution?)

2005-07-24 Thread Vivian Meazza
Mathias Fröhlich > > On Sonntag 17 Juli 2005 10:16, Vivian Meazza wrote: > > Before we do any rework of the MP code, it works as is in 0.9.8 (with > some > > bugs), but it is fundamentally broken in CVS. In cvs the received > aircraft > > are displayed close to the observer, rather than in their

Re: [Flightgear-devel] Overhauling the networking code (was:Multiplayer crashes with unknown aircrafts, any solution?)

2005-07-24 Thread Mathias Fröhlich
Hi, On Sonntag 17 Juli 2005 10:16, Vivian Meazza wrote: > Before we do any rework of the MP code, it works as is in 0.9.8 (with some > bugs), but it is fundamentally broken in CVS. In cvs the received aircraft > are displayed close to the observer, rather than in their proper locations. > It work

RE: [Flightgear-devel] Overhauling the networking code (was:Multiplayer crashes with unknown aircrafts, any solution?)

2005-07-17 Thread Vivian Meazza
Mathias > Hi, > > this is a very good idea IMO. > I was thinking about a very similar approach but never had the time and > not > yet the actual need to follow that. > > If you do something like that, you might take care for the MATHWORKS guys > which use the network code like it is at the mom