sv_timestamps.
To configure how timestamps are formatted, use the sv_timefmt Cvar. It's a
formatted string, with the following special tokens (taken from the
strftime() manual page):
%a The abbreviated weekday name according to the cur
rent locale.
%A The full weekday name according to the current
locale.
%b The abbreviated month name according to the current
locale.
%B The full month name according to the current
locale.
%c The preferred date and time representation for the
current locale.
%C The century number (year/100) as a 2-digit integer.
(SU)
%C The century number (the year divided by 100 and
truncated to an integer).
%d The day of the month as a decimal number (range 01
to 31).
%D Equivalent to %m/%d/%y. (Yecch - for Americans
only. Americans should note that in other coun
tries %d/%m/%y is rather common. This means that in
international context this format is ambiguous and
should not be used.) (SU)
%e Like %d, the day of the month as a decimal number,
but a leading zero is replaced by a space. (SU)
%E Modifier: use alternative format, see below. (SU)
%G The ISO 8601 year with century as a decimal number.
The 4-digit year corresponding to the ISO week num
ber (see %V). This has the same format and value
as %y, except that if the ISO week number belongs
to the previous or next year, that year is used
instead. (TZ)
%g Like %G, but without century, i.e., with a 2-digit
year (00-99). (TZ)
%h Equivalent to %b. (SU)
%H The hour as a decimal number using a 24-hour clock
(range 00 to 23).
%I The hour as a decimal number using a 12-hour clock
(range 01 to 12).
%j The day of the year as a decimal number (range 001
to 366).
%k The hour (24-hour clock) as a decimal number (range
0 to 23); single digits are preceded by a blank.
(See also %H.) (TZ)
%l The hour (12-hour clock) as a decimal number (range
1 to 12); single digits are preceded by a blank.
(See also %I.) (TZ)
%m The month as a decimal number (range 01 to 12).
%M The minute as a decimal number (range 00 to 59).
%n A newline character. (SU)
%O Modifier: use alternative format, see below. (SU)
%p Either `AM' or `PM' according to the given time
value, or the corresponding strings for the current
locale. Noon is treated as `pm' and midnight as
`am'.
%P Like %p but in lowercase: `am' or `pm' or a corre
sponding string for the current locale. (GNU)
%r The time in a.m. or p.m. notation. In the POSIX
locale this is equivalent to `%I:%M:%S %p'. (SU)
%R The time in 24-hour notation (%H:%M). (SU) For a
version including the seconds, see %T below.
%s The number of seconds since the Epoch, i.e., since
1970-01-01 00:00:00 UTC. (TZ)
%S The second as a decimal number (range 00 to 61).
%t A tab character. (SU)
%T The time in 24-hour notation (%H:%M:%S). (SU)
%u The day of the week as a decimal, range 1 to 7,
Monday being 1. See also %w. (SU)
%U The week number of the current year as a decimal
number, range 00 to 53, starting with the first
Sunday as the first day of week 01. See also %V and
%W.
%V The ISO 8601:1988 week number of the current year
as a decimal number, range 01 to 53, where week 1
is the first week that has at least 4 days in the
current year, and with Monday as the first day of
the week. See also %U and %W. (SU)
%w The day of the week as a decimal, range 0 to 6,
Sunday being 0. See also %u.
%W The week number of the current year as a decimal
number, range 00 to 53, starting with the first
Monday as the first day of week 01.
%x The preferred date representation for the current
locale without the time.
%X The preferred time representation for the current
locale without the date.
%y The year as a decimal number without a century
(range 00 to 99).
%Y The year as a decimal number including the century.
%z The time-zone as hour offset from GMT. Required to
emit RFC822-conformant dates (using "%a, %d %b %Y
%H:%M:%S %z"). (GNU)
%Z The time zone or name or abbreviation.
%+ The date and time in date(1) format. (TZ)
%% A literal `%' character.
Some of these may not work on some systems.
Also added modestate (will be removed).
btw, something to remember about ALLOCA:
"If the calling function does not contain any references
to local variables in the stack, the stack will not be
restored correctly when the function exits, resulting
in a program crash. "
shouldn't be allocated on the hunk.
sv_main.c: Change default timekick fuzz to 1.5 percent from 1
percent. Should cut down on people getting kicked for lag.
- Cleanup for the screenshot code.. (Now requires OpenGL 1.2+)
gl_rsurf.c:
- Oh Mr Havoc, *WHACK*, you needed to disable GL_BLEND when you switch
to GL_REPLACE..
#if 0 the signal code. wouldn't compile otherwise, but not game to
nuke it just yet
include/win32/version.h:
buggered if I know. fscking configure/cvs :)
include/glquake.h:
remove size declarations from bubble_sintable and bubble_costable
source/gl_part.c source/gl_rlight.c:
32 segments in a circle now instead of 16 and change the pointer
math to cope
source/gl_warp.c:
nothing much. just almost double my fps. (hint: the above tables)
in GL.. Please test this extensively, I _think_ the tempfile loader is
smart enough to handle what I'm doing properly. If it's not, we'll have
to fix a slight memory leak.
Reworking of extension handling in -3dfx..
Support for changing the 3dfx dithering mode, if the extension is supported.
(Extension is /not/ in upstream mesa yet.)
but as I don't have GL at work, I have no idea if gl client still works, or if
rocket trails work (default to off). This is mostly a blind patch taking the
code from oldtree to newtree.
gl_ztrick - here's the hat, but no rabbit
considering that a buggy driver can make gl_ztrick into a sort of cheat if
you can stand the flicker, it's gone. gl_finish was already a zombie Cvar
so I just removed its definition.
SGIS_multitexture (I assure you, unless you're on IRIX, you don't have
it!) Added a Sbar_Changed () to fix the sbar overbright for a few people
and the very beginnings of ARB_multitexture are now in glquake.h
make work properly:
Win32 thing.. If you don't free textures explicitly, you can cause a
problem with nVidia drivers.
Colored lighting is now RGB instead of RGBA. The alpha is kinda pointless
on a lightmap and the effect's not all that great. Plus people stuck with
16 bit OpenGL (any other 3dfx people out there?) will be quite pleased
with the improvement in image quality. This does include LordHavoc's
dynamic light optimization code which takes most of the pain out of having
gl_flashblend off.
All glColor*'s are now half of what they used to be, except where they
aren't. If that doesn't make sense, don't worry. If you see one that's
only half what you'd expect, don't worry---it probably is meant to be like
that.. (More below)
glDisable (GL_BLEND) is now a thing of the GL_PAST. As is GL_REPLACE.
Instead, we _always_ use GL_MODULATE and leave GL_BLEND turned on. This
seems at first like it might be a performance hit, but I swear it's much
more expensive to change blending modes and texture functions 20-30 times
every screen frame!
Win32 issue.. Even though we check for multitexture, we currently don't
use it. Reason is that I am planning to replace SGIS_multitexture with
the preferred ARB_multitexture extension which is supported in most GL 1.1
implementations and is a requirement for GL 1.2 anyway. I also wanted to
get rid of some duplicated code. Since Linux doesn't support multitexture
yet, I just commented out the code keeping me from compiling to get it to
work. Win32 should work without it until it's fixed, which shouldn't be
long since the differences between SGIS and ARB multitextures as far as
Quake is concerned is minimal AT BEST.
LordHavoc and I have been working tirelessly (well not quite, we both did
manage to sleep sometime during this ordeal) to fix the lighting in the GL
renderers! It looks DAMNED CLOSE to software's lighting now, including
the ability to overbright a color. You've gotta see this to know what I'm
talking about. That's why the glColor*'s are halved in most places. The
gamma table code and the general way it works is LordHavoc's design, but
over the course of re-implementing it in QF we did come up with a few more
small optimizations.
A lot of people have noticed that QF's fps count has gone to shit lately.
No promises that this undid whatever the problem was. That means there
could be a huge optimization lurking somewhere in the shadows, waiting for
us to fix it for a massive FPS boost. Even if there's not, the code in
this commit DOUBLED MY FPS COUNT. Granted I was getting pathetic FPS as
it was (around 30, which is pathetic even for a Voodoo3 in Linux) but
still---60 is a big improvement over 30!
Please be sure to "test" this code thuroughly.
when you compile..
model.c has been stuffed wholesale into gl_model.c.. It's also no longer
common source. Now it's a server and software thing. This is needed so
GL model/map code can do things that software loading can't and server
loading shouldn't.
very different way than did Id Software did later on, it'll be a major
improvement, that's for sure..)
fs_basegame Cvar created, defaults to whatever you selected in config.h,
most likely id1.
gl_conalpha - 0.6, 1 to disable alpha
gl_conspin - 0, anything else causes it to spin at that speed
gl_constretch - 0, 1 to stretch console instead of sliding it
Some minor changes to DGA code I couldn't be bothered to back out before
I committed. They don't hurt anything, but they don't really improve
matters much either. The mouse cursor still doesn't get warped off the
screen, but it's no longer bright blue - now it's black and white like
normal. I'm rewriting the damned DGA code from scratch to Get It Right
this time.
still has to be in CVS, because Win32 people generally won't be able to
rebuild it).
configure.in: Cleanups to the DGA, VidMode, and sound detection code.
Makefile.am: Cleanups to sound code, to allow 'make dist' to work.
caused Voodoo3 users to get a black mouse cursor that kept getting warped
to the center of the screen.. It was rather ugly and hard to play. So
I added DGA. That made the mouse cursor blue and stay where it was. So
I moved the XGrabPointer to after the XWarpPointer, problem seems to be
fixed. I hope this works for someone other than me. =p
In order to do so I:
* included strings.h and string.h in many files so various functions would be
defined
* Fixed model_t collision problem in cl_main.c (Solaris)
* com.c - corrected WORDS_BIGENDIAN spelling
* gl_draw.c - Use HAVE_GL_COLOR_INDEX8_EXT to avoid referencing
GL_COLOR_INDEX8_EXT when it isn't available
* net_udp.c - use socklen_t to appease AIX
server doesn't get linked with the network libs yet.
.gitignore: add quakeforge-*.tar.gz (I'm tired of seeing that with ? :)
include/Makefile.am: forgot to add the new x11 related headers
source/makefile.am: move snd_dma.c from cient sources to snd lib and add
snd_null.c
source/cl_sys_unix.c: replace FNDELAY with O_NONBLOCK
win32 requires a call to setmode(), since it doesn't seem to do the mode change in fdopen properly.
also removed some "z" modes, since someone forgot to when removing the Qfile stuffs
little problem of mixed QFile and FILE. Since we're not using ZLib in
this tree, QFile makes no real sense. That didn't fix the real problem
I am having though.
split up the headerfiles and such. common.[ch] and qwsvdef.h no longer exist. More work still needs to be done (esp for windows) but this should be a major improvement.