473 Commits

Author SHA1 Message Date
Amos
2719a85504 Debug overlay QOL improvements + Con_NPrintf() hook
* Added ability to invert rect to calculate offsets from bottom/right as well so debug text doesn't get out of view, or obstruct view when window is resized.
* Added Con_NPrintf() hook which shows detailed systems running times and VGUI panel debug information.
2022-02-28 01:01:40 +01:00
Amos
0774ebf9ff Fix exception during SDK shutdown
Run in a fixed interval manner within same thread instead of separate threads.
2022-02-27 19:47:29 +01:00
Amos
62604e8fe9 CAI related stuff (see description)
* Partially rebuild CGlobalVarsBase and CGlobalVars struct.
* Partially implement BuildAINFile (disk builder) written by BobTheBob9. All that needs to be found are the addresses/offsets for 'pUnkStruct0Count' and 'pUnkLinkStruct1Count' (see ai_node.h). I didn't have time for it yet.
* Patch call which restarts the engine once AIN file has been build (so it doesn't get cleared from memory).
* Temporarily patch write operation in 'Detours_LevelInit()' which writes out of scope since the navmesh structure is misaligned somewhere still with a few bytes.

NOTE: 'CAI_NetworkBuilder::BuildFile()' is for now commented out until the 2 other structs are found in the game dll. Once found then we could start fixing the struct offsets and hope it works as-is.
2022-02-27 03:15:00 +01:00
Amos
92c0c61450 Remove screen width/height from debug configuration files 2022-02-24 16:47:08 +01:00
Amos
dc6e0a3613 Fix client script error causing crash 2022-02-24 16:46:38 +01:00
Amos
23f37bfa50 RCON QOL improvements 2022-02-24 16:44:33 +01:00
Amos
fdb6663c91 Heavily reduce what is needed from protobuf (lite implementation) 2022-02-24 12:47:18 +01:00
Amos
d12bf39dea Fix SQVM error for dedicated 2022-02-24 02:17:05 +01:00
Amos
3616b85f6a Some fixes and new features, see description.
* Add CServerGameDLL interface to SDK (unfinished)
* Inline all CHostState members. Calling discrete member functions will result in a corrupt stack. It also alters with the VTable layout in the engine since we assign our SDK instance directly to it. Forcing everything to be inline (like the assembled counterpart within the executable itself) will ensure no virtual calls will get created and misalign the base VTable.
* Patch SQVM_CompileError to call SQVM_Error with the severity flag set to false (0 = do not terminate process, 1 is terminate process).
2022-02-24 01:51:11 +01:00
Amos
d3c7b9baf5 Rename to make more sense 2022-02-23 21:11:35 +01:00
Amos
8c940fcbc8 Completely strip Miles SDK from dedicated 2022-02-23 21:03:06 +01:00
Amos
cfa572f20e Small fixes + improve console autocomplete readability 2022-02-23 21:02:37 +01:00
Amos
9506a5141a CConsole improvements
* Pad the autocomplete list with 18 to keep all items in view
* Show help text for ConCommand as well
+ Small code cleanup
2022-02-23 15:56:03 +01:00
Amos
0c069db90c Fix ConCommand size 2022-02-23 03:41:10 +01:00
Amos
9e66ed7f2e Fix warning 2022-02-23 00:21:54 +01:00
Amos
4cfb06ff4a Finish ConCommandBase/Concommand/ConVar classes 2022-02-23 00:18:46 +01:00
Amos
e8993d1396 Compile Dear ImGui as static lib 2022-02-22 21:29:42 +01:00
Amos
4cb1f7927b Move static libraries to dedicated location
Also compile Detours as static library instead
2022-02-22 19:37:56 +01:00
Amos
c6cf40f539 Optimize console autocomplete and show usage text 2022-02-22 16:31:24 +01:00
Amos
26c0fa89ab Add additional check to input address handling in CNetAdr2 2022-02-22 15:22:51 +01:00
Amos
b7e3e02228 Create R5Dev.props
Accidentally forgotten
2022-02-22 15:20:08 +01:00
Amos
674cf918f9 Finished project overhaul
Build lzham as a separate library to be linked against the sdk.
Dependencies now build properly when missing.
2022-02-22 15:19:32 +01:00
Amos
b02929edd1 Move project files to dedicated folder and rename solution file 2022-02-22 12:25:09 +01:00
Amos
667b51097f Add launcher enums 2022-02-22 02:45:40 +01:00
Amos
9b8dfee460 Improve ConVar class + rebuild ConCommand class 2022-02-21 17:56:31 +01:00
Amos
ae0b439a3c Additional cleanup + optimizations 2022-02-21 12:06:05 +01:00
Amos
7b971d0398 Disable starpak error handling on the dedicated server
Server could be ran without any starpak files
2022-02-19 20:30:09 +01:00
Amos
77f4ce5b6e Fix typo 2022-02-19 17:04:20 +01:00
Amos
8fa96cc628 Update gl_screen.h 2022-02-19 16:44:05 +01:00
Amos
57a5b5015e Additional cleanup 2022-02-19 16:42:40 +01:00
Amos
5f005fb848 Fix Win32 compile for netconsole 2022-02-19 14:02:46 +01:00
Amos
114f51fcf6 Update config files 2022-02-19 03:06:42 +01:00
Amos
4eea51027c Fix spelling + add comments 2022-02-19 02:43:20 +01:00
Amos
8079e0ed4c Heavy cleanup for CHostState methods and signatures
* Add Cbuf_AddText and Cbuf_Execute signatures.
* Remove additional VGui stuff from dedicated statemachine.
* Move signatures to their respective headers.
* De-inline 'CHostState::FrameUpdate()'
* Ported al new patters to GAMEDLL_S1, CEngine still recreation needs extra work
2022-02-19 02:31:16 +01:00
Amos
cade827570 Update CEngineVGui.cpp 2022-02-18 14:17:14 +01:00
Amos
fd924b56e8 Shutdown dedicated dll properly
Systems where not getting shutdown properly. For dedicated 'ExitProcess()' in the GameDLL caused 'abort()' to get called even when systems where shutdown properly. We call TerminateProcess after all systems have shutdown properly in the SDK and GameDLL.
2022-02-18 14:00:58 +01:00
Amos
9e21284172 Fix dedicated crash during script error + shutdown game properly when tasked by user 2022-02-18 02:51:16 +01:00
Amos
5d60324a2e Add more color logging + RCON color logging 2022-02-17 18:00:29 +01:00
Amos
15897c0ea1 Small logging improvement 2022-02-16 01:53:31 +01:00
Amos
d3aea2a33f Add RCON config files 2022-02-15 02:33:20 +01:00
Amos
12c537284f Slight cleanup 2022-02-15 02:31:41 +01:00
Amos
22cfc084af Fix linker warning 2022-02-15 02:29:40 +01:00
Amos
10174a6206 Initial game client RCON implementation 2022-02-14 23:16:24 +01:00
Amos
976e8d9a41 Use SHA256 for password comparison
Put debug logging under cvar to avoid abusing by attempting to slow down server.
2022-02-14 03:02:38 +01:00
Amos
04be5e0e64 Use WSA error codes for startup/shutdown 2022-02-14 02:33:13 +01:00
Amos
6e3fb73a82 Update comment blocks 2022-02-14 02:31:42 +01:00
IcePixelx
308160369e RTech::UnloadAsset comment and rpak header rename. 2022-02-13 17:13:54 +01:00
IcePixelx
71dabb52e1 RTech var renames and struct renames. 2022-02-13 17:07:02 +01:00
Amos
a5b3b2dea4 Update comment blocks 2022-02-13 15:16:09 +01:00
Amos
9c8644e645 Implement stream serialization/deserialization in RCON server and client 2022-02-13 15:10:38 +01:00