1979 Commits

Author SHA1 Message Date
Kawe Mazidjatari
8ed5a3a695 Connect RCON to localhost by machine name
Connect to local host using machine name when ip is set to 'localhost'.
2023-01-29 17:12:33 +01:00
Kawe Mazidjatari
5f56c23af2 Compile CRConServer for gamesdk
RCON can now be used on the host game as well (previously dedicated exclusive).
2023-01-29 16:07:02 +01:00
Kawe Mazidjatari
b98eee0268 RCON system refactor and improvements
* Use game's CNetAdr RCON and socket creator.
* Add support for constructing host from [ip]:port format in the netconsole client.
* Pass 'netadr_t' parameter by reference to 'CSocketCreator::OnSocketAccepted'.
2023-01-29 15:24:24 +01:00
Kawe Mazidjatari
6df498e5c8 Rename 'v_netadr_t' to 'netadr_t'
Name was used for compatibility reasons. No longer necessary.
2023-01-29 15:12:27 +01:00
Kawe Mazidjatari
0e033cb755 Reimplementation of CNetAdr
This will replace 'CNetAdr2' and 'v_netadr_t'. The implementation is directly compatible with the structures in engine.
2023-01-29 13:59:34 +01:00
Kawe Mazidjatari
682f29e69a Console UX improvements 2023-01-28 14:21:18 +01:00
Kawe Mazidjatari
96e482f814 Server browser UX improvements 2023-01-28 14:20:57 +01:00
Kawe Mazidjatari
29ca97f6b0 Light squirrel code cleanup
* Renamed 'SetEncKeyAndConnect' to 'ConnectToListedServer'.
* Renamed 'JoinPrivateServerFromMenu' to 'ConnectToHiddenServer'.
* Renamed 'GetPrivateServerMessage' to 'GetHiddenServerConnectStatus'.
* Cache game server ref in 'ConnectToListedServer'.
2023-01-28 13:28:27 +01:00
Kawe Mazidjatari
ab75233fa1 Cleanup 'sqapi.cpp' 2023-01-28 13:05:43 +01:00
Kawe Mazidjatari
1b3223d5cb Sync 'sv_globalBanlist' with global banned list toggle 2023-01-28 13:05:02 +01:00
Kawe Mazidjatari
8b227c90d8 Master server query code improvements
* Improved error messages.
* Fixed bug where status was not checked to determine what error message to return.
2023-01-28 01:57:42 +01:00
Amos
b965e04dd4 Update signature for 'g_pNetKey' 2023-01-27 10:36:38 +01:00
Kawe Mazidjatari
1cf310f1a0 Upgrade Dear ImGui to v1.89.2 2023-01-27 01:48:49 +01:00
Kawe Mazidjatari
e0fa00abf5 Update Microsoft Detours to latest 2023-01-27 00:51:22 +01:00
Kawe Mazidjatari
61684ddf87 Create cvar for global banned list queries
This was planned to be changed a long time ago. This change allows dedicated server users to disable the logic as well.
2023-01-26 21:20:11 +01:00
Kawe Mazidjatari
3cd7f4331d Add debug logging for 'CPylon::CheckForBan' 2023-01-26 21:11:32 +01:00
Kawe Mazidjatari
500a7c1925 Finish libcurl implementation
Master server queries now use SSL.
2023-01-26 20:06:48 +01:00
Kawe Mazidjatari
14487abfaf Belongs to the previous commit 2023-01-26 20:01:21 +01:00
Kawe Mazidjatari
938df1dd89 Check visible panels in wrapper instead of imgui itself
The SDK's DX interface is much easier to expose to Dear ImGui than game/engine implementations.
2023-01-26 20:00:52 +01:00
Kawe Mazidjatari
684b1e561a Initialize libcurl 2023-01-26 19:58:21 +01:00
Kawe Mazidjatari
6c21fc5b7a Create libcurl wrappers
Created wrappers which are currently focused on master server queries. This avoids boiler plating and manual deleting.
2023-01-26 19:54:38 +01:00
Kawe Mazidjatari
b8bbe6e6d0 Add libcurl to project 2023-01-26 13:09:18 +01:00
Kawe Mazidjatari
fb0a298593 Add protoc batch
Automate compilation of .proto files.
2023-01-26 03:15:54 +01:00
Kawe Mazidjatari
188cbf8359 Update protobuf to latest
Updated to v21.12.
2023-01-26 03:15:10 +01:00
Kawe Mazidjatari
c49209bd1e Log truncated files if they are listed in the VPK build manifest 2023-01-26 03:00:53 +01:00
Kawe Mazidjatari
59a917a2bc Light cleanup 2023-01-26 03:00:23 +01:00
Kawe Mazidjatari
f47fb63e5f Fix dedicated server compile errors
Huge cleanup for dedicated. All patches in 'opcodes.cpp' are now directly applied to the executable, and kept as reference in the source file. The patch logic is commented. Any other patches for the dedicated server executable should be documented in the patch file found in 'r5dev/resource/patch'.
2023-01-26 02:59:50 +01:00
Kawe Mazidjatari
1e24e34519 Remove unnecessary memset 2023-01-25 22:15:27 +01:00
Kawe Mazidjatari
306211a1b4 Fix naveditor log when invoked using commandline
Log must be reset pre-build, and dump post-build in order for logging to work.
2023-01-25 22:14:46 +01:00
Kawe Mazidjatari
532ada48e0 Only run duplicate checks in debug
Duplicate checks are only performed in debug builds, if a duplicate is encountered, a bug in code has been found and has to be solved (do not call REGISTER from headers for example).
2023-01-25 19:22:05 +01:00
Kawe Mazidjatari
9ea06aa65d Use 'Assert' instead 2023-01-25 19:21:06 +01:00
Amos
d76ed1098a Improve VFTable address logging
More standardized VFTable address logging.
2023-01-25 11:19:53 +01:00
Kawe Mazidjatari
93efd3792b Cleanup EbisuSDK
Renamed 'g_OriginNucleusToken' to 'g_NucleusToken', and reordered globals.
2023-01-25 02:30:54 +01:00
Kawe Mazidjatari
a618990937 Detour code refactor
This change was planned for a long time. This moves all REGISTER calls to a single translation unit, this is required as we currently added a very dirty workaround for not registering duplicates by checking if VFTable pointer was already present in the vector... Registering from single translation unit prevents duplicate instances that gets created if header is included by more cpp files.
Reworking this reduced 100kb+ of compiled code. This commit also reworked the way functions/variables/constant gets logged with their addresses; the new code formats them on the fly, and allows for resize at any time. Formatting is no longer required by programmer.

TODO: currently there are some compile errors for dedicated and client dll's. These will be resolved very soon as they need to be properly worked out still (server & client only stuff needs to be properly split). Use the 'main' (stable) branch for the time being if you need to compile these dll's.
2023-01-25 02:26:52 +01:00
Kawe Mazidjatari
8d6358512b Debug overlay cleanup 2023-01-24 18:43:00 +01:00
Kawe Mazidjatari
e281aea990 Fix client.dll/dedicated.dll compile errors 2023-01-24 18:39:12 +01:00
Kawe Mazidjatari
19447f1122 Improve debug draw depth test toggle logic
* Add box depth test cvar from engine for 'CBaseAnimating::DrawServerHitboxes'.
* Use noDepthTest field from OverlayBox_t instead of the cvar.
2023-01-24 12:05:09 +01:00
Kawe Mazidjatari
5a9824d30c Remove useless assert
Invalid assert as rebuilding cache map happens prior to initialization.
2023-01-24 00:54:13 +01:00
Kawe Mazidjatari
888989d2b3 Fully working implementation of 'sv_showhitboxes'
Setting 'sv_showhitboxes' to 0 will enable it on everything deriving from CBaseAnimating, and having a valid studiohdr/hitbox. -1 means off, value > 0 will select entity by index (value of 'sv_showhitbox').
2023-01-24 00:53:45 +01:00
Kawe Mazidjatari
6e5ad71855 Remove hitbox drawing test code
Was only hooked up to lag compensation code for testing.
2023-01-24 00:39:41 +01:00
Kawe Mazidjatari
2c7636ec0d Initial 'EntityByIndex' implementation 2023-01-23 23:40:40 +01:00
Kawe Mazidjatari
66ef9fb6a0 Fix crash in hitbox drawing code and light restructure
* Fix null pointer dereference crash in server hitbox drawing code; implemented a proper getter for CStudioHdr.
* Moved 'baseentity.h/cpp' to 'game/server/' instead.
* Overall light cleanup.
2023-01-23 23:21:29 +01:00
Kawe Mazidjatari
d97678e059 Fix potential compiler error
Potential problem of "type 'x' already defined".
2023-01-23 23:17:51 +01:00
Kawe Mazidjatari
eede2b65f3 Force signature dictionary full rebuild
Launch times become slower in debug builds due to the many added signatures; force full rebuild of dictionary.
2023-01-23 02:24:41 +01:00
Kawe Mazidjatari
094a6e4fa5 Initial hitbox drawing implementation
Currently only hooked up to lag compensation code. Will be hooked up to 'sv_showhitboxes' in the future (drawing hitboxes of all animating).
2023-01-23 02:22:51 +01:00
Kawe Mazidjatari
502a1d2324 Switch box overlay transform type to 'matrix3x4_t'
Actual type turned out to be 'matrix3x4_t' after further reverse engineering.
2023-01-23 02:20:21 +01:00
Kawe Mazidjatari
6f02e3ae13 Make CBaseEntity members protected 2023-01-23 02:08:12 +01:00
Kawe Mazidjatari
932f73530f Studio hdr improvements
* More mapped-out version of 'CStudioHdr'.
* Added hitbox getters for 'mstudiobbox_t'.
2023-01-23 02:07:42 +01:00
Kawe Mazidjatari
07ef57536d Add modelinfo vftable pointers 2023-01-22 16:48:16 +01:00
Kawe Mazidjatari
79961687bd Add base filesystem interface string identifier 2023-01-22 15:11:55 +01:00