Kawe Mazidjatari
2d6a1c79ac
Comment 'sv_rcon_banpenalty' out for now
...
Nice to implement at some point, but its not a priority. The current system just disables itself if its under attack (requires action from server owner to re-enable).
v2.2_rc10
2023-08-05 01:14:03 +02:00
Kawe Mazidjatari
759d8d6d2e
Flip 'sv_rcon_sendlogs' if netcon is not input only
2023-08-05 01:11:32 +02:00
Kawe Mazidjatari
5e4ea7d25a
Minor convar string stuff
2023-08-05 01:09:53 +02:00
Kawe Mazidjatari
ef8173636d
Merge pull request #107 from Mauler125/rcon_improvements
...
Rcon improvements
2023-08-04 17:50:30 +02:00
Kawe Mazidjatari
0a25f5e0fe
Adjust 'CNetConBase' vftable order
...
Order has been adjusted to match the order of execution.
2023-08-04 17:45:30 +02:00
Kawe Mazidjatari
d7f92cbefd
Adjust names
...
Adjust since previously they were pointers but now references.
2023-08-04 17:41:55 +02:00
Kawe Mazidjatari
bb5e92a563
Fix redundant socket closing bug
...
Cvar 'sv_rcon_maxsockets' is always higher than the actual allowed socket count. Should only check if its count is higher than the cvar.
2023-08-04 17:34:30 +02:00
Kawe Mazidjatari
f2783ae93f
Make use of 'CConnectedNetConsoleData::m_bInputOnly' properly
...
This member was in the class when RCON was added to the r5sdk, but it was never utilized. Now, each netconsole can toggle whether they are input only or not, the server only sends logs to netconsoles that are not input only. This patch also contains a fix in which the listen server sends logs to the client of its own process, causing an infinite recursive call to DevMsg.
2023-08-04 17:28:01 +02:00
Kawe Mazidjatari
3a19ac0c24
Add a note
2023-08-04 15:39:40 +02:00
Kawe Mazidjatari
461fb48575
More reliable way of enablin ansi colors on netconsole
...
Compare arguments individually instead of performing a scan over the whole command line string.
2023-08-04 15:36:40 +02:00
Kawe Mazidjatari
e7420a26af
Properly tokenize netconsole input
...
Use the command tokenizer class.
2023-08-04 15:35:20 +02:00
Kawe Mazidjatari
568f88040e
Merge pull request #106 from Mauler125/convar_restructure
...
Restructure concommandbase classes
2023-08-04 14:33:12 +02:00
Kawe Mazidjatari
26c10dfd11
Restructure concommandbase classes
...
Move all classes deriving from ConCommandBase to a single file, and split out CCommand, CCvar, CCvarUtilities etc to their own files. This makes it possible to use CCommand and stuff in external tools without linker errors/warnings.
2023-08-04 14:32:06 +02:00
Kawe Mazidjatari
dbe75c0709
Make private
...
No reason to be public.
2023-08-04 12:44:46 +02:00
Kawe Mazidjatari
ce4b7b84a8
Promote RCON command execution authority
...
Allow RCON to execute any commands and set any cvar, regardless of their flags.
2023-08-04 11:53:46 +02:00
Kawe Mazidjatari
f6d2628937
Cleanup proto structure
...
Removed unused/extraneous enumerants.
2023-08-04 11:20:24 +02:00
Kawe Mazidjatari
10ee88ec10
Fix RCON disconnect bug
...
RCON occasionally did NOT disconnect, but only if the socket has been closed improperly. If the server/client crashes for example, the connection remained open in RCON; pendingLen on the initial peek recv < 0 while socket isn't blocking means socket has been closed unexpectedly.
2023-08-04 10:57:39 +02:00
Kawe Mazidjatari
309e297ae4
Add 'Cmd_Dispatch' to SDK
...
Signature is compatible with S1.
2023-08-04 10:49:39 +02:00
Kawe Mazidjatari
ddfe027677
Pass by reference
...
CConnectedNetConsoleData was allocated and deallocated manually, but std::vector is able to do it on its own. The vector type has been swapped out with CUtlVector as this removed the need of having to cast size types to a 32bit int to make it more compatible with the other sdk/engine types without throwing compiler warnings.
2023-08-04 10:48:22 +02:00
Kawe Mazidjatari
6eb3388aee
Default to nullptr
...
If null, it uses the statically created breakset.
2023-08-04 10:40:50 +02:00
Kawe Mazidjatari
4bef9fc6cf
Light script cleanup
...
- Rename 'checksum' to 'digest'.
- Sort the data in the correct order to reduce load on the client (client sorts it to the same order).
v2.2_rc9
2023-08-03 17:25:11 +02:00
Kawe Mazidjatari
b967a11ffd
Make switching source directories easier
...
Engine src dir can now be switched with 1 var in CMake.
2023-08-03 16:56:27 +02:00
Kawe Mazidjatari
010c0d0c20
Improve manifest script
...
- Add configuration support for each depot
- Add configurable vendor for each depot
- Add size field for each depot (used for installer's progress callback)
- Compute depot package checksum on the spot
- Take manifest version input as string instead (used as tags)
2023-08-03 16:43:22 +02:00
rexx
b8744a9ab8
create sv_language cvar
...
currently unused, will be implemented in #103
2023-08-01 22:45:58 +01:00
Kawe Mazidjatari
195b2a11d7
Variable rename
...
Its a suffix.
2023-08-01 14:48:08 +02:00
Kawe Mazidjatari
a4da4afd19
FormatBytes function bug fixes
...
- Use snprintf instead to avoid stack buffer overflow.
- Make sure nBytes has a value before using it to create an index for the suffix.
2023-08-01 14:45:55 +02:00
Kawe Mazidjatari
8e8b2ace38
Add cURL parameter to enable 'CURLOPT_FOLLOWLOCATION'
...
Option to allow following redirects.
2023-08-01 02:20:53 +02:00
Kawe Mazidjatari
c059ec65ac
Add 'ForceForegroundWindow' windows utility
...
Forces the window handle to be on top.
2023-07-31 23:43:00 +02:00
Kawe Mazidjatari
5c05f91891
Custom class name for SDK Launcher
...
Something that could be searched up without clashes and pulled up front.
2023-07-31 23:26:34 +02:00
Kawe Mazidjatari
fb35782b9e
Fix cppkore progress bar 'roundings' showing as inverted when progress is null
...
Just don't render the fill if progress is still null.
2023-07-31 19:07:08 +02:00
Kawe Mazidjatari
9a23ab68ec
Rename output file
2023-07-31 11:43:42 +02:00
Kawe Mazidjatari
eb14469178
Create utility function for formatting bytes
...
Byte count to prettified representation as string.
2023-07-31 11:43:25 +02:00
Kawe Mazidjatari
de26e5735f
Add depot names to manifest json
2023-07-30 13:35:55 +02:00
Kawe Mazidjatari
631535a4c9
Add json fields for manifest version and asset list
...
Make it so it could actually be checked and parsed properly.
v2.2_rc8
2023-07-30 01:25:13 +02:00
Kawe Mazidjatari
da3142812b
Create script for creating manifest files
2023-07-29 23:34:19 +02:00
Kawe Mazidjatari
633e6a25b3
Add strcat define
2023-07-29 17:04:27 +02:00
Kawe Mazidjatari
e673b1e180
Suppress more thirdparty warnings
...
Only applied on thirdparty code.
2023-07-28 16:44:52 +02:00
Kawe Mazidjatari
9e9d3342b3
CURL tools improvement
...
- Added wrapper for downloading files.
- Moved many function arguments to dedicated parameters structure.
2023-07-28 14:47:20 +02:00
Kawe Mazidjatari
b7b42786ab
Add STL version of Appendslash
2023-07-28 14:45:04 +02:00
Kawe Mazidjatari
e45c0fde7d
Add CURLProgress structure
...
For a download progress bar.
2023-07-26 20:37:58 +02:00
Kawe Mazidjatari
7ea51dda8a
Set an user agent
...
Some end points require it.
2023-07-26 20:34:02 +02:00
Kawe Mazidjatari
ac0fdf2953
Fix unused parameter
...
Should be used as the write function pointer, this was overseen in commit '31d92b43'.
2023-07-26 20:28:55 +02:00
Kawe Mazidjatari
31d92b439f
Move cvars from curlutils.cpp
...
Move it elsewhere so this code can be shared among tools that don't feature the ConVar class.
2023-07-26 16:52:49 +02:00
Kawe Mazidjatari
85f988dcd7
Launch center screen
...
Make the SDK launcher appear on the center of the client's screen.
2023-07-25 01:05:05 +02:00
Kawe Mazidjatari
6df3f39125
Should be an int
...
Code moves a 4 byte value into this field.
2023-07-25 00:19:48 +02:00
Kawe Mazidjatari
2a4ae390c7
Added more detailed comments
2023-07-24 12:12:59 +02:00
Kawe Mazidjatari
2b05edd374
Fix using incorrect member as bounds for looping exporteds
...
Fixes a crasher on certain modules as it could read oob; must use 'NumberOfNames' to iterate over export names.
2023-07-23 20:02:12 +02:00
Kawe Mazidjatari
af81954b7f
Force 'Cbuf_GetCurrentPlayer()' inline
...
FORCEINLINE will compile this down to an immediate.
2023-07-22 21:15:01 +02:00
Kawe Mazidjatari
21f64bc572
Adjust logging contexts
...
Adjust the context properly, some were wrong (e.g. 'ENGINE' in 'COMMON' code).
2023-07-22 21:14:04 +02:00
Kawe Mazidjatari
36376e3b2f
Rename 'con_suggestion_*' cvars to 'con_suggest_*'
...
Matches the suggest class name more.
2023-07-22 15:01:00 +02:00