| 1 |
ioQuake3 for Debian |
| 2 |
=================== |
| 3 |
|
| 4 |
Debian GNU/Linux contains a modified and stripped-down version of the ioQuake3 |
| 5 |
engine. It lacks the non-free LCC compiler which usually compiles byte-code for |
| 6 |
the Quake3 Virtual Machine; the actual virtual machine is still present, so |
| 7 |
bytecode compiled using tools outside Debian can still be used (although it |
| 8 |
would have to be uploaded to contrib or non-free). |
| 9 |
|
| 10 |
If you are a integrating another great game that can benefit from the ioQuake3 |
| 11 |
you should first test if the packaged engine works for the game you are |
| 12 |
interested in. To do so, place your game data in some directory, for example: |
| 13 |
|
| 14 |
/home/user/greatgame/basegg/greatgame0.pk3 |
| 15 |
/home/user/greatgame/basegg/greatgame1.pk3 |
| 16 |
|
| 17 |
Then you can test if it works with Debian GNU/Linux's ioQuake3 by firing up |
| 18 |
the engine with various extra command line parameters. |
| 19 |
For "standalone" games (those that don't need any of the proprietary |
| 20 |
Quake III: Arena or Quake III: Team Arena game content), you'll typically need: |
| 21 |
|
| 22 |
- com_standalone to put the engine into standalone mode |
| 23 |
- fs_basegame to make the "base game" not be baseq3 |
| 24 |
- fs_basepath to set the search path |
| 25 |
- fs_homepath to change the directory where user settings will be saved |
| 26 |
- cl_motd to avoid asking update.quake3arena.com whether there's an update :-) |
| 27 |
- and perhaps other cvars, depending on your game... |
| 28 |
|
| 29 |
For instance, OpenArena 0.8.5 looks something like this: |
| 30 |
|
| 31 |
/usr/lib/ioquake3/ioquake3 \ |
| 32 |
+set com_standalone 1 \ |
| 33 |
+set fs_basegame basegg \ |
| 34 |
+set fs_basepath /home/user/greatgame \ |
| 35 |
+set fs_homepath "$HOME/.greatgame" \ |
| 36 |
+set sv_master1 master.greatgame.example.com \ |
| 37 |
+set protocol 71 \ |
| 38 |
+set cl_motd 0 |
| 39 |
|
| 40 |
If you are sure that your game works and you want to package it, put the |
| 41 |
game files in /usr/share/games/greatgame (if they are |
| 42 |
architecture-independent) or /usr/lib/greatgame (if they use native-code |
| 43 |
cgame, qagame or ui modules), then create a wrapper script |
| 44 |
in /usr/games that calls the ioquake3 binary with the proper command line |
| 45 |
parameters, as shown above. |
| 46 |
|
| 47 |
The openarena source package in Debian, and the quake source package |
| 48 |
in the contrib component, are good examples of how to integrate a |
| 49 |
particular game. |