Author: SumFuka
Hi there, I am your host, SumFuka. The first thing we are going to
do is to
download the q2 source and install it. I have installed it to
E:\myquake2, so substitute your directory name in the following examples
if you install it elsewhere.
Now lets talk compilers, I have
tried using lcc and gcc, and have managed (after much trouble) to compile
the GAMEX86.DLL with both of those free compilers, but both of them have
crashed quake when I try to run it. I am now using an old version of Microsoft
Visual C++ (version 2.1), so if you don't want to pay for the new version,
ask your friends or ring some stores, you may find an old version of 2.1
kicking about (which is quite satisfactory, and has less baggage than v5).
(Do they have sell old compilers in those bargain bins at EB ? I've never
burrowed to the bottom of one of those bins... you never know what you
might find)
OK, we need to create a new project in MSVC.
Installing gamex86.dll...
You STOOPID idiot !
The parameters to bprintf are the print level (a high level message is guaranteed
to get to all clients, low level messages may not get to everyone in a busy game).
Next is the FORMAT STRING. Look up a good book on c for how to construct format
strings, but here is my 3 step lesson on C-string formats :
Now, compile the gamex86.dll and copy it into your quake2\baseq2 directory. Run
quake2 and start a multiplayer server. Grab the rocket launcher, run up to the
nearest wall and fire away ! When you kill yourself, quake2 should say :
This site, and all content and graphics displayed
on it,
Difficulty: Easy
OK at this stage you should have compiled gamex86.dll !!! You should find it in the
E:\MYQUAKE2\GAME\WinDebug directory. The file size will vary greatly with compiler
versions and debug\release modes, but it should be between 300 and 500k.
gi.bprintf (PRINT_MEDIUM,"%s killed self.\n", self->client->pers.netname);
to look like this :
gi.bprintf (PRINT_MEDIUM,"%s killed self... You STOOOPID idiot !\n", self->client->pers.netname);
What does the above line mean ? Well gi is the "game interface". All functions
you need to call in the quake2 world are called via the game interface. bprintf
is a "broadcast" print function... it prints a message to all connected clients
in the game. (very similar to bprint in QuakeC... ahhhh, the good old days !)
What the HELL is self->client->pers.netname ?
Au.SumFuka killed self... You STOOOPID idiot !
Tutorial by SumFuka
are ©opyrighted to the Quake DeveLS team.
All rights received.
Got a suggestion? Comment? Question? Hate mail? Send it to us!
Oh yeah, this site is best viewed in 16 Bit or higher, with the resolution on 800*600.
Thanks to Planet Quake for there great help and support with hosting.
Best viewed with Netscape 4 or IE 3