forked from fte/fteqw
1
0
Fork 0
Commit Graph

533 Commits

Author SHA1 Message Date
TimeServ a631205fe7 added conditional variables for win/linux/sdl, switched sql thread worker to conditional to avoid busy looping, corrected a spikeism
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2991 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-01 05:42:23 +00:00
Spoike 94d108c522 Fixed up qc stat field submission.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2989 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-31 10:35:38 +00:00
Molgrum 69a32e88de Stop RealIP-checks when realip_status has reached sv_getrealip.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2986 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-30 21:38:02 +00:00
Spoike 0e754dea0f k, next time I might test it.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2985 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-27 20:08:21 +00:00
Spoike 89a4f03160 Tweeked the realip stuff to tolerate ezquake. Added new cvar, sv_realip_kick. should be set to no greater than sv_getrealip. sv_getrealip 1 is mvdsv-level security, 2 ensures that there is a quakeworld client at that ip, while 3 ensures that its the actual client that its meant to be. Note that only FTE supports 3 and ezquake/fuhquake don't even support 2 (while mqwcl does). The higher the value, the higher the certainty.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2984 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-27 18:59:07 +00:00
Spoike 0479526cfe okay, guaranteed no collisions on realip challenges.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2983 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-26 21:58:26 +00:00
Spoike 4afc4aa4e6 Randomized the realip challenge.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2982 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-26 21:51:19 +00:00
Spoike 594c81c3b5 Fixed voting to not crash the server when votes time out. Whoops.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2981 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-26 21:50:11 +00:00
Spoike af47e57535 Fixed a typo, sv_realiphostname_ipv6 should now exist.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2978 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-26 19:34:03 +00:00
Spoike 654eabc4c2 Reworked stats for csqc to match LH's suggestion. CSQC can read the 'delta' entities (experimental). Fixed up sv_getrealip, made banning work based on realip too. Added a ban command to easily ban a single client. Renamed some svcs for clarification. Added pvsflags to ssqc for greater control over how ents are sent to csqc. Broke some stuff.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2977 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-25 22:23:43 +00:00
Molgrum 3ddb5e5dc5 Make it compile on Windows.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2962 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-24 20:04:38 +00:00
TimeServ ce5cb75832 this commit will most likely break things: main Z_*/BZ_* calls no longer have zone logic, tagged allocs redone and now partially thread safe (still Sys_Error), code using reallocs should no longer assume new memory is zeroed, minor mysql fixes
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2951 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-09 14:22:37 +00:00
TimeServ cd0171d73e fix sqlescape, sqlopenquery changed so parameters 3+ can be concatenated for final query string
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2943 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-04-17 19:16:21 +00:00
TimeServ 9e7a43c96c SQL: sqlreadfield with a negative row returns field name, server request/result stacks changed to queues, query references numbers limited to +/-50000, proper library init/end calls, sqlversion call
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2942 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-04-15 00:29:17 +00:00
TimeServ 7f73771ba2 mysql includes and libmysql.dll loader code for win32
added preliminary FTE_SQL code (not in a usable state), current problems: 
WINDOWS ONLY, database connect is hardcoded to a local server, conditional wait needed for worker thread (currently consumes 100% cpu), query requests and results should be a queue not a stack, sql init and deinit is in the wrong place, project and defines need updating, tons more things

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2941 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-04-14 07:47:30 +00:00
TimeServ 1673ca7a7a PROTOCOL_VERSION to PROTOCOL_VERSION_QW to resolve a future header conflict
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2940 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-04-12 23:24:19 +00:00
Molgrum 85c12e3a9c Bugfix, found by qqshka.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2936 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-03-10 15:24:25 +00:00
Spoike 04bdd8d827 Fixed a minor bug that has never occurred.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2910 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-02-05 02:44:01 +00:00
Spoike 8c6bf11a10 That's meant to be a temporary error.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2909 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-02-05 02:41:46 +00:00
Mark Olsen 83d23423ab characture -> character
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2882 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-28 13:27:30 +00:00
Spoike 7584ae2e34 Changed the pf_clientstat function and parameters to match the ordering originally documented in the ext_csqc extension I posted on wiki.quakesrc.org, as per krimzon's recommendation. Updated qclib to support querying fields based on their offset rather than purely a name basis, to support the clientstat change.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2869 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-23 01:31:01 +00:00
TimeServ ec41df875c terrible workaround for optimization floating point compare problems
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2856 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-13 00:25:06 +00:00
Spoike bd6e6cb2b8 More meaningful name for unnamed clients
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2843 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-08 19:36:30 +00:00
Molgrum 8e31e97f60 Screwed up here, this is supposed to be code for two cases. Thanks qqshka.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2842 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-05 12:29:23 +00:00
TimeServ 463a172753 forgot pthread include
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2835 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-30 20:12:50 +00:00
TimeServ 16caf0e1da added another thread call and fixed up some thread creation logic
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2834 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-30 20:05:49 +00:00
TimeServ a6617581c8 thread creation/mutex stubs, code is probably wrong but everything is surronded by #define MULTITHREAD so shouldn't break anything
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2831 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-30 00:09:34 +00:00
Mark Olsen fa9ffe86b4 thier -> their
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2818 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-23 20:28:40 +00:00
Mark Olsen 17a004d9c5 Really funny. Random stack values always are.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2802 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-03 11:40:18 +00:00
Mark Olsen bd10f65dfc Someone forgot a static keyword in Sys_Milliseconds(), making the comparison base always a random stack value.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2801 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-03 11:38:58 +00:00
Spoike bc19d31dc3 Some implementations ignore 0x prefixes in atoi
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2783 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-11-09 21:21:21 +00:00
Molgrum 239f0c9d38 I guess all of these are to be changed too, please confirm.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2779 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-11-04 08:21:19 +00:00
Molgrum 93c94f2b61 Just a minor consistency fix.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2778 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-11-04 08:16:23 +00:00
Molgrum ef3c7621af Warning fixes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2768 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-29 06:46:04 +00:00
Lance f34c09bc37 fix in map loading code, quake can now load dm6++
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2762 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-25 07:29:59 +00:00
Molgrum 48933f0862 Temporary workaround for the DP_SV_BOTCLIENT speedbug on listen servers. Needs some proper fixing!
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2745 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-14 20:32:21 +00:00
Molgrum d598dbbe64 Naming standard being followed: DP_QC_BOTCLIENT -> DP_SV_BOTCLIENT
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2743 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-14 01:52:42 +00:00
Mark Olsen 306a02204b Workaround for broken bot angles.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2742 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-14 00:54:29 +00:00
Molgrum 458e39e36a Removed the oldmovement code in DP_QC_BOTCLIENT. Previous commit was warning fixes in D3D.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2736 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-11 13:31:31 +00:00
Molgrum 1120786c44 A better botclient movement code, hopefully fully operational this time.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2726 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-08 12:23:55 +00:00
Molgrum 0f02f12b8b s/compatable/compatible (take notice that sv_compatablehulls will have a changed name too)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2717 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-05 18:08:47 +00:00
Molgrum 379efc8376 s/thier/their
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2716 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-05 17:43:26 +00:00
Molgrum a07ed00f94 Botclient ucmd.angles are now correct, but the bot is still facing the wrong way.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2714 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-05 16:05:33 +00:00
Spoike fb99c6f501 I suck
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2713 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-05 14:17:55 +00:00
Spoike f9277a9e74 Made minimal builds compile again, hopefully.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2712 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-05 14:11:17 +00:00
Spoike c6325976f0 Cleaned the code a tiny bit, resolved the movement-got-changed issue.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2706 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-05 10:44:36 +00:00
Molgrum 7ab0b2ea43 The usual errors and warnings.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2697 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-02 15:25:26 +00:00
Molgrum a06055f971 Fixed bot support.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2696 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-02 15:17:22 +00:00
Mark Olsen faac72835c SP_#? -> CON_#?
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2686 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-09-23 15:28:06 +00:00
Mark Olsen ca258deb83 Fixed a harmless Valgrind hit. (I think. I don't actually remember this change :)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2672 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-09-22 19:29:24 +00:00