Bill Currie
06b9f44741
prepend a 0ed header to the overflowed packet being dumped
2001-07-24 17:51:07 +00:00
Bill Currie
c7390e4d53
diff_snr-- :)
2001-07-23 18:36:36 +00:00
Bill Currie
22c9716b56
rename int_var to integer_var
2001-07-22 20:20:46 +00:00
Adam Olsen
2f223924f4
Add a set of "crudefile" file io functions. Reads or writes an
...
entire C string (including terminating nul). Read the source for
more details :)
2001-07-22 19:03:26 +00:00
Bill Currie
77694855e7
fix some off-by one errors I induced last night
2001-07-22 18:44:55 +00:00
Bill Currie
735cd909c0
make SV_Prespawn use the backbuffers if needed to help prevent overflows
2001-07-22 06:55:09 +00:00
Bill Currie
e010356e8f
break out the two chunks of almost identical backbuffer code into
...
PushBackbuffer()
2001-07-22 06:27:05 +00:00
Adam Olsen
1422163099
Minor typo fix ("(%d0" to "(%d)")
2001-07-22 04:53:19 +00:00
Adam Olsen
43c8763de0
change host_client to sv_player. I *hope* this is the right thing.
2001-07-20 08:08:46 +00:00
Bill Currie
cf10da8120
fix the double "foo changed name to bar" messages for foo
2001-07-20 05:35:55 +00:00
Bill Currie
abf34ac2d3
send the right one
2001-07-20 05:30:51 +00:00
Bill Currie
a09705953f
forgot to send the updates to the clients
2001-07-20 05:29:45 +00:00
Bill Currie
743fd9cc19
rename SetUserInfo to UserInfoCallback.
...
set self to the client entity for UserInfoCallback.
add void (entity ent, string key, string value) setinfokey = #102 ;
similar usage to infokey.
2001-07-20 05:05:47 +00:00
Bill Currie
d30f1ee0c2
add an /optional/ SetUserInfo qc callback to allout the progs to take over
...
userinfo setting.
float (string key, string value) SetUserInfo;
key = infostring key
value = new value
returs: 0 for key not changed, non-0 to broadcast the change
2001-07-20 04:30:33 +00:00
Bill Currie
aa7500cac7
add the DOUBLEQUOTE key name as per mechanix' request
2001-07-19 21:54:12 +00:00
Bill Currie
46176e1094
azerty kb patch from Filip Van Raemdonck <mechanix@digibel.org>. includes some
...
misc fixes, too
2001-07-19 21:46:34 +00:00
Bill Currie
b23786880a
check for hitting the maximum number of masters and print a message if so.
2001-07-19 07:07:32 +00:00
Bill Currie
5e81d80d8c
optionally disable the curses server console, bringing back the old behaviour
2001-07-19 05:13:32 +00:00
Adam Olsen
a771b5bd6c
Make edicts command support a search string, so it only prints edicts
...
with matching classnames. Makes it easy to print out the type you want
for debugging :)
2001-07-19 03:18:11 +00:00
Bill Currie
086084c1fa
fix a sign extention error
2001-07-19 00:24:24 +00:00
Bill Currie
40dfde55a1
don't try to use curses before things have been initialized
2001-07-19 00:07:20 +00:00
Bill Currie
47a6f2c9b5
pr_debug.c:
...
capitolise CRC and add a \n to the message
sv_progs.c (both nq and qw):
don't bother checking the progdefs.h crc: it's just not needed any more
pr_imm.c:
use r instead of rep when checking the hash tables.
main.c (quaq):
make developer work and set com_filesize (otherwise, progs crc doesn't
get set properly (com_filesize, not developer:))
2001-07-18 21:28:41 +00:00
Bill Currie
159bc6147c
create an "input line" object for the console so Con_ProcessInput can be used
...
in verious contexts
2001-07-17 16:46:51 +00:00
Bill Currie
bab80a0648
move the special keys out of the way of ascii codes (unless they represent
...
ascii codes (eg, K_ENTER)) and remove the magic number for the number of keys.
2001-07-17 15:51:56 +00:00
Bill Currie
104701a8c5
the beginnings of the console lib (using plugins for the client/server type
...
consoles). Currently, doesn't affect anybody other than the need to
re-bootstrap.
2001-07-16 20:41:10 +00:00
Bill Currie
1c9e1b176f
fear the mighty const correct patch
2001-07-15 07:04:17 +00:00
Adam Olsen
155b46b8c8
More diff noise reductions. yay!
2001-07-15 01:48:03 +00:00
Adam Olsen
08cb34e0e0
Diff noise reduction. Stop me if I break it :)
2001-07-15 00:21:48 +00:00
Adam Olsen
fb0fe95e7e
Diff noise reduction
2001-07-15 00:03:11 +00:00
Adam Olsen
484f5494b8
Add my strlen and charcount functions as quakec builtins. strlen
...
returns the total string length, and charcount returns the number of
times the given character appears.
2001-07-13 22:58:31 +00:00
Adam Olsen
dcaa0b205f
Make coop play possible in qw. Create a progs variable called 'current_skill'
...
and you'll get the nq edict pruning behavior.
2001-07-13 22:47:11 +00:00
Bill Currie
7a06a2254a
rename the Con_Printf in sv_send.c to SV_Printf and change all the calls to
...
Con_Printf in the server code to SV_Printf.
nuke Con_DPrintf from sv_send.c
2001-07-11 23:11:29 +00:00
Bill Currie
7ca4383790
move a Key function out of console and into keys.
...
replace a Con_Print call with Con_Printf ("%s", ...) (I want to make Con_Print
private)
2001-07-11 19:17:58 +00:00
Bill Currie
4cf5648fcc
no longer need /that/ hack as SV_Frame does it now
2001-07-11 03:19:18 +00:00
Bill Currie
eb66aa03ee
sv_console.c:
...
/finally/, the input line works to my satisfaction
sv_main.c:
call Con_ProcessInput to get the cursor in the right position on the
screen (yeah, horrible kludge until someone figures out a nice console
api)
2001-07-11 03:11:53 +00:00
Bill Currie
038e2c9287
the input line is almost perfect: just some problems with the scroll
...
indicators
2001-07-11 00:19:39 +00:00
Bill Currie
5642ac87cb
cursor keys now work (per window keypad mode, hmm)
2001-07-10 23:03:13 +00:00
Bill Currie
f9f31ad4b3
ncurses console for the server. input handling is currently a nasty bit of
...
code duplication, but it seems to work nicely (except for cursor movement
keys) and even gives tab completion to the server :)
2001-07-10 22:36:22 +00:00
Bill Currie
ecff96258f
cmd.[ch]:
...
api change: Cmd_Args () now takes a parameter inidcating which arg to
start at for grabbing the un-parsed command line
qw/source/sv_ccmds.c:
implement kk's tell command and user name matching (though # is used for
the wildcard and it's still case sensitive)
everything else:
adjust for the new Cmd_Args protype
2001-07-10 18:25:54 +00:00
Bill Currie
001f178e86
rcon and say improvements from kkqwsv
...
server.h:
add rcon_from_user
sv_ccmds.c:
add SV_ConSay_Info_f (sayinfo) for quiet info messages and revamp the
rest of SV_ConSay_f accordingly. Also include deactivated commands for
cuff, mute, tell and ban (coming soon).
sv_main.c:
revamp the rcon system to support both `root' rcon and admin rcon and
provide better logging. admin_password is the cvar holding the password
for admin access (used the same way as rcon_password)
2001-07-09 23:33:35 +00:00
Bill Currie
41e07f08a4
oops, re-using freed memory is a nono :/
2001-07-06 20:04:05 +00:00
Bill Currie
bb084d5f14
fix the case when the expansion is both an exact match and a sub-string
2001-07-06 19:47:44 +00:00
Bill Currie
e3c38e7774
rework tab completion a bit so that it expands as much as possible
2001-07-06 19:43:01 +00:00
Bill Currie
03c0216dde
force_centerview is back
2001-07-06 17:42:04 +00:00
Bill Currie
0fddfe4931
just typing map will give the current map name. In nq, doesn't work too well
...
during a demo (doesn't die, just gives "map is ", or likely the last map
actually played on).
2001-07-06 17:38:17 +00:00
Bill Currie
fc09d2b00f
port Bruce Momjian's patches from newtree with a less incestuous
...
implementation of his sound/focus patch. NOTE: only alsa 0.9 is tested
(Rhamph, can you test 0.5, please?) and only the alsa drivers stop the
hardware right ow.
WARNING!!! you /will/ have to re-install your plugins, or you will get
segfaults when the window gains/loses focus.
How do you tell if a window has focus on first mapping in X11?
2001-07-05 20:18:23 +00:00
Bill Currie
b4ac2446a1
Put knghtbrd's sys cleanup changes back in, but with Sys_MakeCodeWriteable
...
in sys/util.c rather than limbo (the crux of the problem that caused the
previous reversal). I'll look into his Sys_Printf changes next.
2001-07-05 03:28:40 +00:00
Bill Currie
e659c2a44f
revert kntbrds recent sys changes as they break sw static builds
2001-07-05 00:12:43 +00:00
Bill Currie
ce3eddb89c
move the node number validation out of RecursiveHullCheck and into the bsp
...
loader
2001-07-04 16:28:54 +00:00
Joseph Carter
eb71edb5d4
taniwha, please have a look at this to make sure I'm doing it the "right"
...
way.. Sys_Printf is now Sys_StdPrintf for now. Sys_Printf is a function
pointer and will end up replacing Con_Printf as well. Names will change
to something intelligent when I'm done. Win32 is not yet touched, but I
haven't forgotten it.
The reason for this is the assumption that Con_Printf and Sys_Printf do
not overlap. The new server console WILL change that, requiring that we
change how we handle both functions. The plan: Default to using stubs
and swap them for full-featured functions on Console init which do all
the things we expect. Will also do a stderr version later.
2001-07-02 18:11:34 +00:00
Joseph Carter
d478e6b1d9
These aren't used anymore as their functions have moved to libs/util
2001-07-01 00:14:46 +00:00
Bill Currie
c350bb2b1b
a slight oopsie on the location of WriteFloat and friends :P plus nq is now
...
endian/size clean.
2001-06-29 06:50:29 +00:00
Bill Currie
39872aad5b
qw's demo code is now endian and type size clean
2001-06-29 06:29:24 +00:00
Bill Currie
6eef7f2988
fix an incorrect setting of colormap when it should have been colormod
2001-06-29 04:24:01 +00:00
Bill Currie
f61ca0e321
fix the persistent fires. For sanity's sake, the non-renderer specific parts
...
of gl_dyn_fires.c have been moved to r_main.c (for now).
2001-06-29 02:43:04 +00:00
Chris Ison
85d2176bb6
make -3dfx compile again, may need fixing for mesa specific functions listed in vid_3dfxsvga.c
2001-06-29 02:10:52 +00:00
Bill Currie
443196e66b
very nice command line tab completeion from Shawn Walker
...
<eviltypeguy@qeradiant.com>
2001-06-28 04:05:14 +00:00
Zephaniah E. Hull
3715430479
This is changing more then I wanted to at once, however.
...
The major change is that we no longer require libGL to even exist on the
system at compile time for the GL targets, we dynamicly link to the
libGL of choice at run time. (This probably breaks most non-linux
systems, and all GL targets except -glx, some fixup will be needed.)
(This also kills glquake, dead dead DEAD! GONE FOREVER! WHEE!)
Some gl_draw cleanup.
Commented out equake alias model occlusion test stuff, very experimental.
Added the .lo and .la patterns to the .gitignore files.
Some minor sbar cleanup. (We don't use the disc in use symbol for
anything.)
2001-06-24 09:25:55 +00:00
Bill Currie
560b475880
gcc 3.0 compile fixes
2001-06-19 22:05:13 +00:00
Joseph Carter
d5dabdf3d8
Fix -lqfnet errors
2001-06-18 01:07:09 +00:00
Chris Ison
3456b5f479
part 1 of slist fixup, added ping and game filtering, also fixed some potential bugs. flame me later
2001-06-17 08:14:22 +00:00
Adam Olsen
0bb5db78af
Add a sv_gc cvar, which makes it run the string gc every n frames.
...
Defaults to 0 (disabled).
2001-06-16 22:39:41 +00:00
Adam Olsen
4f28b39b01
depend on libqfnet.la instead of libqfnet.a
2001-06-16 22:33:56 +00:00
Bill Currie
4901dd0a53
net_udp.c:
...
header shuffle
net_udp6.c:
get compiling under mingw. some icky hacks (and the version of the tpipv6
headers I managed to get had some errors), but it compiles cleanly.
2001-06-15 18:08:26 +00:00
Bill Currie
8c13809e9c
don't process .S files when not using asm (either --disable-asmopt or non-x86
...
platforms). Done by moving the asm objects into libasm.la (yes, there's one in
each dir that needs it) so that the Makefiles don't explode.
2001-06-14 19:52:38 +00:00
Adam Olsen
29188c9f33
typo
2001-06-14 17:31:53 +00:00
Adam Olsen
2a1f323df4
precache some lightning models
2001-06-14 17:31:15 +00:00
Chris Ison
a3d2d83e18
fixed master list to the 7 (known) working master
2001-06-12 23:53:58 +00:00
Chris Ison
3526371ff0
oops, forgot to remove debug code
2001-06-12 12:34:59 +00:00
Chris Ison
75fe232052
Sorted server list, sl_sortby 0 = by name, sl_sortby 1 = by ping
2001-06-12 12:31:01 +00:00
Chris Ison
5b16c38974
quick bug fix for slist update seg
2001-06-09 15:42:22 +00:00
Chris Ison
8d3247ff00
added set server name after refresh, and fixed slist update not resetting the list
2001-06-09 15:24:42 +00:00
Chris Ison
12ae6750af
moved slist stuff out of cl_main.c and into cl_slist.c, enabled getting server list from master servers. to switch between servers.txt list (default) and list of servers from master servers use slist switch
2001-06-09 09:12:24 +00:00
Bill Currie
b9f35283f4
make dist fixes + a --disable-asmopt fix for mingw
2001-06-08 02:47:30 +00:00
Bill Currie
62c783f47a
eval_t is no more: too many evil casts involved in using it (which can result
...
it bad code being generated by gcc).
2001-06-08 00:13:06 +00:00
Bill Currie
735a35b2f9
compile fixes from Artur Frysiak <wiget@pld.org.pl>
2001-06-05 17:23:03 +00:00
Bill Currie
e339e82c01
hash.h is now const correct as is a lot of qfcc
2001-06-04 04:52:14 +00:00
Bill Currie
4c8f84adc5
fix for CustomTF menu truncation
2001-06-03 01:28:11 +00:00
Bill Currie
652069d3f2
This one's for Mercury :) (cvar control of pmodel and emodel)
2001-06-02 23:29:41 +00:00
Bill Currie
a0796826ee
Back out Mercury's removal of emodel and pmodel. They are /required/ by some
...
servers.
2001-06-02 22:20:34 +00:00
Zephaniah E. Hull
380dcf5c9b
Some gl_draw cleanups for glpic.
...
Some sbar cleanups (still broken, suspect driver issues.).
Removal of pmodel and emodel infokeys, waste of info space.
For servers allow people downloading to hear people talking.
2001-06-02 20:39:54 +00:00
Ragnvald Maartmann-Moe IV
28638a9a98
Remove merge ghosts. Aren't there for Taniwha. cvs quirks, whee.
2001-06-02 04:35:16 +00:00
Ragnvald Maartmann-Moe IV
85333a9f96
Convert cd audio libs to plugins. Windows untested, dos and sgi not converted yet.
2001-06-01 22:55:33 +00:00
Bill Currie
7ad0f7ed2b
various compile fixes for mingw.
2001-06-01 00:39:31 +00:00
Adam Olsen
4620b8fdfd
Add the cl_showscoresuid cvar I mentioned before
2001-06-01 00:29:55 +00:00
Bill Currie
06064ec390
compat.h:
...
create a field_offset macro that takes a structure type and a field and
returns the offset of the field within the structure
everything else:
use field_offset to calculate the size of variable sized structs
2001-05-31 18:11:05 +00:00
Bill Currie
d2a4faae6e
oops :) (packet log fixes: segs aren't nice)
2001-05-31 15:38:08 +00:00
Bill Currie
323015b11a
include/QF header cleanup. including config.h (or any file from include) is
...
a nono because headers in include/QF get installed, but include don't and thus
would break quakeforge-dev.
2001-05-31 05:33:13 +00:00
Bill Currie
6bf58ab1af
no header includes cvar.h now
2001-05-31 03:41:35 +00:00
Bill Currie
a488af9bf5
add a net_packetlog_zap command (those files can get big:)
2001-05-31 03:04:39 +00:00
Bill Currie
4babd979d6
nuke --enable-packetlog in favor of a net_packetlog cvar so packetlogging is
...
always available. also change the packet log open mode from truncate to append.
2001-05-31 02:43:48 +00:00
Bill Currie
889b9ce740
try to dump the packet resulting in an overflow
2001-05-30 23:44:21 +00:00
Bill Currie
940598f240
merge pcx.c, tga.c and wad.c. util seemed the most logical place, but LoadPCX
...
had to be modified to get away from vid.h (better designe now IMO anyway)
2001-05-30 20:56:53 +00:00
Bill Currie
80be659b4a
white space
2001-05-30 20:55:28 +00:00
Adam Olsen
de4ab28d38
re-add support for changing client port (use +set cl_port foo)
2001-05-30 18:50:17 +00:00
Adam Olsen
8ca626dacc
add -export-dynamic to linker lines, so you can use sound plugins with static builds.
2001-05-30 18:35:19 +00:00
Joseph Carter
05adfd0e53
quakefs.h -> vfs.h
...
quakeio.h -> vfile.h
More diff reduction between trunk and my VFS code. Also took the time to
put some headers in order and fix a few #include's pointed out by moving
things around a bit.
2001-05-30 04:34:06 +00:00
Joseph Carter
186d577818
s/QFile/VFile/g - makes my diffs much smaller and more manageable for the
...
VFS work.
2001-05-30 03:21:19 +00:00
Bill Currie
18fd21da77
merge the particle system
2001-05-29 19:58:35 +00:00
Bill Currie
78702c07e4
make gl_dyn_part.c and sw_rpart.c independent of client.h and host.h
2001-05-29 19:43:15 +00:00