Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 12997

Summary: app-games/cube hangs when browsing multiplayer servers
Product: Gentoo Linux Reporter: Dave Smith (lanalyst) <dmsmith>
Component: New packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.4_rc1   
Hardware: x86   
OS: Linux   
URL: http://wouter.fov120.com/cube/forum.php4?action=display_thread&thread_id=150
Whiteboard:
Package list:
Runtime testing required: ---

Description Dave Smith (lanalyst) 2002-12-31 19:48:00 UTC
This is confirmed on 2 gentoo systems - esc.. select multiplayer.. server
browser appears.. select a server: program as well as X hangs.  ctrl-alt-bksp
required. Announcement of the problem is located at URL above.

There is a patch available for this located at: 

http://tunes.org/~eihrul/enet_2002_10_28.tar.gz

Please apply to ebuild.

Thanks.

Dave 
(lanalyst)
Comment 1 SpanKY gentoo-dev 2002-12-31 22:48:54 UTC
thats not a patch, thats a repkg of the enet directory heh

try her out and see how she fares :)

http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/cube/cube-20021020-r1.ebuild?rev=1.1&content-type=text/vnd.viewcvs-markup
Comment 2 Dave Smith (lanalyst) 2003-01-04 01:24:47 UTC
The patch/enet rpkg corrects the looping situation however multiplayer is still
not functional with the network.  Active servers are marked [different cube
protocol] and cannot join. I poked around their forums for answers and ran
across this:

by SleepwalkR on 10/17/2002 09:26 through 217.80.117.70 in Web-based server browser

For obvious reasons, I won't include the code that implements the network
protocol used in the current Cube binaries, neither as source nor as binary
files. You will have to write your own plugin to handle the protocols you want
to use in your own game.

'Obvious reasons' probably meaning that someone could conceivably hack the code
and create quite a cheat version.  The source is apparently provided if someone
would like to develop their own game based on their engine.

Additionaly, the readme.txt in the src directory explains how this works with
the licensing:

3. release the sources with an incompatible network protocol or other changes

   compared to the binaries you release.


For the cube's own game I chose option 3, i.e. you can only play the official

cube game using the binaries supplied by me, and you can't compile your own
clients for multiplayer use (you can still make custom clients that work with
matching
 custom servers, or play cube single player maps compatible with the real thing).
 This situation is not ideal, but there is no easy way around it.

Anyway, it seems this ebuild has to be a binary install.  The current linux
binaries for the recursion bug of 10/28 are located at:

http://tunes.org/~eihrul/cube_linux_clients_2002_10_28.tar.gz

Sorry for the trouble...

Dave
(lanalyst)