QuakeC

QuakeC

QuakeC is an interpreted language developed in 1996 by John Carmack of id Software to program parts of the computer game "Quake". Using QuakeC, a programmer is able to customize "Quake" to great extents by adding weapons, changing game logic and physics, and programming complex scenarios. It can be used to control many aspects of the game itself, such as parts of the AI, triggers, or changes in the level.

Overview

The QuakeC source to the original id Software Quake game logic was published in 1996 and used as the basis for modifications like capture the flag and others. [ [http://ssc.vekoduck.com/news/index.php?news_id=94&PHPSESSID=d8d956f91e2fcc0740033a487528b418 Satanic Slaughter Clan ] ] QuakeC source code is compiled using a tool called qcc into a bytecode kept in a file called progs.dat. The programmers of Quake modifications could then publish their progs.dat bytecode without revealing their source code. Most Quake mods were published this way.

QuakeC allowed the "Quake" engine to dominate the direction of the first-person shooter genre. Thanks to Carmack's idea of extending computer game life by adding unlimited expandability, an enormous Internet community of gamers and programmers alike has arisen and nearly every modern multiplayer game is completely expandable.

Limitations

The syntax of QuakeC is based on that of the C programming language, explaining its name, but it does not support the implementation of new types, structures, arrays, or any kind of referencing other than the "entity" type (which is always a reference). QuakeC also suffers from the fact that many built-in functions (functions prototyped in the QuakeC code but actually defined within the game engine and written in C) return strings in a temporary string buffer, which can only hold one string at any given time. In other words, a construct such as

:SomeFunction (ftos (num1), ftos (num2));

will fail because the second call to ftos (which converts a floating-point value to a string) overwrites the string returned by the first call before SomeFunction can do something with it. Other prominent examples of these quirks include the fact that QuakeC does not contain any string handling functions or file handling functions, which were simply not needed by the original game.

Most computer games at the time had their game logic written in plain C/C++ and compiled into the executable, which is faster. However, this makes it harder for the community to create mods and it makes the process of porting the game to another platform (such as GNU/Linux) more costly.

Despite its advantages, the concept of implementing the game logic in a separate scripting language and writing an interpreter for it was soon dropped (even by John Carmack who had implemented this concept) because of the overall inflexibility of an interpreted languageFact|date=December 2007, the increasingly complex game logic and the fact that the game logic could be packaged into a native Dynamic link library whose source code could be released to the mod community.

Modified compilers and syntaxes

As is their custom to do with nearly everything they make, id Software released the source of qcc, their QuakeC compiler, along with the original QuakeC code in 1996. Modified versions soon sprung up, including Jonathan Roy's fastqcc and Ryan "FrikaC" Smith's FrikQCC. These added functionality, optimizations, and compiling speed boosts.

In 1999 when id Software released the code from Quake's engine under the GPL, the workings of the bytecode interpreter were examined and new QuakeC compilers were released, such as J.P. Grossman's qccx and a new version of FrikQCC. These compilers took advantage of newly discovered features in a backwards-compatible way so that the bytecode could still be properly interpreted by unmodified Quake engines. New features include arrays, pointers, integers, for loops and string manipulation.

With the Quake engine source code now able to be changed, further features were added to QuakeC in the form of new builtin functions. Features long yearned for by QuakeC coders finally reached realization as QuakeC now had file and string handling functions, enlarged string buffers, more math functions, and so on. However, programmers taking advantage of these changes lost backwards compatibility with the unmodified Quake engine.

"See also:" Computer programming

References

External links

* [ftp://ftp.idsoftware.com/idstuff/source/ id's public FTP containing the C source code of qcc (QuakeC compiler)]
* [ftp://ftp.idsoftware.com/idstuff/unsup/progs106.zip id's public FTP containing the QuakeC source code to Quake version 1.06 game logic]
* [http://www.gamers.org/dEngine/quake/spec/quake-spec34/qc-menu.htm Unofficial QuakeC specifications]
* [http://quakery.quakedev.com/qwiki/index.php/QuakeC QuakeC at the Quake Wiki]
* [http://www.gamers.org/pub/idgames2/quakec/ Large collection of QC mods, including their source - many from good-ol' cdrom.com]
* [http://www.inside3d.com/ Inside3d - nice collection of QC tutorials here]
* [http://www.planetquake.com/qng/quakec.htm Planetquake's gamers's guide]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • QuakeC — ist eine 1996 von John Carmack von id Software entwickelte Skriptsprache. Sie wurde entwickelt um Teile des Computerspiels Quake zu schreiben. Ein Programmierer kann mit QuakeC Quake individualisieren, zum Beispiel durch das Hinzufügen von Waffen …   Deutsch Wikipedia

  • QuakeC — QuakeC  интерпретируемый язык программирования, разработанный в 1996 году Джоном Кармаком (id Software) для написания части компьютерной игры Quake. Используя QuakeC, программист имеет возможность модифицировать игру: добавить оружие,… …   Википедия

  • QuakeC — est un langage développé en 1996 par John Carmack de id Software pour programmer des éléments du jeu vidéo Quake. En utilisant QuakeC, un programmeur est en mesure de personnaliser Quake en ajoutant des armes, en changeant la logique et la… …   Wikipédia en Français

  • QCX — QuakeC Extreme (Computing » Software) *** Quad City Times (Community » Media) …   Abbreviations dictionary

  • Quake (Spieleserie) — Quake ist eine Computerspiel Serie von id Software, die zum Genre der Egoshooter zählt. Inhaltsverzeichnis 1 Überblick 2 Spiele 2.1 Quake 2.2 Quake II …   Deutsch Wikipedia

  • Quake — Infobox VG |title = Quake developer = id Software Midway Games (N64) Lobotomy Software (SS) Pulse Interactive (mobile) publisher=GT Interactive (PC) PXL computers (Amiga) MacSoft (Macintosh) Midway Games (N64) Sega (SS) Pulse Interactive (mobile) …   Wikipedia

  • Nexuiz — Developer(s) Alientrap Publisher(s) Alientrap Engine DarkPlaces …   Wikipedia

  • List of game engines — Many tools called game engines are available for game designers to code a game quickly and easily without building from the ground up. Contents 1 Free and open source 2 Proprietary 2.1 Commercial 2.2 Freeware …   Wikipedia

  • Operation Bayshield — Abdul Gouat Komsvallow in Operation Bayshield Engine(s) …   Wikipedia

  • Quake (video game) — This article is about the original video game. For the series as a whole, see Quake (series). Quake Developer(s) id Software Midway Games (N64) …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”