2024 Commits

Author SHA1 Message Date
Kawe Mazidjatari
b030344c10 Add 'CUtlString' to SDK
Add 'CUtlString' from Source SDK.
2023-03-17 00:08:16 +01:00
Kawe Mazidjatari
6cb8e8854b Add 'Verify' macro stub in dbg.h 2023-03-17 00:04:08 +01:00
Kawe Mazidjatari
50d380df29 Define 'MAX_FILEPATH' in platform.h 2023-03-17 00:01:00 +01:00
Kawe Mazidjatari
877c867e08 Add 'tier0/annotations.h' to precompiled header 2023-03-17 00:00:37 +01:00
Kawe Mazidjatari
a0527721b6 Add new strtools
New strtools from Source SDK (will be used in the future).
2023-03-17 00:00:09 +01:00
Kawe Mazidjatari
1cb95fe860 CPakFile::UnloadPak: Light cleanup 2023-03-16 20:24:34 +01:00
Kawe Mazidjatari
b3621ba53a Add cvar 'curl_timeout'
New cvar for setting the curl timeout determined in function 'CURLInitRequest'.
2023-03-15 21:33:16 +01:00
Kawe Mazidjatari
fc5aa2aafe Cleanup console.cpp 2023-03-15 21:32:08 +01:00
Kawe Mazidjatari
cac2c6a917 Make 'sig_getadr' a console command
Changed to hidden ConCommand.
2023-03-15 21:11:20 +01:00
Kawe Mazidjatari
49310426fc Fix VGui crash on S2 builds
Fix crash caused in threading code; attempting to call a callback function. The callback ptr was assigned to uninitialized memory. Manual debugging revealed 'CEngineVGui::RenderStart' (semantic name) was causing the crash. Further research revealed that both 'CEngineVGui_RenderStart' and 'CEngineVGui::RenderEnd' weren't even necessary to draw the VGui debug overlays. These have been removed.
2023-03-15 01:13:51 +01:00
Kawe Mazidjatari
220c65a6e2 Fix RTech::OpenFile for S2
Fix incorrect offset to RTech::OpenFile.
2023-03-15 00:24:40 +01:00
Kawe Mazidjatari
b508096016 Remove unused functions
These will no longer be used.
2023-03-15 00:00:28 +01:00
Kawe Mazidjatari
ed7186e4d3 Add STL string formatters
Add STL string formatters, these formatters allow for formatting the STL strings using C-style format specifiers.
2023-03-13 21:34:09 +01:00
Kawe Mazidjatari
be3690d0b3 Light cleanup for IsValidUTF8 2023-03-13 21:30:16 +01:00
Kawe Mazidjatari
031eee80a1 RCONServer: send/serialize optimizations
Check if we are initialized, have at least one socket, and in case of a console log, if we have at least 1 authorized netconsole before serializing the message and sending the result.
2023-03-13 21:20:20 +01:00
Kawe Mazidjatari
c58d8f646a CSocketCreator: add getter for authorized sockets
Add method for obtaining the amount of authorized sockets.
2023-03-13 20:39:49 +01:00
Kawe Mazidjatari
8399881079 Add updaterate cvars 2023-03-13 20:37:39 +01:00
Kawe Mazidjatari
cae5037324 Initial fix for older game builds
SDK compiles and works for the S1 game now, still needs to be debugged further.
2023-03-01 00:09:38 +01:00
rexx
af547c4a5e
Fix typo in dedi patch file 2023-02-26 21:47:32 +00:00
Kawe Mazidjatari
853aab9c81 Increment sigdb version
Protobuf has been updated, increased major version to enforce full rebuild.
2023-02-26 22:25:18 +01:00
Kawe Mazidjatari
23f88c9542 Remove useless checks as result from recent cleanup
No longer need to catch these programmatically, see commit 353aee5c and a5440616.
2023-02-26 22:23:50 +01:00
Kawe Mazidjatari
a5440616e2 Cleanup for dedicated server as result from recent patch
Removed all checks for 'ui.rpak' and 'ui_mp.rpak'. None of these are useful for dedicated server. 'bUnconnected' has been changed to true (should had been in the first place). Promoted some integers to 64bit types to suppress compiler warnings, output code remained the same.
2023-02-26 22:22:45 +01:00
Kawe Mazidjatari
353aee5c2f Add new dedicated server patches 2023-02-26 22:20:06 +01:00
Kawe Mazidjatari
e640ecc391 New dedicated server (r5apex_ds.exe) patches
Added 2 new patches:
* Patch0: Unnecessary loop called from 'CModelLoader::UnloadModel'. This calls a 'nullsub' CMaterialGlue vtable method.
* Patch1:  CClientState constructor; Removed due to high mem allocation during init (100MiB+). 'CClientState' is useless on dedicated, and all its feature are thereof disabled.
2023-02-26 19:45:11 +01:00
Kawe Mazidjatari
ffa8647e69 Change default console title map name
Changed 'CHostState::ResetLevelName' to set 'no_map' as default map name when called.
2023-02-26 19:44:16 +01:00
Kawe Mazidjatari
e12de45eaa Light RTech code cleanup
Use dedicated function for returning pak status as string instead of std::map. reduced compiled code size by 10kb.
2023-02-26 19:43:02 +01:00
Kawe Mazidjatari
bd9cc31599 Remove useless print
This print is useless; either gets logged in CURL code or in browser panel.
2023-02-26 19:40:36 +01:00
Kawe Mazidjatari
73d71992f3 Fix verbose compiler warning
Just append 'f' to suppress verbose compiler warnings...
2023-02-26 19:39:24 +01:00
Kawe Mazidjatari
5ab71f191e Fix compiler warning for vgui
Promoted to 64bit size types.
2023-02-26 19:38:48 +01:00
Kawe Mazidjatari
b050616c35 Fix compiler warning for tier1
should be a 64bit type as input is 64bit, too.
2023-02-26 19:38:01 +01:00
Kawe Mazidjatari
2637398fff 'InitVPKSystem' cleanup
More readable/portable code. changed dedi from loading 'mp_lobby' to 'mp_common'. The former caused hard to fix problems in pak loading code.
2023-02-26 19:37:12 +01:00
Kawe Mazidjatari
c06f9cfe60 Fix naveditor compiler warning
Use correct format specifier for size types, and return a value in 'sdl_init'.
2023-02-26 19:35:33 +01:00
Kawe Mazidjatari
ef5a9b6348 Fix compiler warning
'_Warning' shouldn't return anything.
2023-02-26 19:34:42 +01:00
Kawe Mazidjatari
a80cf721d8 Fix flipped format specifier
Should be flipped, as nucleus id is before state.
2023-02-26 19:34:07 +01:00
Kawe Mazidjatari
03bc4e71c4 Ban system improvements
* Refactored code; kick & ban now share the same function.
* Kick & ban will now log a confirmation to the console.
* Players in refused list will no longer get banned, this was initially performed to keep load off the master server, but this turned out to be excessive. It also caused the side effect of having players banned even if their bans have been removed from the master server.
2023-02-23 23:55:55 +01:00
Kawe Mazidjatari
4e7626dc4d Update system info formatting
Improve formatting; move logical processor count and virtual memory size to the same line.
2023-02-23 23:50:40 +01:00
Kawe Mazidjatari
ad66236a90 Fix compile error
Var was renamed.
2023-02-23 23:47:58 +01:00
Kawe Mazidjatari
9573cfa8cb Add usage string parameter for concommand
Add usage string for concommand and move usage to there.
2023-02-23 23:47:27 +01:00
Kawe Mazidjatari
227885a69f Merge recastnavigation/recastnavigation@b51925bb87, recastnavigation/recastnavigation@7501007439 and recastnavigation/recastnavigation@405cc095ab
Everything has been adjusted to maintain compatibility with the game engine.
2023-02-21 18:19:03 +01:00
Kawe Mazidjatari
491e28f9a8 Initialize 'NavMeshPruneTool::m_hitPos' 2023-02-21 18:03:24 +01:00
Kawe Mazidjatari
0e14ea6592 Increase common settings max values
Have to be increased due to the scale of the maps.
2023-02-21 18:02:51 +01:00
Kawe Mazidjatari
4e396728c3 Fix typos 2023-02-21 17:56:56 +01:00
Kawe Mazidjatari
3f2216337e Add completion for pak decompress
* Renamed 'rtech_decompress' to 'pak_decompress'.
* Added completion func for 'pak_decompress'.
2023-02-19 13:38:06 +01:00
Kawe Mazidjatari
7649d16e6a Rename 'CAutoCompleteFileList'
Rename 'CAutoCompleteFileList' to 'CBaseAutoCompleteFileList' (official name).
2023-02-19 13:26:38 +01:00
Kawe Mazidjatari
3e3c823c55 Change default VPK build directory 2023-02-19 10:24:15 +01:00
Kawe Mazidjatari
dd95eee491 Rename 'Con_NPrintf' cvars
A more appropriate name and description for 'Con_NPrintf'.
2023-02-19 10:23:35 +01:00
Kawe Mazidjatari
8965d6f101 Error/Warning/Con_NPrintf log hook refactor
* Warning now only logs if error level < 5.
* Warning buffer size has been increased to '10000' (internal buffer size).
* Error is now hooked as well.
* Error buffer size has been increased to '4096' (internal buffer size).
* Con_NPrintf has been refactored; 'cl_showhoststats' has been removed.
* Con_NPrintf buffer size has been increased to '4096' (MAXPRINTMSG).
* CTextOverlay::Con_NPrintf now checks the first byte in the character buffer before rendering anything, and sets the first byte to a terminating null character after rendering. This fixes the bug causing the host_speeds overlay to be still drawn while the cvar 'host_speeds' was disabled.
2023-02-19 09:51:46 +01:00
Kawe Mazidjatari
9e61db4b60 Hook 'Host_Error'
'Host_Error' messages were never getting logged until now.
2023-02-19 09:43:12 +01:00
Kawe Mazidjatari
020986fc3b Remove unnecessary newline
Most error messages have newlines. If they are absent, they get appended automatically.
2023-02-19 00:44:43 +01:00
Kawe Mazidjatari
ad1f83523e CHostState improvements
Mapped out all members, also fixed the initialization of members. Some fields were never getting initialized, and m_iCurrentState was initialized improperly.
2023-02-18 19:18:00 +01:00