havoc [Wed, 29 Jun 2005 22:45:28 +0000 (22:45 +0000)]
added knownstrings_freeable array to prog struct so that attempts to free engine strings are detected and cause a PRVM_FreeString error (rather than a Mem_Free error)
black [Tue, 28 Jun 2005 21:09:58 +0000 (21:09 +0000)]
-Added sv_playerphysicsqc to control whether the qc physics function is called (if its available).
-Added support for loading LNO files (more to follow soon).
-The server now tries other ports (up to 100 above default) if the default port cant be bound.
havoc [Tue, 28 Jun 2005 05:59:39 +0000 (05:59 +0000)]
removed r_editlights_rtlightssizescale and r_editlights_rtlightscolorscale cvars (now they behave as if they were both 1.0)
added r_editlights_edit commands radiusscale sizescale and colorscale (use these to fix old-format .rtlights files)
havoc [Sun, 19 Jun 2005 23:52:18 +0000 (23:52 +0000)]
removed two unused Key_Event implementations (which let me remove some unused variables like menukeys and consolekeys to save several K of memory), cleaned up keys.h externs
black [Sun, 19 Jun 2005 16:42:43 +0000 (16:42 +0000)]
-Added support for 515]'s BX_COLOREDTEXT extension.
-Changed fopen's and fclose's log ouput a bit (to include the prvm name)
-Fixed a stupid bug in the SV VM that caused it to crash on error.
havoc [Sun, 19 Jun 2005 01:10:38 +0000 (01:10 +0000)]
removed CL_InitTEnts function, moved its contents (cl_sfx precaches) to CL_ParseServerInfo
removed beam precaches from the beam parsing code to CL_ParseServerInfo so that the precaches are made each level (when it unloads models/sounds) rather than only once (ever!) during the game, this fixed crashes and rendering issues (using the wrong model) with lightning beams
renamed cl_sfx_ and cl_model_ from cl_ prefix to cl. prefix now that they are part of the per-level state
havoc [Thu, 16 Jun 2005 22:43:37 +0000 (22:43 +0000)]
replace control characters (such as newline) with _ in savegame comments, this fixes loading savegames in 'dungeon.bsp' of The Ascension of Vigil, and probably some other maps that use newlines in their titles (nasty)
black [Tue, 14 Jun 2005 19:26:27 +0000 (19:26 +0000)]
-reconnect wont work if being called from the console (it never did but now
it wont get you into this 'zombie' state).
-changed the severlist string compare function to convert all strings to
lowercase before comparing.
tomaz [Mon, 13 Jun 2005 14:54:52 +0000 (14:54 +0000)]
added -demo and -demolooponly options. -demo starts the wanted demo and then shuts down the engine once done. -demolooponly does pretty mucht the same except it disables all keys but the escape key and makes escape key quit the engine.
black [Sat, 11 Jun 2005 18:49:09 +0000 (18:49 +0000)]
-The new Key_Event is enabled by default now and Ive added a check so the
console toggle char is only added to the message line or console input if it is
the color tag char.
-Some name changes of the colored string constants.
havoc [Sat, 11 Jun 2005 16:42:02 +0000 (16:42 +0000)]
split CL_ClientMovement into CL_ClientMovement_Input (called each input packet) and CL_ClientMovement_Replay (called each frame) functions to cure a feedback loop that could freeze up a client with a full prediction queue (prediction became slower with each queue item, and the server was not affected by the slowness of the replay, so it could keep the client busy with an endless packet stream and the client would never catch up)
molivier [Sat, 11 Jun 2005 13:12:43 +0000 (13:12 +0000)]
Basic support for Q3's "getstatus" message, for a better integration with Q3 compatible server browsers. Thanks to divVerent for an early version of this patch
havoc [Sat, 11 Jun 2005 00:44:08 +0000 (00:44 +0000)]
changed searchpath directories to have a trailing / (allowing %s%s instead of %s/%s for more consistency)
fixed FS_Search to support empty paths (*.cfg and such), and use %s%s concatenation as the rest of the filesystem does, this required changing listdirectory slightly
some cleanup of the opendir implementation of listdirectory
havoc [Thu, 9 Jun 2005 16:28:57 +0000 (16:28 +0000)]
added r_shadow_glsl_geforcefxlowquality cvar (automatically on if running a GeForce FX card) to use half floats instead of full floats where possible, and r_shadow_glsl_surfacenormalize cvar (slight quality improvement to bumpmapping)
havoc [Thu, 9 Jun 2005 11:57:24 +0000 (11:57 +0000)]
replaced uses of VectorNormalizeFast with VectorNormalize as it was broken on x86_64 (probably just because it used long * casts of floats) and was never much faster on modern CPUs anyway
made a lot of internal functions in portals.c static, and replaced two vector subtracts and a crossproduct with TriangleNormal
black [Wed, 8 Jun 2005 20:12:37 +0000 (20:12 +0000)]
New Key_Event is still disabled.
Changed it back, so keys bound to toggleconsole that arent used as
console keys can hide the console again when pressed in the console.
molivier [Wed, 8 Jun 2005 06:06:44 +0000 (06:06 +0000)]
Changed default sound module for linux to ALSA. Modified makefiles to allow people to choose the sound module easily at compile time (ex: "make DP_SOUND_API=OSS release" compiles release binaries with OSS sound output). Available sound modules are: NULL, OSS, ALSA, BSD, WIN, and COREAUDIO (not functional yet).
black [Tue, 7 Jun 2005 20:55:08 +0000 (20:55 +0000)]
My Key_Event is disabled (yet).
-Changed it to only toggle the console with ESCAPE when you're in the console,
so binding toggleconsole to a normal key wont toggle it while typing.
-Changed the panic console key to shift-escape since ctrl-escape open the start
menu.
Feel free to test it.
@ETG: since I can probably only reach you this way: it is intended that the console
toggle key now appears in the console input line and is also send to e.g. message.
This is because the color tag ^ key opens the console on some keyboard layouts and
couldnt be typed in otherwise.
black [Mon, 6 Jun 2005 20:37:00 +0000 (20:37 +0000)]
If the new Key_Event breaks anything for you, you can set #if 0 and activate the old
one again.
-Moved _Con_DrawString to cl_screen and changed its name to DrawQ_ColoredString.
-Changed all the code to allow colored nicks.
-Changed Win32 code to support two-char keys (it takes the second byte - may
need some more testing).
-Rewrote Key_Event to support typing in the ^ key on Germany keyboards (or
at least mine). Press ^ two times, once to open the console and once to close it.
If you type in a message, there will be a ^ char waiting for you (same in the console if you open it again).
havoc [Sun, 5 Jun 2005 09:27:19 +0000 (09:27 +0000)]
fix lagged prydon cursor trace bug (it was using renderer variables, now uses V_CalcRefdef to get an up to date view matrix before this frame is even rendered)
fixed 'shooting at world origin' bug due to a misplaced CL_UpdatePrydonCursor call (now in CL_SendMove so it works properly)
havoc [Fri, 3 Jun 2005 14:11:07 +0000 (14:11 +0000)]
rewrote PRVM_AllocString and PRVM_FreeString to deal with string offsets directly (rather than pointers) to avoid unnecessary GetString/SetString calls
havoc [Fri, 3 Jun 2005 12:49:36 +0000 (12:49 +0000)]
shut down local server when connected to a remote server
some cleaning of NetConn_QueryQueueFrame (and it now goes to sleep when there are no remaining queries to run as an optimization)
added net_slist_queriespersecond and net_slist_queriesperframe cvars
black [Thu, 2 Jun 2005 19:21:26 +0000 (19:21 +0000)]
Didnt know that Host_StartVideo works this way (called randomly around the code), so now the menu should be loaded at the right time (or just-in-time :))
black [Thu, 2 Jun 2005 19:00:05 +0000 (19:00 +0000)]
-Changed host_abortserver to host_abortframe.
-Added a hack to allow the menu crash in Host_Init without it taking down
the whole host (please intergrate this into the general design somehow ASAP).
-Changed the hostcache code to always add servers at the right position and
to eject 'worse' servers from the viewlist.
black [Wed, 1 Jun 2005 19:21:09 +0000 (19:21 +0000)]
-Added Host_AbortCurrentFrame to hide the longjump and make it usable by
the VM error functions.
-Moved the static variables of Host_Error into the function body.
-Changed the definition of error_cmd to be called instead of Host_Error,
so the VM control code is in full control of the error processing.
-Added MP_Error to the menu, so a menu crash wont shutdown the server anymore.
-Fixed an annying bug caused by a typo, that crashes Nexuiz if you query for
a string in the serverlist.
-PRVM_Crash resets the prog pointer now.
-PRVM_Begin use Con_Printf again (but PRVM_DEBUGPRSTACK has been disabled again).
havoc [Wed, 1 Jun 2005 08:37:33 +0000 (08:37 +0000)]
shortened movement queue back to 64 items to prevent a runaway loop (falling behind and not being able to run the collisions fast enough) in Nexuiz maps on my machine