1235 Commits

Author SHA1 Message Date
Kawe Mazidjatari
d9021e99e9 Update cmd.cpp 2022-05-13 17:54:13 +02:00
Kawe Mazidjatari
81dcfa60a0 Cleanup 2022-05-13 17:51:01 +02:00
Kawe Mazidjatari
3f14198695 Enable more optimization options for all projects 2022-05-13 17:37:23 +02:00
Kawe Mazidjatari
3144227ec8 Update GetAdr implementations to feature spdlog
Fixed all alignments and reduced code verbosity
2022-05-13 14:53:25 +02:00
Kawe Mazidjatari
3cc7ea9365 Update net.cpp 2022-05-13 11:26:44 +02:00
PixieCore
30788de692 Fixed clientsdk compilation. 2022-05-12 19:39:55 +02:00
Kawe Mazidjatari
2424545c52 Update unknown parameter names 2022-05-12 01:20:19 +02:00
Kawe Mazidjatari
3e48e746db Cleanup some strings 2022-05-12 01:07:48 +02:00
Amos
187174cda5 Merge branch 'indev' of https://github.com/Mauler125/r5sdk into indev 2022-05-11 10:30:34 +02:00
Amos
e12469bcbe Update launcher.cpp 2022-05-11 10:30:08 +02:00
Kawe Mazidjatari
27c3ed0365 Add print functions for printing '__m128i' datatypes 2022-05-10 23:36:01 +02:00
Kawe Mazidjatari
452c8afcf3 Display '%' symbol properly in console 2022-05-10 23:32:44 +02:00
Kawe Mazidjatari
9ceffb2491 Fix forgotten color parameter 2022-05-10 18:09:49 +02:00
Kawe Mazidjatari
868d6ea14a Extraneous string array 2022-05-10 18:09:31 +02:00
Amos
473db0e320 Finish game console optimizations
The console no longer should cause huge frame drops when the vector size increases around its max size
2022-05-10 13:26:03 +02:00
Amos
80d99744db Add const qualifiers 2022-05-10 13:24:22 +02:00
Kawe Mazidjatari
1c13c9807b Update cmd.cpp 2022-05-10 01:38:13 +02:00
Kawe Mazidjatari
804123bd84 Fix dedicated crash when sqstd_aux_printerror is engaged
'uiscript_reset' is hardcoded to be executed in the engine, and needs to be unregistered from the server to prevent it from doing anything
2022-05-09 21:52:02 +02:00
Kawe Mazidjatari
46134434a9 Show script error callstacks and context in colors in the external console
Show colors on console and use color constant to determine color instead of comparing strings in the console render loop. removed 5 string compares which should once again bump the performance quite a bit. The last string compares will be removed soon
2022-05-09 21:21:05 +02:00
Kawe Mazidjatari
e22ec87db7 Align log 2022-05-09 02:35:41 +02:00
Kawe Mazidjatari
611ea6447a Console performance improvements and bug fixes
* Heavily reduced string compares for coloring logs (the left overs require a dedicated hook, this is for the future)
The new method uses a ImVec 4 constant containing the color obtained via a switch case by context, this is then out into the new CConLog structure where the loop in the console will now gather the colors directly from.
Error/Warning use a single constant.

* Fixed bugs in several log locations where the ostringstream was cleared before the emission causing double logs.

* Added global log mutex to log wrappers that lacked those.
2022-05-09 02:20:07 +02:00
Kawe Mazidjatari
c1da90db33 Update ai_networkmanager.cpp 2022-05-08 19:09:31 +02:00
Kawe Mazidjatari
636c9b595e Update IBrowser.cpp 2022-05-08 16:28:20 +02:00
Kawe Mazidjatari
5898ba14e0 Cleanup server browser 2022-05-08 16:20:48 +02:00
PixieCore
fb77744d53 Fixed dedi compilation. 2022-05-07 22:00:59 +02:00
PixieCore
8acc208e61 Getting games CBaseClientState now. 2022-05-07 17:52:41 +02:00
Kawe Mazidjatari
116d66f241 Fix Dear ImGui shutdown assert 2022-05-07 17:13:37 +02:00
Kawe Mazidjatari
45de72ea78 Prevent multiple threads logging at the same time (logging over each other) 2022-05-07 12:57:14 +02:00
Kawe Mazidjatari
6b13c4454a Add const qualifiers 2022-05-07 12:28:58 +02:00
Kawe Mazidjatari
3e2a9db168 Disable 'r5net_show_debug' by default 2022-05-07 12:25:23 +02:00
Kawe Mazidjatari
0549134133 Fix netconsole bug 2022-05-07 03:52:33 +02:00
Kawe Mazidjatari
57e6dc4280 Improve RCON system
* Buffers are now send properly from the game client and netconsole client (running scripts and executing command's/convar's now work properly).
* Removed 'PASS' string check on server and only rely on 'SERVERDATA_REQUEST_AUTH' enum for auth queries (should make heavy abuse even harder).
2022-05-07 03:06:19 +02:00
Kawe Mazidjatari
43cb013358 Update completion.cpp 2022-05-07 02:07:00 +02:00
Kawe Mazidjatari
9960ff06d4 Improve tree logging 2022-05-07 02:05:49 +02:00
Kawe Mazidjatari
34fddf723a Use uppercase for hex 2022-05-06 16:28:13 +02:00
Kawe Mazidjatari
d0974f7317 Validate AI Network during load
Compares AINet version, map version and NavMesh (large) checksum, warns and logs to console if conditions aren't satisfied.
2022-05-06 16:20:51 +02:00
Kawe Mazidjatari
ca3fcc941d Fix small mistake 2022-05-06 14:54:28 +02:00
Kawe Mazidjatari
17c5d14390 Update mdlcache.cpp 2022-05-06 13:21:42 +02:00
Kawe Mazidjatari
46a8228dad More MDLCache cleanup and error handling improvements 2022-05-06 13:19:06 +02:00
Kawe Mazidjatari
1308ae30bf Additional CMDLCache cleanup 2022-05-06 02:49:38 +02:00
Kawe Mazidjatari
215f205508 Improve CMDLCache::GetMaterialTable()
This should also be backwards compatible now
2022-05-06 02:32:25 +02:00
Kawe Mazidjatari
44f6f5e06b Update projects 2022-05-06 01:04:33 +02:00
Kawe Mazidjatari
72289f9f33 CMDLCache::GetStudioHardware improvements
Slightly mapped out the structure more.
The function should now be compatible with earlier game dll's.
CStudioHWDataRef::SetFlags has to be rebuild as these are declared inline for earlier game dll's.
2022-05-06 00:51:49 +02:00
PixieCore
66d122e192 Start of CEngineClient implementation.
* Rebuild SetRestrictedServerCommand and SetRestrictedClientCommands
* Implemented new CMemory Function to walk through a VTable.
* pDetours->GetCon() gets called first now.
*
2022-05-06 00:34:46 +02:00
Kawe Mazidjatari
31c4f36aa3 CMDLCache::FindUncachedMDL cleanup 2022-05-05 20:36:13 +02:00
Kawe Mazidjatari
ec7956622b Make CMDLCache::FindMDL and CMDLCache::FindCachedMDL backwards compatible
Mapped out some of the structs
2022-05-05 17:53:05 +02:00
Kawe Mazidjatari
4d2c819544 Fix statement not getting compiled into the resulting binary 2022-05-05 14:53:48 +02:00
Kawe Mazidjatari
13ff58efcf Fix crash during dereference of 'PSRWLOCK' pointer
Studio hardware ref crash
2022-05-05 14:52:03 +02:00
Kawe Mazidjatari
24dae59cb8 Improve CMDLCache::FindMDL 2022-05-05 02:54:17 +02:00
Kawe Mazidjatari
03a0546140 Reset level name when game is shut down 2022-05-05 02:46:15 +02:00