albertz / openlierox

OpenLieroX - Liero clone / Worms realtime / 2D shooter
http://openlierox.net
Other
263 stars 60 forks source link

0.59beta9 and 0.58rc3: strange network behaviour #533

Open albertz opened 13 years ago

albertz commented 13 years ago

Converted from SourceForge issue 2972783, submitted by albertzeyer

At the beginning, I was not sure if it was maybe a strange network lag or some other problem with my system. But I got the feeling that there is maybe a serious bug.

The bug is in net play as client on other servers (for example 0.59 beta7/8 dedicated server). I mostly cannot shoot at all and my shoots seem to appear only rarely. First I thought it was a very high lag but it seemed that other worms on the server were moving quite fluent and ping was about 100. Also, when I finally shot, it was always at the right place of my worm right now (so not really delayed). My second thought was maybe that my client loading time was for some reason much different than the server loading time. But this also cannot be as others could just shot normally and I also checked the server settings. When keeping the shot key down for several seconds, I got maybe one shot in 5 seconds or so. But I saw all other shots from other people immediately.

This was one strange behaviour. Some time later in another run, the feature array (on my client side) was totally fucked up (note that this was with 0.59 b8, so it shouldn't be related to earlier vartype problems - also the vartypes seemed all correct). It got very very strange settings (and because of that, also the game behaved very strange on my side).

Another idea was that maybe the packets were all truncated. This is strange though as the CChannel3 implementation has some CRC check which should fail then. Also this is strange because it would not explain why the movements were all fluent (so the unreliable packets which are at the end of the UDP packet) but everything else (all reliable packets) not.

Also, and this is most strange: I only have seen the bug (yet) in release build on my Gentoo system. I.e. when I install OLX through the system ebuild. I have seen this/similar behaviour in 0.58rc2 and 0.58rc3 (but not in 0.58rc1 - that is why I have not told our Gentoo mentor to update it yet) and in 0.59 beta8 (but not in 0.59 beta1 - beta7). Maybe I have missed it though in some of the other versions - not sure how carefully I tested them.

albertz commented 13 years ago

Submitted by albertzeyer

These are my parameters for building some package via a Gentoo ebuild:

CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -ggdb -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-O2 -march=nocona -ggdb -pipe"
LDFLAGS="-Wl,-O1"

albertz commented 13 years ago

Submitted by albertzeyer

Have anyone of you seen any similar behaviour / problems?

albertz commented 13 years ago

Submitted by dark_charlie

Not at all on Windows. There were similar problems (the keypresses seemed to be ignored) in the past but these were caused by some bug in SDL and disappeared after updating it.

albertz commented 13 years ago

Submitted by albertzeyer

Another intention I had was that maybe, most packets became highly corrupt (from client to server). Because of that, the server ignored most of it and thus most of my shots. But that would open many other questions like:

Why is that? My network is usually very good one and I started another OLX build at the same time and I could play normally there.

Wouldn't our CChannel implementation handle it if there are some broken packages?

albertz commented 13 years ago

Submitted by albertzeyer

problem still there in b9