Chapter 8: Setting Up a Game Server with BZFlag

 in
Excerpt from Linux Toys II by Christopher Negus. All-new toys in this edition include a MythTV entertainment center, eMoviX bootable home movies, a BZFlag game client and server, and an Icecast Internet radio station, plus five more. Companion Web site, LinuxToys.net, provides information for further enhancing the projects. Includes a CD-ROM with scripts, packages, and code fo

While the number of popular commercial computer games for Microsoft Windows still far outstrips those available for Linux, as a gaming server, Linux is an extremely popular platform. Linux server software is available for hundreds of commercial games, allowing your Linux server to bring together dozens or hundreds of online gamers at a time.

From the pure, open source standpoint, there are some fun games that have completely free client and server software that you can set up and play against others on your LAN or over the Internet. These include board games (such as Go and Atlantik), strategy games (such as freeciv), and battle games (such as BZFlag).

To try your hand at setting up and playing from your own gaming server, I describe how to configure Battle Zone capture the Flag (BZFlag). BZFlag is a fun 3D tank battle game, designed to be played against others over a network. After you set up a BZFlag server, you can have players battle each other over the network using clients on other Linux, BSD, Mac OS X, or Windows systems.

Figure 8-1 illustrates the BZFlag Start Server screen and tanks that might appear on BZFlag clients that run on Linux, Mac OS X, Windows, and BSD systems.

Figure 8-1: Play BZFlag tank battles from your Linux server on different clients.

Understanding Battle Zone capture the Flag

Like many open source projects, BZFlag was begun by a single person as a small idea that just took off. Chris Schoeneman started what became BZFlag as part of his graduate studies in computer graphics at Cornell University in 1993. The project started as a demo program to spin a 3D model with a mouse.

When a friend suggested that Schoeneman make the demo into a game, he created tank models, added the ability to shoot the tanks, and made it so the game could be played against other players on a LAN. The game grew in popularity at Cornell and, over time, features were added such as flags, team bases, and Capture-the-flag–style game play. With the addition of capture-the-flag, the game's name changed from bz to BZFlag.

More than a dozen years later, BZFlag (BZFlag.org/) has a thriving community, with more than 3,000 registered users and 34,000 articles at the BZFlag forums (my.BZFlag.org/bb). At any given time, there are dozens of public BZFlag servers running and waiting for you to join in. New worlds and new features are constantly being created and made available for BZFlag.

The current BZFlag maintainer is Tim Riker. Many other contributors to the project are listed as well. These include Daniel Léonard, Jeremiah â

______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Update on user count

Alexander Boyd's picture

There are now over 19,000 registered users, and BZFlag has been downloaded over 1,800,000 times.

Using Global Login

Dennis Møllegaard Pedersen's picture

Just a clarification:

The next time you join a BZFlag game (as described earlier in this chapter), enter your user name (callsign) and password. You will see the message Global Login Approved! when you connect to the game. You may be asked again to identify yourself to the server. If so, type /identify password (using your password of course).

Please never use your password with /identify, infact never use /identify at all. The server might be patched to capture your username/password, allowing the server owner to use your account - including whatever admin/cops permissions you may have gotten on other servers.

/identify is the old (decentralized) authentication mechanism from earlier BZFlag versions. The new global auth is preferred as the password is not exposed to the bzflag servers - only to the central server, performing the authentication.

Having said that, thanks for a great article

Using Global Login

Dennis Møllegaard Pedersen's picture

Just a clarification:

The next time you join a BZFlag game (as described earlier in this chapter), enter your user name (callsign) and password. You will see the message Global Login Approved! when you connect to the game. You may be asked again to identify yourself to the server. If so, type /identify password (using your password of course).

Please never use your password with /identify, infact never use /identify at all. The server might be patched to capture your username/password, allowing the server owner to use your account - including whatever admin/cops permissions you may have gotten on other servers.

/identify is the old (decentralized) authentication mechanism from earlier BZFlag versions. The new global auth is preferred as the password is not exposed to the bzflag servers - only to the central server, performing the authentication.

Having said that, thanks for a great article

White Paper
Fabric-Based Computing Enables Optimized Hyperscale Data Centers

Today’s modular x86 servers are compute-centric, designed as a least common denominator to support a wide range of IT workloads. Those generic, virtualized IT workloads have much different resource optimization requirements than hyperscale and cloud applications. They have resulted in a “one size fits all” enterprise IT architecture that is not optimized for a specific set of IT workloads, and especially not emerging hyperscale workloads, such as web applications, big data, and object storage. In this report, you will learn how shifting the focus from traditional compute-centric IT architectures to an innovative disaggregated fabric-based architecture can optimize and scale your data center.

Learn More

Sponsored by AMD

White Paper
Red Hat White Paper: Using an Open Source Framework to Catch the Bad Guy

Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6

Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.

Learn more about catching the bad guy in this free white paper.

Learn More

Sponsored by DLT Solutions