2241 Commits

Author SHA1 Message Date
Kawe Mazidjatari
e886208d64 Remove extraneous destructor
This caused the 'CUtlBinaryBlock' destructor to be called twice (freeing memory on the same pointer twice). Destructor should only be called explicitly in 'CUtlBinaryBlock' itself to purge vector memory due to late binding of game's memalloc singleton.
2023-03-18 15:40:04 +01:00
Kawe Mazidjatari
a0fe2a0b1a More dynamic project include paths
Lookup directly from project directory instead of solution directory.
2023-03-18 14:28:25 +01:00
Kawe Mazidjatari
62be540702 Properly shutdown SpdLog
Shutdown SpdLog on SDK shutdown or crash, this makes sure the buffers gets flushed.
2023-03-18 14:10:29 +01:00
Kawe Mazidjatari
fd7e981e8c Upgrade SpdLog library to 1.11.0
* Upgrade SpdLog library to 1.11.0.
* Compile SpdLog as static library.
2023-03-18 13:34:43 +01:00
Kawe Mazidjatari
f7e7858dae HexDump: optimizations
Optimize hexdump utility by packing as many trace calls as possible and by changing single character pointers to immediate values. Also adjusted function to support newer versions of the spdlog library.
2023-03-18 13:31:56 +01:00
Kawe Mazidjatari
7c8fc3a67d CPylon: explicitly cast status in string format to int
Newer versions of the 'fmt::format' library require these to be casted as such.
2023-03-18 13:29:40 +01:00
Kawe Mazidjatari
9dfb79ff4a Set floating point model to 'Fast' 2023-03-18 10:01:14 +01:00
Kawe Mazidjatari
52c14c5590 Add warning message during pch compile
Add warning message when binary is compiled in debug/profile mode; these should never be released.
2023-03-18 09:08:29 +01:00
Kawe Mazidjatari
da0153a3bd Fix incremental linking for Profile builds
Much faster compile times.
2023-03-18 02:37:55 +01:00
Kawe Mazidjatari
bbaa35cbaf Add 'Profile' build configuration
Add 'Profile' build configuration (similar configuration to many game engines).
This should be the main configuration for development. In the future, this will include incremental linking and asserts.
2023-03-18 02:04:18 +01:00
Kawe Mazidjatari
737aad34f6 CUtlString: promote everything to 64 bits
Fix all compiler warnings from CUtlString.
2023-03-18 01:59:32 +01:00
Kawe Mazidjatari
1f735f1f6e Improve comments regarding design issue 2023-03-18 00:55:03 +01:00
Kawe Mazidjatari
4e12402c76 Fix bug causing completion list to never update
Use actual 'partial' command input buffer instead of the explicit command name.
2023-03-17 19:24:54 +01:00
Kawe Mazidjatari
fd1a5d76cf Utilize the internal autocomplete suggest system
Utilize 'ConCommand::AutoCompleteSuggest' instead of our temporary inline console solution. This fixes all crashes caused by calling command autocomplete callbacks that uses the newer system (e.g. 'ent_fire').
2023-03-17 00:17:35 +01:00
Kawe Mazidjatari
98a01e0ae2 Add pattern for 'ConCommand::AutoCompleteSuggest'
Added pattern for 'ConCommand::AutoCompleteSuggest' (will be used for the console autocomplete instead as it supports the old and new callback system).
2023-03-17 00:15:43 +01:00
Kawe Mazidjatari
3db039b7d3 Compile utlstring 2023-03-17 00:14:28 +01:00
Kawe Mazidjatari
650b89fa25 CUtlString modifications
* Promote all size types to int64 to accomodate in-memory structure size of the game itself.
* Explicitly call destructors for members. Due to the way we hook the game and utilize the global memory allocation singleton, the destructor of the objects aren't called. CUtlVector does call the destructor of CUtlString. Explicitly defined a destructor that also destructs its underlying memory to avoid any memory leaks.
2023-03-17 00:12:37 +01:00
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