Difference between revisions of "Development/Architecture/KDE4/KGGZ"

Jump to: navigation, search
m (Added KDE4 Category)
(more tutorial information)
Line 7: Line 7:
 
A number of tutorials were sent to the [http://lists.kde.org/?l=kde-games-devel&m=117247904901225&w=2 kde-games-devel] list.
 
A number of tutorials were sent to the [http://lists.kde.org/?l=kde-games-devel&m=117247904901225&w=2 kde-games-devel] list.
  
 +
==Setup==
 +
 +
While KDE 3-based development of GGZ games requires the ggzmod library,
 +
KDE 4 has kggzmod and thus the libraries and all games using it will compile without any further dependencies.
 +
In order to be able to play the games from an online gaming client (the so-called GGZ core clients such as KGGZ), the game client still needs to be registered with the GGZ game modules registry. The tool ''ggz-config'', which is part of the ''ggz-client-libs'' package, is needed for this task. Most distributions ship it as part of a ''ggzcore-bin'' package or similar.
 +
The file ''module.dsc'' contains meta information about the game, such as its
 +
author, UI library/environment it runs in and where its executable is located. The two important values are which protocol it uses and which version of the protocol.
 +
 +
ProtocolEngine=TicTacToe
 +
ProtocolVersion=2
 +
 +
If and only if those two match the values of the game server, this game client
 +
will be offered to players! More information about this file can be found in the ggz-config [http://svn.ggzgamingzone.org/cgi-bin/trac.cgi/browser/trunk/ggz-client-libs/ggz-config/readme.ggzconfig readme file] and in the [http://www.ggzgamingzone.org/docs/guides/gamedev/ggz-game-development-guide.pdf GGZ game development guide] (which contains a lot more information and should really be printed out). Please consider re-using existing protocols for equal or similar games. The three places to look at are: KDE Games, GNOME Games, and the games shipped by the GGZ project in their various packages. On http://www.ggzgamingzone.org/engines/ there is a list of all known GGZ games.
 +
 +
==Development==
 +
 +
See the tutorials linked above. There is not that much new information right now. It is however charming to know that KReversi received GGZ support and thus can serve as a codebase where to get ideas from. The second example would
 +
be GGZ's KConnectX game which is supposed to be replaced by a GGZ-enabled KWin4.
  
 
[[Category:KDE4]]
 
[[Category:KDE4]]

Revision as of 13:47, 22 May 2007

The GGZ Gaming Zone offers a complete free infrastructure for online games. It has always provided some sort of KDE integration, however starting from KDE 4.0, this integration will be available out of the box from the KDE Games Library (libkdegames).

For the time being, have a look at the API docs of kggzmod, kggznet and kggzgames.

A number of tutorials were sent to the kde-games-devel list.

Setup

While KDE 3-based development of GGZ games requires the ggzmod library, KDE 4 has kggzmod and thus the libraries and all games using it will compile without any further dependencies. In order to be able to play the games from an online gaming client (the so-called GGZ core clients such as KGGZ), the game client still needs to be registered with the GGZ game modules registry. The tool ggz-config, which is part of the ggz-client-libs package, is needed for this task. Most distributions ship it as part of a ggzcore-bin package or similar. The file module.dsc contains meta information about the game, such as its author, UI library/environment it runs in and where its executable is located. The two important values are which protocol it uses and which version of the protocol.

ProtocolEngine=TicTacToe
ProtocolVersion=2

If and only if those two match the values of the game server, this game client will be offered to players! More information about this file can be found in the ggz-config readme file and in the GGZ game development guide (which contains a lot more information and should really be printed out). Please consider re-using existing protocols for equal or similar games. The three places to look at are: KDE Games, GNOME Games, and the games shipped by the GGZ project in their various packages. On http://www.ggzgamingzone.org/engines/ there is a list of all known GGZ games.

Development

See the tutorials linked above. There is not that much new information right now. It is however charming to know that KReversi received GGZ support and thus can serve as a codebase where to get ideas from. The second example would be GGZ's KConnectX game which is supposed to be replaced by a GGZ-enabled KWin4.


KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal