Thilo Schulz
d57ba6a57b
- Automatically reset fs_game to "" if it was supplied by the user and is equal to com_basegame
...
- Fix problem where users could change values of CVAR_INIT variables after the call to Cvar_Get() via Com_StartupVariable()
- Move sound shutdown after client shutdown so VMs don't hold invalid sound handles in memory
2011-06-22 23:00:36 +00:00
Thilo Schulz
dee3724a13
- Improve game_restart:
...
* differing screen resolutions and network settings are now honoured when changing fs_game
* Fix hunk memory leak on game_restart
* Move cls.state and cls.servername to clc so connection state is fully preserved over game_restart
* Revert back to previous fs_game after disconnecting from a server that triggered a game_restart
* Fix error dialog popping up after every game_restart if an error happened previously (reported by Ensiform)
- Fixed that not all commands added by CL_Init() would be removed by CL_Shutdown()
2011-06-21 11:18:35 +00:00
Thilo Schulz
a5f31084d4
- Fix memory leak in DMA sound after S_Shutdown()
...
- Make codec load use temp hunk memory instead of zone mem
- Fix sound issues with direct sound and game_restart (#4526 )
2011-06-17 23:29:19 +00:00
Thilo Schulz
9219cde4e8
- Small change to search path order - local files not in .pk3s take precedence over files in pk3s. Should make life easier for modders/mappers wanting to override textures that are already contained in some older pk3
...
- Make VM loading more robust, change loading order: when vm_* == 0 first try loading DLL, then QVM in *each* search directory/path
- Fix FS_FileForHandle that would return a FILE pointer to invalid file handle 0
2011-06-15 22:09:26 +00:00
Thilo Schulz
d34c6b7e0b
Revert protocol 69 pending further discussion ( #4962 )
2011-04-27 20:17:45 +00:00
Thilo Schulz
a5580d8974
- Harden the client and server protocol against UDP spoofing attacks. This will defend ioquake3 against http://aluigi.altervista.org/papers/q3noclient.txt ( #3041 )
...
- Retains full compatibility to the old but unsecure protocol between clients and servers
- Harden the connection process against DoS attacks, possibly connected to UDP spoofing
2011-04-27 16:03:35 +00:00
Thilo Schulz
6a203bc8e9
- Fix data alignment issue with glReadPixel call, reported by Guillaume Bougard ( #4954 )
...
- Fix data alignment issue in raw AVI recording for weird resolutions (like 1366x768)
2011-04-18 16:06:10 +00:00
Thilo Schulz
3bf8ec2dab
( #4925 ) - com_pipefile to create a named pipe for sending commands from other processes, patch by Chris Schwarz
2011-03-10 01:01:27 +00:00
Thilo Schulz
8c3f320504
( #3767 ) Some protection from malicious qvms - patches and ideas by Amanieu d'Antras and Ben Millwood
2011-03-08 01:39:34 +00:00
Thilo Schulz
0387b8002e
Add cvar "protocol" so user can change protocol version on command line, for standalone games. Most of the patch by Simon McVittie with a few minor modifications by myself
2011-03-05 19:10:23 +00:00
Thilo Schulz
614f315ce8
Fix console tab autocomplete for exec and condump on pure servers, patch by Zack Middleton
2011-02-10 19:58:20 +00:00
Thilo Schulz
2b52867b74
Code cleanup patch by devhc
2011-02-08 18:19:31 +00:00
Thilo Schulz
7bb5906599
Patch by Simon McVittie to improve dynamic library loading ( #4700 )
2011-02-04 17:47:57 +00:00
Thilo Schulz
0eb5d1720c
Fix banfile writing to wrong game directory
2011-02-04 12:34:11 +00:00
Thilo Schulz
3148416c04
- Change runtime standalone detection:
...
* com_standalone now read-only
* add new cvars com_basegame, com_homepath
* standalone now automatically detected when com_basegame is set to something different than baseq3 and no id pak pk3s are found
* This fixes https://bugzilla.icculus.org/show_bug.cgi?id=4699
- Replace a few hardcoded string literals with macros
- Add checks for Team Arena PK3s to FS_CheckPak0()
2011-02-04 12:04:56 +00:00
Thilo Schulz
e5dbce839a
- Use select() to sleep when idle as opposed to busy waiting.
...
- Introduce com_busyWait cvar to go back to old behaviour
2011-02-02 16:46:23 +00:00
Tim Angus
005f870ebe
* Sys_Dialog for more user friendly error reporting
...
* (bug #3932 ) Recovery from bad video settings
2010-02-15 16:20:33 +00:00
Thilo Schulz
258429efe7
- Add unset command for cvars created by the user
...
- Fix crash bug when maximum number of cvars has been reached
- Fix cvar_restart
- Add possibility to cleanly switch mods ingame (#2819 )
2009-11-09 22:41:42 +00:00
Tim Angus
eee9770fbf
* Reimplement r1597-1598 in a better way (Oopss)
...
* Fix Sys_SetEnv warning
2009-11-05 20:20:23 +00:00
Thilo Schulz
fd57c987c4
Fix infinite loop in case an invalid pk3 file has been downloaded from the server. Thanks tjw for reporting ( #3074 )
2009-10-19 22:36:17 +00:00
Thilo Schulz
186f30a74f
Fix netcode inconsistency, thanks to /dev/humancontroller for the patch, see http://bugzilla.icculus.org/show_bug.cgi?id=4060
2009-10-12 17:17:15 +00:00
Tim Angus
083bd1b005
* ...and actually r1626 this time
2009-09-16 09:30:21 +00:00
Ryan C. Gordon
826f05f95f
Let a separate libdir be specified for loading libraries.
...
Partially fixes Bugzilla #4271 .
2009-09-15 06:32:05 +00:00
Ryan C. Gordon
5079343ecd
Fixed infinite recursion of writing crashlog because we're out of file handles.
...
Fixes Bugzilla #3772 .
2009-09-15 00:19:22 +00:00
Thilo Schulz
78254a626f
Move these definitions over for other files to use in preparation of the next commit
2009-06-23 00:45:07 +00:00
Thilo Schulz
18cc7c1ed3
Make servers echo challenge codes from client getchallenge commands
2009-06-01 05:28:47 +00:00
Thilo Schulz
7aed7e8861
Make command net_restart work so that port/ip settings can be changed without server restart
2009-05-29 03:14:49 +00:00
Thilo Schulz
50ca55702f
- Introduce new NET_CompareBaseAdrMask for easy comparison of ip address ranges
...
- Overhaul of the new banning functions:
* basic check for redundant bans/exceptions
* introduction of sv_banFile to make it possible to configure the file where to read bans and exceptions from
* bans can now be deleted by giving address ranges, too.
2009-05-24 16:58:08 +00:00
Ludwig Nussel
f5aae78481
security fix: prevent command injection via callvote
2009-01-17 23:09:58 +00:00
Ludwig Nussel
c754d6fdfb
fix strict aliasing issues
...
Patch by Przemysław Iskra (#3805 )
2008-11-03 17:03:54 +00:00
Ludwig Nussel
f86f8e8ed8
fix 64bit VM interface to work on ppc64 ( #3838 )
2008-11-03 17:03:44 +00:00
Tim Angus
130c0c6575
* Move command argument completion from being hard coded to being associated
...
with the individual commands to be completed
2008-09-16 21:05:22 +00:00
Thilo Schulz
9dd887b2ea
- Add scope id to ipv6 addresses.
...
- Clean up a few other ipv6 issues like removing the seemingly unnecessary MacOSX workaround.
- Bring ipv6 master server up to speed for dpmaster
Thanks go out to Mathieu Olivier for this work.
2008-08-31 19:54:29 +00:00
Tim Angus
b555d68b3f
* (bug #3729 ) server dependencies on client.h (Ben Millwood)
...
* (bug #3731 ) BUILD_MISSIONPACK flag in Makefile (Gabriel Schnoering
<gabriel.schnoering@gmail.com>)
* (bug #3756 ) Q3VM crashes on unaligned block copy with SIGBUS (Patrick Baggett
<baggett.patrick@figglesoftware.com>) and...
* (bug #3755 ) IOQuake3 shouldn't use GCC-specific __FUNCTION__
2008-08-22 22:47:26 +00:00
Tim Angus
0124371c01
* Use Sys_Sleep to limit FPS, which will save CPU
...
* Add com_maxfpsUnfocused and com_maxfpsMinimized; self explanatory
* Fix reopening of bug 3703, I hope
2008-07-21 22:02:54 +00:00
Tim Angus
37d664d4b2
* Rename voip cvar to cl_voip
...
* s/#if USE_VOIP/#ifdef USE_VOIP/
* Add generalised runtime cvar range checking, currently on [sv|cl]_voip,
dedicated and a bunch of r_ variables
2008-07-07 22:31:39 +00:00
Ryan C. Gordon
8ab3f7af8d
Changed the protocol for VoIP packets to support legacy clients.
...
Previously, a legacy client wouldn't get a VoIP packet, but if they did,
they'd panic and disconnect. Now they ignore them and continue on. This also
gives us the framework to add other features legacy clients can ignore.
Oh, this also has the benefit of allowing us to store incoming VoIP for
playback in recorded demos. They'll play the chatter on VoIP clients, and
be ignored on legacy ones. Huge win.
2008-06-03 02:32:52 +00:00
Ryan C. Gordon
12326a9eac
Initial patch for in-game VoIP support!
2008-06-01 07:51:23 +00:00
Thilo Schulz
f8d8a1c2f7
- fix a potential file descriptor leak in server side of pak downloading
...
- add new functions for banning clients from server, in engine part. This will also make it possible to ban ipv6 addresses in old mods.
2008-04-12 17:00:18 +00:00
Thilo Schulz
9a8cc99a93
- Revamp in-game server browser: you can now scan for games on multiple master servers, while retaining compatibility with old QVMs.
...
- Make Master server reporting/server queries ipv6 capable.
2008-04-11 18:39:03 +00:00
Thilo Schulz
78a82bcba2
Add com_standalone cvar for at-runtime handling of mods that do not require the original quake3 game data.
2008-04-10 15:37:25 +00:00
Thilo Schulz
b3822d03e2
Include #ifdef to make it easier to create a stand-alone binary.
2008-04-09 23:43:30 +00:00
Thilo Schulz
eb3b59308b
Add Multicast capabilities for LAN server scanning.
2008-04-09 14:37:42 +00:00
Ludwig Nussel
43ac1eca6a
set flag to allow forced unload of a running VM
...
required to prevent a client from exiting if the server disconnects (bug 3585)
2008-04-06 12:59:35 +00:00
Thilo Schulz
5d63a38ad9
Basic IPv6 support. Some inspiration from the patches by Lubos Dolezel and JF Tremblay at https://bugzilla.icculus.org/show_bug.cgi?id=2355 .
2008-04-04 23:22:22 +00:00
Thilo Schulz
bb47026b5f
- Replace vsprintf function in bg_lib.c with vsnprintf implementation started by Patrick Powell.
...
- Remove all calls to vsprintf in the engine and gamecode and replace them with calls to vsnprintf.
2008-03-25 21:36:09 +00:00
Tim Angus
e31156e586
* Write q3config_server.cfg for the server, to avoid reseting client variables
...
after running a dedicated server
2008-02-28 21:39:54 +00:00
Thilo Schulz
87fa68fd41
Add gamedirectory in .app to searchpath on MacOSX
2007-12-14 21:53:57 +00:00
Tim Angus
aa5e852056
* Unconditionally place a '\' at the start of the command buffer when
...
autocompleting -- you're still all WRONG :p
* Fix bugette where the completee didn't get its case copied from
the completed token
* Add functionality to autocomplete key names
* Don't build client command completion on the dedicated server
2007-10-12 22:34:45 +00:00
Tim Angus
26641226a4
* Remove some C99isms (f0rqu3)
...
* Provide Q_snprintf wrapper for snprintf (f0rqu3)
2007-10-01 07:56:32 +00:00