1628 Commits

Author SHA1 Message Date
Kawe Mazidjatari
3cbd98b900 Expose kick/ban/unban to UI SQVM 2022-09-16 01:40:17 +02:00
Kawe Mazidjatari
a68f55dac0 Move unban logic to CBanSystem and expose to Squirrel
New unban function in SERVER context 'UnbanPlayer(string criteria)'.
2022-09-16 00:51:35 +02:00
Kawe Mazidjatari
9c9843a0fc Centralize kick/ban wrappers to CBanSystem and add new server functions for kicking/banning players 2022-09-15 23:13:37 +02:00
Kawe Mazidjatari
d9ddb575e2 Add ConVar to auto-reload the server after x seconds.
This should allow users to host dedicated servers without looking back, as you should reload/restart a server every 3 hours (a full process restart is the most recommended option, but a 'soft' reload works like a charm most of the time).
2022-09-15 01:37:45 +02:00
Kawe Mazidjatari
9dd49af1dc Reset idle name on shutdown 2022-09-14 21:59:32 +02:00
Kawe Mazidjatari
d32a4f2df0 Fix bug where restart commands don't work
We reset the idle name in HS_GAME_SHUTDOWN, but the restart command callback uses the name field to 'map' into the same map (restarting), which causes issues when we reset it to 'server_idle'.
Changed behavior to only reset name (non recursive) if we are running but do not have an active game.
2022-09-14 21:51:15 +02:00
Amos
4d2c5513f2 Fix misspelled WSA error 2022-09-14 13:24:26 +02:00
Kawe Mazidjatari
84b4772006 Refresh server list when the browser is activated v2.1_rc7 2022-09-14 02:39:55 +02:00
Kawe Mazidjatari
242320e735 Also check CPU for SSE 3, SSSE 3 and POPCNT.
Check for SSE 3, SSSE 3 and POPCNT in CheckCPU(), and SSE, SSE2 in MathLib_Init().
This should fix all crash cases caused by launching the game on unsupported CPU's.
2022-09-14 02:23:06 +02:00
Kawe Mazidjatari
e0504d2828 Perform CPU check as early as possible
Check CPU as early as possible (first routine during init). This is required because SpdLog compiles down to SSE instructions.
2022-09-14 01:35:05 +02:00
Kawe Mazidjatari
729475c74c Light cleanup
Use NO_ERROR instead of NULL for error code parameter passed to Error(..).
2022-09-14 01:14:51 +02:00
Kawe Mazidjatari
3d6d6644bd Logging bug fix and error handling improvements
* Replaced the boolean 'fatal' parameter with a error code parameter, anything non-null will prompt a message (fatal) and terminate the process with given error code.
* Fixed bug where the global ostreamsink for spdlog did NOT get cleared in 'SQVM_PrintFunc' when cvar 'sq_showvmoutput' was < 3. Moved to global scope.
* Added error message for when detouring the process has failed, with the error code.
* Only call 'Plat_GetProcessUpTime()' once per log, (improves performance and fixes bug where the error message box would show a different time stamp than what is logged into the console or file).
* All TIER0 loggers only log to notify and console when the SDK engine has fully initialized and detoured all functions.
2022-09-14 00:39:38 +02:00
Kawe Mazidjatari
d65bee5ffe
Merge pull request #77 from kralrindo/master
correct aim assist value for console, shadowfall dev playlist
2022-09-13 18:22:09 +02:00
Kawe Mazidjatari
2a2e27fbb7
Merge pull request #75 from KyeOnDiscord/patch-1
Cleaned up uMsg switch statement
2022-09-13 18:21:53 +02:00
kralrindo
7b181ca758 correct aim assist value for console, shadowfall dev playlist 2022-09-13 19:15:47 +03:00
Kawe Mazidjatari
a20eacdcec
Merge pull request #76 from D3-3109/master
Change the custom_tdm default playlist settings
2022-09-13 18:12:27 +02:00
D3-3109
309ae2a656
Change the custom_tdm default playlist settings
Change the custom_tdm default playlist settings and remove a duplicate configuration.
i mean maximum 3 teams and 3 players seems to be too less.
2022-09-13 12:52:49 +08:00
D3-3109
03f32fabb1
Change the custom_tdm default playlist settings
Change the custom_tdm default playlist settings and remove a duplicate configuration
2022-09-13 12:46:23 +08:00
Kye
a976d2868e
Cleaned up uMsg switch statement 2022-09-13 12:29:36 +10:00
Kawe Mazidjatari
88fcec1e69 Hook 'ConVar_PrintDescription' v2.1_rc6 2022-09-12 23:59:32 +02:00
Kawe Mazidjatari
577a8760cd CConsole: add more color coded flags
* Added more color coded flags to the console autocomplete window.
* Removed 'hidden' as FCVAR_HIDDEN is now enforced on the autocomplete window.
* force real-time CommandBase flags (previously compile-time).
v2.1_rc5
2022-09-12 01:49:51 +02:00
Kawe Mazidjatari
23a95f84a8 ConVar names cleanup 2022-09-12 00:44:03 +02:00
Kawe Mazidjatari
1b754fd0b9 'con_notify' improvements
* Fade notify text by a fixed amount regardless of the frame times.
* Implement Valve's 'lerping' animation for text when entries fade away and expire.
* Don't run/push/remove anything if 'con_drawnotify' is disabled.
2022-09-11 23:48:11 +02:00
Kawe Mazidjatari
83b3feb9db Print net debug as SERVER for dedicated 2022-09-11 23:45:06 +02:00
Kawe Mazidjatari
4fb39f13dd Increase 'Playlists file' text rect 2022-09-11 16:37:14 +02:00
Kawe Mazidjatari
7a7396580d Remove extraneous 'sv_cheats' value assignment from autoexec.cfg 2022-09-11 01:30:30 +02:00
Kawe Mazidjatari
030e74f8d8 Update playlists watermark string 2022-09-11 01:28:48 +02:00
Kawe Mazidjatari
5bcdc6863b Update playlists_r5_patch.txt v2.1_rc4 2022-09-11 00:59:55 +02:00
Kawe Mazidjatari
c936683cea Update sqinit.cpp 2022-09-11 00:39:39 +02:00
Kawe Mazidjatari
5f56e5abd3 Update SDK interface version to 003
Version gate next release
2022-09-11 00:20:42 +02:00
Kawe Mazidjatari
fb7ab18a0b Minor spelling fixes 2022-09-11 00:19:31 +02:00
Kawe Mazidjatari
705b81a9e3 Set VPK compression level through ConVar 2022-09-11 00:16:31 +02:00
Kawe Mazidjatari
66f7e96413 CPackedStore: do not pack empty files
Empty files have no place in a VPK.
v2.1_rc3
2022-09-10 00:07:42 +02:00
Kawe Mazidjatari
b0fc8fb46c Add utility for checking if a file is empty or not 2022-09-10 00:06:26 +02:00
Kawe Mazidjatari
3b237a827f Function must return a value 2022-09-09 21:05:10 +02:00
Kawe Mazidjatari
598d9887f0 Build all files into source engine structure
Valve + Respawn build path structure
2022-09-09 20:56:47 +02:00
Kawe Mazidjatari
b1e1765124 Set the correct datatype for what was originally 'm_bSplitScreenConnect'
Bool is a char on this platform, and UINT8_MAX is 0xff (255), yet we set this char to 256 causing arithmetic overflow. Looking at the assembly of the game, this really is a uint16_t, and gets set to 256 in CHostState::Init, parsed to State_NewGame as 256 before the lowbyte is being reset to 0.
2022-09-09 20:16:55 +02:00
Kawe Mazidjatari
34a06147d7 Fix spelling errors
Overall spelling improvements and cleanup..
2022-09-09 19:47:31 +02:00
Kawe Mazidjatari
a9613347c6 Squirrel: fix color logging bug
Fix defect where color logging for script error/warnings did not work for the in-game console, when color logging for external console was disabled.

This is the only reported SDK defect after 15K downloads!
v2.1_b2
2022-09-09 02:40:18 +02:00
Kawe Mazidjatari
b6ff2c8798 Light cleanup 2022-09-09 02:28:03 +02:00
Kawe Mazidjatari
570f6419df Add 'reload_playlists' concommand.
Allows reloading the playlists file from the console or the dedicated server.
2022-09-08 01:02:22 +02:00
Kawe Mazidjatari
5813c0ed24 Update thirdpartylegalnotices.txt v2.1_b1 2022-09-07 02:12:56 +02:00
Kawe Mazidjatari
8c1d22f560 Console bug fixes
* Fixed bug where in several occasions 'm_bSuggestActive' would be true while we have nothing to suggest.
* Fixed bug where using the submit button in the console would not invoke the logic behind 'm_bModifyInput' in the text edit callback, but instead, being cleared within the scope of the submit button.
* Properly erase the ConVar past the ' ' or ';' character instead of null terminating it.
2022-09-07 01:55:52 +02:00
Kawe Mazidjatari
708e6992e4 Server browser UX improvements
* Removed extraneous text line for hosting, combined error and hosting into 1.
* Removed extraneous 'Force Start' button. The server will now 'Force Start' when the visibility is offline, else require the user to fill out the required fields in order to host the server.
* Only clear the request message when the color is green and we are no longer hosting. All errors will remain until the server is restarted through the browser panel.
2022-09-07 01:12:22 +02:00
Kawe Mazidjatari
954165c2ea ConCommand: use FCVAR_GAMEDLL flags for several server commands.
These could only be ran if the server is running, and allows for running them as ServerCommand.
2022-09-05 23:02:54 +02:00
Kawe Mazidjatari
04d4c64107 Squirrel: fix lambda capture for scheduled execute task
Running command as FCVAR_GAMEDLL caused unpredictable behavior.
2022-09-05 23:01:16 +02:00
Kawe Mazidjatari
2887e79bcb CBroswer: fix 'Stop Server' button not appearing when server script error occurs while client is attempting to connect 2022-09-05 22:32:47 +02:00
Kawe Mazidjatari
28ddf2a380 CConsole: fix bug where history scrolling did not work even when input was empty
* Reset when buffer is empty.
* Show suggestions when only 1 character has been entered.
2022-09-05 01:33:40 +02:00
Kawe Mazidjatari
900cc4dd9a CConsole: remove 'ImGuiInputTextFlags_NoUndoRedo' flag
The buffer desync defect has been fixed as of Dear ImGui v1.88.
You can now undo/redo console input.
2022-09-02 02:24:04 +02:00
Kawe Mazidjatari
a3027a8fd1 Upgrade Dear ImGui from 1.87 to 1.88
Upgrade includes all the modifications we brought to the library (SetWindowScrollX/Y, autocaret end, mouse state adjustments for game, highlight around input selection, hotkeys, etc..).
2022-09-02 02:22:39 +02:00