2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00
Commit Graph

541 Commits

Author SHA1 Message Date
asmodai
982b5bc059 Fixed mistake in HPAK_AddLump 2016-01-17 15:43:24 +03:00
asmodai
267c7eb327 Fixed crash in Q_UnicodeConvertT
Refactoring in SV_ExtractFrom
Added Steam_GSBUpdateUserData hook
Refactored and optimized calculateBytecount without hardcode
2016-01-17 02:29:16 +03:00
asmodai
4aad7ec954 Fixed DELTAJIT_MAX_FIELDS limit check
Optimizations in delta jit
2016-01-17 02:26:43 +03:00
WPMGPRoSToTeMa
308ca9936a NET_IPSocket: Disabled adding DF flag on some linux 2016-01-12 18:47:37 +03:00
theAsmodai
cb59c433c7 Merge pull request #126 from theAsmodai/master
Using undecorated function name macros for linux
2016-01-10 19:43:19 +03:00
asmodai
59411b08cc Using undecorated function name macros for linux 2016-01-10 19:35:34 +03:00
s1lentq
fda2308b1a ReHLDS API: Added SV_TransferConsistencyInfo, SV_FileInConsistencyList 2016-01-10 21:39:33 +06:00
asmodai
1af3ec18ba Increased move command burst rate
Fixed bug with angles on dying
2016-01-10 17:35:55 +03:00
theAsmodai
ac8345914e Merge pull request #123 from dreamstalker/_118
Fixed crash on bot disconnect
2016-01-10 17:19:56 +03:00
asmodai
3f2a77b71c Fixed crash on bot disconnect
Using inline algorithms instead of defines
2016-01-10 17:06:19 +03:00
WPMGPRoSToTeMa
22f200e133 Small fix in Netchan_Process 2016-01-09 21:27:18 +03:00
s1lentq
665605e0ab ReHLDS API: Added functions SetResourcesNum and GetResourcesAt for the API. 2016-01-07 18:57:19 +06:00
s1lentq
6dcdc8a600 Fixed #103: Server sends TeamScore to early connection client which leads to bug in ScoreBoard CS 1.6 2015-12-27 22:40:04 +06:00
asmodai
418450c7ce Fixed typo with sv_echo_unknown_cmd 2015-12-27 03:59:57 +03:00
theAsmodai
9845ae4dc3 Merge pull request #111 from dreamstalker/coverity_fixes
Fixed some issues found by Coverity
2015-12-27 03:30:46 +03:00
asmodai
fb4247d8ef Added optional echo for unknown commands (#91)
Updated flood rates
2015-12-27 03:13:19 +03:00
asmodai
6a4dc69ef7 Added Steam_GSGetSteamID hook 2015-12-26 21:15:50 +03:00
asmodai
f6be473879 Fixed types in Sys_CheckCpuInstructionsSupport 2015-12-14 01:00:55 +03:00
asmodai
e31eb21fa2 Added API registration tool for plugins
Fixed voice stream API
2015-12-13 23:03:21 +03:00
asmodai
629f313597 Fixed cpu features detection code for SDK 2015-12-13 17:58:06 +03:00
s1lentq
1f63618ea6 ReHLDS API: Added function SetLastVoiceTime for api 2015-12-13 20:23:27 +06:00
s1lentq
ee4dbe6481 ReHLDS API: Added some functions 2015-12-13 19:29:40 +06:00
s1lentq
1140f915dc Fix: hang the players on a scoreboard after changelevel map 2015-12-12 18:12:02 +06:00
s1lentq
5dcfd505c3 Fix: skip bytes BOM signature in SV_CreateGenericResources 2015-12-04 22:23:05 +06:00
s1lentq
0d909ccf41 Fix: bug with removing slash in the path to resources 2015-12-04 21:11:51 +06:00
s1lentq
46a30c6afb use own tables non-printable characters for windows.
symbol 0x1160 marked to like non-printable
2015-12-04 19:46:57 +06:00
s1lentq
93a13815e3 Fix: bug in SVC_GetChallenge incorrectly used format specifiers type uint64 for Linux.
Fix: spelling mistake with SV_CheckConsistencyResponce
Fix: net_from in solution project for HOOK_ENGINE
Cleanup and fix to build success for all solutions.
2015-11-17 11:35:21 +06:00
s1lentq
b64a4f6c84 Fix: bug with removeHook not erases address callback 2015-11-14 18:26:25 +06:00
s1lentq
b7bd3f7720 ReHLDS API: Implemented SV_ActivateServer hook and added GetResourcesNum, GetDecalNameNum
Fix: using defines instead of magic numbers
Added include qlimits.h
Reduced the size global variable localinfo, ipfilters, userfilters
2015-11-13 04:42:47 +06:00
s1lentq
67e8a5b646 ReHLDS API: Implemented SV_DropClient hook 2015-11-11 04:25:41 +06:00
s1lentq
961028fa39 ReHLDS API: Added functions SV_AddResource, SetNumConsistency, GetNumConsistency.
Changed name GenericFileConsistencyResponce to CheckConsistencyResponce
2015-11-08 22:35:32 +06:00
s1lentq
24eb2d0ccd Fix for:
- correctly using types with define
 - missing EXT_FUNC for SV_GetChallenge
2015-11-08 19:43:39 +06:00
theAsmodai
3be05fce38 Merge pull request #93 from WPMGPRoSToTeMa/master
Fixed typo in SV_RunThink (#92)
2015-11-08 15:25:17 +03:00
WPMGPRoSToTeMa
4d276db7b6 Fixed typo in SV_RunThink 2015-11-08 03:03:00 +03:00
s1lentq
2a24337eee Cut of nicknames '+' if next there is something digit or alphanumeric character.
Added prefix Q_* for functions strlen/strcmp/strpcy/memset/memcpy/memmove etc.
Added for solution configuration (Debug Swds Play/Release Swds Play) the path to libacof32.lib in linker.
2015-10-27 21:14:08 +06:00
WPMGPRoSToTeMa
bcec2c6018 Fixed bug in Netchan_Validate overlap check: added check for fragment availability 2015-10-26 20:11:54 +03:00
WPMGPRoSToTeMa
446fe8896b Fixed some typos 2015-10-26 04:36:28 +03:00
WPMGPRoSToTeMa
2364b5ce67 Implemented Q_iswprint for linux 2015-10-19 02:01:43 +03:00
asmodai
9b99a54e34 Added optimized stdlib functions from Agner's asmlib
Increased allowed string commands rate
2015-10-18 00:11:21 +03:00
asmodai
09f1f799a1 Fixed loading of maps without world classname or with long list of wads
Removed rtti
Reduced MAX_HOOKS_IN_CHAIN value
2015-10-17 21:25:18 +03:00
s1lentq
365ad30c20 Fix: not read configuration the files at rehlds_fixes (bug in Cbuf_InsertTextLines) 2015-10-17 06:55:52 +06:00
s1lentq
55c9a80cde Changed version in Host_Version at rehlds_fixes
Added Q_iswprint
Added cvar sv_force_ent_intersection for to bypass condition check with SOILID_SLIDEBOX and forced call SV_CheckSphereIntersection
2015-10-17 05:35:42 +06:00
s1lentq
c62f8a982c Fix crash Con_DPrintf at linux
Added missing EXT_FUNC for Con_DPrintf
2015-10-16 18:31:02 +03:00
asmodai
76c737c773 Fixed connection check 2015-10-11 21:01:02 +03:00
asmodai
317a9dc3ba Fixed stringcmd flood
Fixed const qualifiers in sdk
Exported sv_version cvar
2015-10-11 19:04:21 +03:00
asmodai
5a8aa9ce8b Implemented SV_GetChallenge for API. 2015-10-10 20:02:29 +03:00
asmodai
aedbcd1380 Added API for getting cvar_vars. 2015-10-05 00:23:10 +03:00
asmodai
4594ffba4a PreprocessPacket hook moved after IP ban check
AUTH_IDTYPE moved to ReHLSDK
2015-09-29 22:56:25 +03:00
theAsmodai
8e0377617c Merge pull request #67 from theAsmodai/ParseLine_Fix
Parse line fix
2015-09-28 20:28:07 +03:00
asmodai
0e4973de19 Fixed UTF and \t in COM_ParseLine
Fixed undefined structs error in ReHLDSK
2015-09-28 20:20:19 +03:00
s1lentq
1d00c3e8d1 Implemented notify of warning about failure tests 2015-09-28 19:51:06 +06:00
asmodai
04afd94aa7 HookChains refactoring.
Added API functions for getting all net message buffers.
Added callback for file hash checking.
Fixed tests passing if sse 4+ doesn't supported.
2015-09-28 02:04:50 +03:00
asmodai
fef6405b61 Fixed some issues found by Coverity 2015-07-25 03:04:18 +03:00
asmodai
c04b30a7fb Implemented SV_WriteFullClientUpdate callback 2015-07-16 15:04:41 +03:00
dreamstalker
474ab2cbc1 Merge pull request #60 from WPMGPRoSToTeMa/fragoverflowfix
Fixed net_message overflow in Netchan_CopyNormalFragments()
2015-07-16 11:44:43 +04:00
WPMGPRoSToTeMa
a3b651e54b Added overflow checks in Netchan_CopyNormalFragments 2015-07-16 10:04:27 +03:00
dreamstalker
7d7d5a7fea Merge pull request #59 from WPMGPRoSToTeMa/versionprinting
ReHLDS API version print by "version" command
2015-07-16 10:26:21 +04:00
dreamstalker
d05e82d530 Merge pull request #61 from WPMGPRoSToTeMa/clreslistchecks
Added checks for client resource list (customization list)
2015-07-16 10:26:07 +04:00
WPMGPRoSToTeMa
13706b1c07 Added checks for client resource list 2015-07-16 09:01:32 +03:00
WPMGPRoSToTeMa
8b66bc9f27 ReHLDS API version print by "version" command 2015-07-16 08:52:47 +03:00
WPMGPRoSToTeMa
6a819c8683 Fixed MAX_FRAGMENTS count 2015-07-16 04:43:03 +03:00
WPMGPRoSToTeMa
7db9030b6f Added iswprint check in Q_IsUnprintableW function
Added Q_StripUnprintableAndSpace function using for player name
2015-07-16 02:29:57 +03:00
asmodai
a3094b3719 Fixed bug in challenge generator. 2015-07-14 15:01:40 +03:00
theAsmodai
d3d296cbcc Merge pull request #54 from WPMGPRoSToTeMa/master
Fixed #53
2015-07-14 01:55:32 +03:00
WPMGPRoSToTeMa
81f7402466 Forced PSAPI_VERSION to 1 2015-07-14 00:58:41 +03:00
dreamstalker
90ecc3f4d5 Merge pull request #52 from WPMGPRoSToTeMa/setmodelnameapi
Added SetModelName function to ReHLDS ServerData
2015-07-14 01:19:36 +04:00
s1lentq
2531c8f8af Added missing EXT_FUNC functions to ReHLDS API 2015-07-13 23:34:33 +06:00
WPMGPRoSToTeMa
db2c7c7c10 Added SetModelName function to ReHLDS API 2015-07-13 02:00:34 +03:00
dreamstalker
131d43a15e Added missing EXT_FUNC marks 2015-07-13 00:01:02 +04:00
s1lentq
a5d278fb1e Implemented unregisterHook for hookchain and added some functions to ReHLDS API 2015-07-07 23:33:50 +06:00
s1lentq
0f5844c6aa Fix bug with SV_CheckForDuplicateNames 2015-07-06 01:59:56 +06:00
asmodai
9d3e472762 Fixed #46 2015-07-04 22:00:08 +03:00
asmodai
c1daf838c3 Added client_t<>index conversion functions to ReHLDS API. 2015-07-04 20:31:51 +03:00
thecrock
b0e4e5fa4f Fix for the Buffer Overload 4 exploit 2015-07-02 20:32:50 +04:00
dreamstalker
ed575d9b7d Fixed: all functions that could be called from outside must realign the stack
Removed NOINLINE from MSG_Write*Bits functions since stack alignment issue is resolved
2015-06-30 17:09:22 +04:00
dreamstalker
8aac19ce00 FlightRecorder: write all console and log messages to the flight log
Refactored tests
2015-06-28 21:15:11 +04:00
dreamstalker
c0889990db Merge branch 'coverity_fixes' 2015-06-27 16:28:02 +04:00
dreamstalker
41ffb2d13c Fixed issues found by Coverity 2015-06-27 14:06:45 +04:00
dreamstalker
53649a3da2 Expose pointer to the cmd_source through rehlds API 2015-06-26 21:26:33 +04:00
dreamstalker
1463a1a2f8 Fixed issues found by Coverity in the engine 2015-06-26 21:21:55 +04:00
dreamstalker
328c32f8c9 Fixed the "server failed to transmit file 'AY&SY..." bug 2015-06-23 20:08:42 +04:00
dreamstalker
b08e7cb679 Fix Linux build 2015-06-23 00:27:25 +04:00
dreamstalker
90f24f0413 ReHLDS API: Added interceptor for string commands handled by the engine
Mark rehlds_syserror() as noreturn
Added missing includes in ReHLDS API
2015-06-23 00:15:27 +04:00
dreamstalker
f5a9f2e413 Workaround for 'stack misaligned when inlining SSE' bug in icc 2015-06-17 23:36:36 +04:00
dreamstalker
da547bd7c7 SV_ConnectClient: format *sid properly 2015-06-16 14:04:26 +04:00
dreamstalker
7314efd6e5 Merge pull request #36 from dreamstalker/_34_tests
Fixed #34: Implemented safe strcpy()
2015-06-16 13:58:31 +04:00
WPMGPRoSToTeMa
69fd6eff17 Voice_GetClientListening bugfix 2015-06-15 19:09:25 +03:00
dreamstalker
3cd4a52567 Implemented strcpy_safe which is safe to use with overlapping src and dst buffers
Use strcpy_safe in Info_ functions
2015-06-14 23:08:03 +04:00
dreamstalker
34686c3819 Tests for Info_ functions 2015-06-14 22:56:25 +04:00
dreamstalker
ae5cbf8cbc Merge pull request #33 from dreamstalker/unicode_strtools_tests
unicode_strtools unit tests
2015-06-13 22:53:07 +04:00
dreamstalker
f2e8610689 unicode_strtools unit tests 2015-06-13 22:22:08 +04:00
asmodai
a6788217e7 Fixes in SV_ExtractFromUserinfo, SV_CheckForDuplicateNames, SV_CheckUserinfo. 2015-06-13 16:40:27 +03:00
dreamstalker
438726f462 Fixed typo in Q_UnicodeConvertT
Rehlds Demo Player: print number of frames calculated when demo ends successfully
2015-06-13 16:08:16 +04:00
dreamstalker
ddc6d1e3d4 Link clock_gettime from librt to avoid dependency of GLIBC_1.17 2015-06-12 17:15:23 -05:00
asmodai
895f0beda5 Added names for network constants. 2015-06-07 21:06:20 +03:00
asmodai
c3e5486612 Fixed message fragments validation.
Fixed NET_GetLong.
Passing netadr_t to functions by reference instead of copying.
Added missed Q_ prefix for stdlib functions.
2015-06-07 03:55:42 +03:00
dreamstalker
b6c01cdd4c Link libstdc++ statically on linux
Updated gradle to 2.4
Updated gradle-cpp-plugin to 1.2
2015-06-06 23:40:49 +04:00
dreamstalker
76b017901b Merge pull request #27 from dreamstalker/flightrec
Implemented decoder for FlightRecorder's logs
2015-06-06 21:07:34 +04:00
dreamstalker
f2b95b0305 Implemented decoder for FlightRecorder logs 2015-06-06 16:24:53 +04:00
asmodai
7a973d1afb JITted DELTA_TestDelta.
Maked unit test for DELTA_TestDelta.
Unrolled tail recursion in SV_FindTouchedLeafs and SV_LinkContents.
Other small optimizations and fixes.
2015-05-29 23:21:20 +03:00
dreamstalker
391bd5d627 Merge branch 'master' into flightrec
SSE4.2's crc32 is actually crc32c - removed crc32.*
2015-05-25 18:16:30 +04:00
dreamstalker
bc88790bb1 Fixed #24: Remember fields unmarked by encoder and force set it if entity is used as a baseline 2015-05-24 15:29:47 +04:00
dreamstalker
39b803fa3d Delta encoder tests: refactoring
Added prefetches to delta and deltaJit
2015-05-24 01:41:16 +04:00
theAsmodai
4821823407 Merge pull request #22 from theAsmodai/master
Finished work with JIT in DELTA_CheckDelta and DELTA_WriteDelta
2015-05-23 01:04:09 +03:00
asmodai
4071c13e3a Fixed demo tests passing.
Don't generate any JIT code for empty delta memblocks.
Added bits, bytecount and sendfields checks to delta unit tests.
Small optimizations and fixes.
2015-05-23 00:55:26 +03:00
dreamstalker
3226154626 Merge pull request #21 from WPMGPRoSToTeMa/cvarlistfix
cvarlist: Do correct output of string valued cvars
2015-05-22 09:58:55 +04:00
dreamstalker
5bb896dcee Refactoring
DeltaJIT passes tests now
2015-05-22 02:38:25 +03:00
Andrey
7fdb4f73bc Delta JIT improvements. 2015-05-22 02:38:25 +03:00
WPMGPRoSToTeMa
fb3504c9b6 cvarlist: Do correct output of string valued cvars 2015-05-22 02:17:58 +03:00
dreamstalker
5abbc92fda SV_AllocPacketEntities optimization moved under REHLDS_OPT_PEDANTIC
Rehlds Demo Player: write duration in the 'rehlds_demo_stats.log' file when demo ends successfully
6132_hooker.cpp: Minimal setup to play/records demos in hook mode with active Rehlds API
2015-05-21 23:50:18 +04:00
dreamstalker
31bfe3db78 Moved optimized MSG_Write*Bits* under REHLDS_FIXES defined because it uses bf_write_s structure incompatible with the original engine
Fixed wrong tex.coords formula in SurfaceAtPoint()
Added missing calls to SV_CheckWaterTransition() in SV_Physics_Toss()
Flight recorder: Lazy init with HOOK_ENGINE
RehldsDemoPlayer: print heartbeat message every 10Mb of demo
2015-05-21 21:20:40 +04:00
dreamstalker
f2fe5a6c74 SV_WriteEntitiesToClient: don't use intermediate 'fullpack' storage for entities being transmitted
SV_SetupMove: Don't look examine frame->entities after last player
2015-05-21 03:15:03 +04:00
dreamstalker
ed6e5b4a94 Merge pull request #19 from dreamstalker/further_delta_opt
JITted DELTA_CountSendFields
2015-05-20 19:23:15 +04:00
dreamstalker
fea4be8bd1 JITted DELTA_CountSendFields
Use JITted delta in DELTA_CheckDelta
2015-05-20 19:08:33 +04:00
dreamstalker
3f448f441e Implemented faster and safe MSG_Write*Bit* 2015-05-20 17:21:42 +04:00
dreamstalker
7891b6196a Implemented delta JIT
Implemented name->index map for sv.model_precache[]
Fixed CPPUnitLite tests runner
Source code optimizations for optimal usage of precompiled headers on linux
2015-05-19 23:20:11 +04:00
dreamstalker
5d572afc31 Merge branch 'master' of https://github.com/dreamstalker/rehlds 2015-05-17 21:52:30 +04:00
dreamstalker
60b40a687c Don't build 'hooker' libraries by default 2015-05-17 21:52:07 +04:00
s1lentq
ff3eca631e add comment 2015-05-17 21:34:26 +06:00
dreamstalker
01f3fdf787 Fixed: there was a tiny chance to assemble corrupted svc_event message in SV_EmitEvents 2015-05-17 19:15:10 +04:00
dreamstalker
6b1654bbff Flightrec: WIP 2015-05-17 15:30:30 +04:00
dreamstalker
4b1eabc541 Mathlib unit tests
Added REHLDS_OP_PEDANTIC define to all configs in the msvc project
Fixed CrossProduct
2015-05-16 01:44:13 +04:00
Andrey
591ee6b490 More SSE optimizations. 2015-05-15 16:04:23 +03:00
s1lentq
0121d49ff4 Maked reallocation of resource names in precache. 2015-05-12 03:48:39 +06:00
Andrey
904394b6ea Added SSE 4.1 implementation of dot product, added SinCos function, maked fast version of SV_Move for point hull (trace line), small copying optimization in SV_RunCmd. 2015-05-11 20:09:51 +03:00
Andrey
7ae1eebac8 Unrolled tail recursion in RecursiveHullCheck functions 2015-05-11 19:06:14 +03:00
s1lentq
b153ad664a Function Host_UpdateStats on Linux doesn't work correctly.
Fixed the computation of cpuPercent

Made signature checks (bz2, wad3) look more beatiful
2015-05-10 18:53:22 +06:00
dreamstalker
2a0fff4074 #8 Refactoring SDK
Get rid of (u)int[nn]_t types from osconfig.h, use (u)int[nn] from archtypes.h instead
2015-05-09 20:58:58 +04:00
dreamstalker
78b1785e7d Fixed #2: NPE in CPlayingEngExtInterceptor::setCurrentTm() 2015-05-09 13:51:44 +04:00
dreamstalker
29e76e1420 Merge pull request #7 from dreamstalker/#6
Fixed #6: Exposed IGameServerData interface
2015-05-08 23:43:32 +04:00
dreamstalker
459239b236 Merge pull request #5 from WPMGPRoSToTeMa/master
Host say format and localize bug fix
2015-05-08 23:21:07 +04:00
dreamstalker
35efb4fc8f Fixed #6: Exposed IGameServerData interface 2015-05-08 23:07:42 +04:00
WPMGPRoSToTeMa
5e05220444 Host say format and localize bug fix 2015-05-08 22:06:05 +03:00
dreamstalker
d152523ae1 Fixed bad optimizations in Cbuf_* functions 2015-05-08 22:09:08 +04:00
dreamstalker
61a97df241 Merge pull request #4 from WPMGPRoSToTeMa/master
Fixed download bug (creating directory bug)
2015-05-08 17:38:47 +04:00
WPMGPRoSToTeMa
73b9448c0c Fixed download bug (creating directory bug) 2015-05-08 14:51:54 +03:00
Andrey
6a4eaeee95 Fixed some Cmd_ functions, fixed messages sending in ClientPutInServer forward, added unrolled (un)munge2 functions, added one overflow preventing check, fixed fullupdate spam from not active clients, removed entity states reallocation in SV_WriteEntitiesToClient, packing players states separately from entities, added defines. 2015-05-07 21:06:51 +03:00
Andrey
49cbbeafb2 add comments 2015-05-06 01:56:48 +03:00
Andrey
a4909aca6d Some bugfixes and improvements 2015-05-06 01:21:52 +03:00
dreamstalker
ed23c81fdd buildSrc/build.gradle: cleanup
rehlds/build.gradle: don't override cleanup task, just add action to it
2015-05-05 20:18:30 +04:00
dreamstalker
7326bee095 Initial commit 2015-05-04 22:25:41 +04:00