Kawe Mazidjatari
8ffe04c736
Bump cache version
...
Force full rebuild of cache map due to changed/added/removed signatures.
2023-04-30 21:49:04 +02:00
Kawe Mazidjatari
39af321b54
Enable LZHAM fail exceptions
2023-04-30 21:48:31 +02:00
Kawe Mazidjatari
d953e5bafa
Enable WIN32 API in LZHAM
...
Enables the WIN32 API in LZHAM with threading; this reduced the VPK build times with 23 minutes.
2023-04-30 21:48:11 +02:00
Kawe Mazidjatari
833c8aa3d8
Fix client dll compile error
...
Code is server only.
2023-04-30 21:44:37 +02:00
Kawe Mazidjatari
de572f675c
Fix launcher bug
...
No Queued Packets Thread has been renamed to Queued Packets Thread, and therefore its toggle should be inverted. Enabled by default.
2023-04-30 21:44:06 +02:00
Kawe Mazidjatari
ef20846314
Remove extraneous include
2023-04-30 21:43:08 +02:00
Kawe Mazidjatari
299b47cbba
Temporarily disable plugin system
2023-04-30 12:15:50 +02:00
Kawe Mazidjatari
6dce43616b
Add 'Bits2Bytes' to SDK
...
Converts bitnum to bytenum.
2023-04-30 12:15:03 +02:00
Kawe Mazidjatari
0f660aee8b
Construct 'fs::path' only once
2023-04-30 12:13:20 +02:00
Kawe Mazidjatari
8eea3546a6
Add reason to RCON client disconnect
2023-04-30 12:03:17 +02:00
Kawe Mazidjatari
cc38fabaa7
Change default value of 'rcon_password'
...
Changed to '[loopback]:37015' (always works, regardless of address type).
2023-04-30 11:57:49 +02:00
Kawe Mazidjatari
848098c71d
Update state machine initialization order
...
* Run autoexec(_dev).cfg before anything else.
* Always initialize RCON (only gets ran if an actual password is set).
* Removed 'Cbuf_Execute()' call from 'CHostState::LoadConfig', let it run in the frame loop instead.
* Removed hardcoded set call for 'net_usesocketsforloopback', will be set in autoexec from now on.
2023-04-30 11:39:20 +02:00
Kawe Mazidjatari
c6748edcc9
Reboot RCON server if 'net_usesocketsforloopback' changed
...
Reboot so it could update accordingly, just like the game's UDP sockets.
2023-04-30 11:34:47 +02:00
Kawe Mazidjatari
f97cf6c249
RCON socket bind improvement
...
Check 'net_usesocketsforloopback' before binding sockets; allows binding to loopback as well.
2023-04-30 11:32:51 +02:00
Kawe Mazidjatari
90cf742fb5
Don't check for ban if client is a loopback address
2023-04-30 11:31:05 +02:00
Kawe Mazidjatari
17c8a5e49c
Add const getter for 'CNetChan::remote_address'
...
Return as const reference.
2023-04-30 11:11:33 +02:00
Kawe Mazidjatari
d978d0c745
Reduce address buffer size to 128
...
128 is the max size that the entire address string could be (with it being ipv6 and bracketed with ports).
2023-04-30 02:10:57 +02:00
Kawe Mazidjatari
4554a92e27
Prevent connecting to null address string
...
Add check to prevent connect code getting fired if address buffer is empty.
2023-04-30 02:08:40 +02:00
Kawe Mazidjatari
f319fc0846
Use server global variables for client loops
...
Use server global variables for determining the num clients to loop over. This is cheaper and better than always looping over MAX_PLAYERS.
2023-04-30 01:50:38 +02:00
Kawe Mazidjatari
6b23570beb
Ban system bug fix and improvements
...
* Format the ip as '[ip]:port' in all logging calls for consistency.
* Fixed a bug causing the IP to be send up as full instead of base only to master server (should always be base only).
* Temporarily uncommented the plugin callback logic.
2023-04-30 01:29:54 +02:00
Kawe Mazidjatari
98f09b25de
CClient: Member type improvements
...
* Made 'm_nUserID' signed.
2023-04-30 01:26:37 +02:00
Kawe Mazidjatari
4ec8e67d9b
CNetChan: Getters improvements
...
* Allow for requesting address base only.
* Added new getter 'GetPort'.
2023-04-30 01:24:45 +02:00
Kawe Mazidjatari
78a86fed6a
Log address of 'SV_BroadcastVoiceData'
2023-04-29 21:07:45 +02:00
Kawe Mazidjatari
55aa254e6b
Merge branch 'bulk_check' into indev
2023-04-29 21:01:59 +02:00
Kawe Mazidjatari
d52074238f
Mark pylon refresh cvars as devonly
...
Marked 'sv_pylonRefreshRate' and 'sv_banlistRefreshRate' as development only.
2023-04-29 20:44:51 +02:00
Kawe Mazidjatari
7ecad819be
Set dedicated nucleus id to '9990000'
2023-04-29 20:36:57 +02:00
Kawe Mazidjatari
a5bc2f77cb
Fix broken 'SV_IsClientBanned' implementation
...
SV_IsClientBanned is now checked after the creating of CClient, and thus 'CServer::AuthClient' has been inlined into 'CServer::ConnectClient'. Since we have to request the master server to check whether or not this particular client is globally banned, we have to detach it into a separate thread, and process the results back into the main thread once finished. This takes too much time, so we connect the client anyways and if the master server marked it as 'banned', we disconnect it right away.
2023-04-29 20:36:29 +02:00
Kawe Mazidjatari
2748c61fe2
Put json value getters in try catch
...
Put 'nlohmann::json::value' operations in try catch, as these could raise an exception.
2023-04-29 14:58:46 +02:00
Kawe Mazidjatari
145bc3797f
Only check token field if the server is hidden
2023-04-29 13:15:18 +02:00
Kawe Mazidjatari
d46061a55a
Don't log GPU device on dedicated
2023-04-29 12:16:09 +02:00
Kawe Mazidjatari
3ea49766c6
Light banning code improvements
...
* Removed extraneous std::string constructors (everything using the bansystem used raw char pointers).
* Improved logging and function comments.
2023-04-29 12:15:51 +02:00
rexx
dca27475ec
(re)implement sv_alltalk
...
Rebuilds SV_BroadcastVoiceData with an additional check of "sv_alltalk" cvar to disable team checking, allowing for servers to enable global voice chat
2023-04-29 11:11:10 +01:00
Kawe Mazidjatari
ab9d36e0d8
Send client's persona name to the master server
...
Will be used on the master server for additional checking.
2023-04-29 00:05:47 +02:00
Kawe Mazidjatari
7739e56b0d
Adjust default value of cvar 'sv_banlistRefreshRate'
...
Set to 30 sec.
2023-04-28 23:48:30 +02:00
Kawe Mazidjatari
48bc69b028
Initial implementation of bulk ban checking
...
Initial implementation of the bulk ban check system. This implementation takes a snapshot of the currently connected clients, sends it up to the master server, and the master server returns anything within this list that is marked 'banned'. The server would then kick the player from the server. This commit also removes the global banned list cache, as the bulk checking system offers a lot more freedom regarding banning specific players and have it sync across all available servers.
2023-04-28 23:47:58 +02:00
rexx
6b1d02dfea
Merge pull request #94 from O-Robotic/indev
...
Fix plugin directory creation
2023-04-27 21:02:44 +01:00
O-Robotic
a54e1df06a
Fix plugin directory creation
2023-04-27 20:34:05 +01:00
Kawe Mazidjatari
fcc4b410f3
Improve formatting in pylon code
2023-04-26 23:31:16 +02:00
Kawe Mazidjatari
a1c97e1b39
Fix assignment bug
...
Sigscan results returned to the wrong var.
2023-04-26 23:31:03 +02:00
Kawe Mazidjatari
9872b4042a
Improve pylon error logging
...
Improve error formatting.
2023-04-25 22:57:06 +02:00
Kawe Mazidjatari
73fe590f99
Fix small bug
...
Fixed bug caused by const char* to const string& conversion, resulting in the request message not always getting sent properly.
2023-04-25 22:51:06 +02:00
Kawe Mazidjatari
0399d753f4
Properly toggle cvars in sdk launcher
...
Toggle them on or off instead of just on. Else disabling the toggle wouldn't disable then in the runtime as the default value of these cvars is '1'.
2023-04-25 00:47:44 +02:00
Kawe Mazidjatari
d9fa611418
Add new callbacks to server functions
...
A few new callback hooks which are perhaps useful in the future.
2023-04-25 00:46:45 +02:00
Kawe Mazidjatari
000f7c7f82
CPylon parsing/logging code deduplication
...
Deduplicated parsing and logging code. Results are a lot more consistent and comprehensive.
2023-04-25 00:45:39 +02:00
Kawe Mazidjatari
f0a561552b
CPylon server query code deduplication
...
Created another dedicated wrapper for handling API requests; significantly reduced duplicate code.
2023-04-24 01:55:37 +02:00
Kawe Mazidjatari
aff4b6125e
CPylon error handling code deduplication
...
Deduplicate code.
2023-04-24 00:32:27 +02:00
rexx
3eb660c9f7
enable pluginsystem
2023-04-23 22:28:16 +01:00
Kawe Mazidjatari
59b685b7ee
Fix unreachable code warning
...
This code isn't reachable, removed.
2023-04-23 20:35:08 +02:00
Kawe Mazidjatari
8898b44dee
Fix memory leak in ImGui panels
...
Properly release texture buffers.
2023-04-23 20:34:36 +02:00
Kawe Mazidjatari
615de70b1f
Fix shutdown crash
...
Fixed crash due to destructor of CSocketCreator being called during shutdown. If the socket fails to close, an error is logged. But at this point, all sockets have been closed already and the logger system has already been destroyed. Allocated as dynamic memory to avoid destructor being called at this stage.
2023-04-23 18:01:30 +02:00