1052 Commits

Author SHA1 Message Date
PixieCore
1b2c0cecd0 CShaderGlue changes and RTech implementation.
* Added RTech::LoadShaderSet for the asset load routine
* Grabbing CShaderGlue::SetupShader and CShaderGlue::m_pVTable dynamically now
* Everything verified for every season, cross-compatible!
2022-07-04 22:52:10 +02:00
Amos
fb0795c789 Fix dedicated compile 2022-07-04 01:08:36 +02:00
PixieCore
8860d9b1b8 fix compilation 2022-07-03 22:57:07 +02:00
PixieCore
2b1374cff8 Added CShaderGlue VTable context 2022-07-03 22:44:25 +02:00
PixieCore
1e2bfe6dd2 90% Fully reversed CShaderGlue 2022-07-03 21:55:35 +02:00
Kawe Mazidjatari
becf8eb6a5 Use size_t for SDK_ARRAYSIZE instead
sizeof() returns a size_t.
2022-07-03 19:18:23 +02:00
Kawe Mazidjatari
b075977dd7 Add new member to SQVM struct
'_nnativecalls' used in 'SQVM::CallNative()' [r5apex.exe+10A05F0].
2022-07-03 15:57:58 +02:00
PixieCore
6a90314fc1 Update cshaderglue.h 2022-07-03 13:57:24 +02:00
PixieCore
540b282998 Remove redundant function. 2022-07-03 13:05:14 +02:00
Kawe Mazidjatari
4323f0273d Dynamically get Rui debug font face
No longer hardcoded to ArameMono (default cfg's are set to ArameMono still).
2022-07-03 11:33:42 +02:00
Kawe Mazidjatari
e05c9c787d Draw the actual simulation tick on overlay 2022-07-03 11:03:25 +02:00
PixieCore
f614ed5140 New CMemory function and vgui comments.
* CMemory::FindAllCallReferences: Get all function calls to a function from the supplied sectioBase and sectionSize, useful to mass patch calls to a function.
2022-07-02 19:08:35 +02:00
rexx
6f4d69a776
fix crash from pixel's merge 2022-07-01 22:52:55 +01:00
Kawe Mazidjatari
eca293e551 Flip order between GetServerMap and GetServerPlaylist 2022-07-01 23:37:27 +02:00
Kawe Mazidjatari
1ce2a920db Merge branch 'indev' of https://github.com/Mauler125/r5sdk into indev 2022-07-01 23:33:59 +02:00
rexx
bd79e805b5
material debug info overlay (#70)
* material debug info overlay

* add x/y offset convars

* change flags to signature

flags is static?

* Update vgui_debugpanel.cpp

Co-authored-by: PixieCore <41352111+IcePixelx@users.noreply.github.com>
2022-07-01 23:33:48 +02:00
Kawe Mazidjatari
6b48d42609 Adapt new master server features to SQVM
* Adapted current/max players to SQVM.
* Improved exception handling in SQVM.
2022-07-01 23:33:47 +02:00
PixieCore
3efd7ece3b Changed a datatype in CShaderGlue 2022-07-01 22:53:46 +02:00
PixieCore
2e559863a8 CMaterialGlue and CShaderGlue
* Cleaned up CMaterialGlue
* Added slight implementation of CShaderGlue
2022-07-01 22:50:22 +02:00
Kawe Mazidjatari
158ec96d55 Move SSE/SSE2 tests to end of query
If the test fails we could still see the hardware.
2022-07-01 19:51:43 +02:00
Kawe Mazidjatari
cdcc87b54b Renamed master server related stuff 2022-07-01 10:29:27 +02:00
Kawe Mazidjatari
d417b60e69 Near finished master server improvements
* Added working players/maxplayers fields for master server.
* Fixed popstylevar assert in CBrowser (SetStyleVar and the corresponding PopStyleVar where not within the same scope).
2022-07-01 02:20:47 +02:00
Kawe Mazidjatari
59f43d0157 Slight cleanup/improvements for CSocketCreator 2022-06-30 20:21:15 +02:00
Kawe Mazidjatari
fd64556462 Find pattern instead of using offsets 2022-06-30 20:20:32 +02:00
Kawe Mazidjatari
e17d72571d Merge branch 'indev' into pylon_new 2022-06-30 20:19:13 +02:00
Amos
1186533652 Use Squirrel type alias 2022-06-30 11:30:11 +02:00
Amos
69b385a21a Change type to int in for loop
Tests against int, not size_t.
2022-06-30 11:29:36 +02:00
PixieCore
a2cb0b62c8 Macro for ArraySizes and CFactory Methods are virtual now for later usage. 2022-06-29 18:25:44 +02:00
PixieCore
c614d75a4f Removed ConVar string deletion.
* This will crash due to the string not being allocated with alloc.
Even if the source engine would allocate it, it would use CStdMemAlloc and it would crash anyway.
But it doesn't so we can just leave that out!
2022-06-29 17:07:06 +02:00
PixieCore
f414c2753d Commented un-used hook 2022-06-29 16:52:31 +02:00
PixieCore
7eb6952df0 Use const in memaddr.cpp where its supposed to be. 2022-06-29 16:32:40 +02:00
Kawe Mazidjatari
a20d6a163e Work-in-progress pylon master server implementation
Still in development.
Implemented new fields provided by pylon-ms.
2022-06-28 00:47:01 +02:00
Kawe Mazidjatari
2e4c3f5fde Remove comment
Forgotten.
2022-06-27 16:57:11 +02:00
Kawe Mazidjatari
2a5cbf9b22 Switch to uint32_t for script checksums
Crc32 is unsigned int (32-bit).
2022-06-27 16:56:20 +02:00
Kawe Mazidjatari
1d7b32b789 Preparation work for pylon master server implementation 2022-06-27 16:54:40 +02:00
Kawe Mazidjatari
838c183b10 Use highlighted tab bars in server browser 2022-06-27 15:01:39 +02:00
Kawe Mazidjatari
3323c3fadb Small ImGui theme adjustments 2022-06-27 14:48:03 +02:00
Kawe Mazidjatari
374a44f29e Rename PatternToBytesAndMask to PatternToMaskedBytes 2022-06-26 17:45:54 +02:00
Kawe Mazidjatari
98c43fd6c1 Rename CConLog to ConLog_t 2022-06-26 17:40:02 +02:00
Kawe Mazidjatari
2da11d2d32 Disable undo/redo in command input
Currently causes undefined behavior, though it rarely crashes (I couldn't reproduce the crash, but do get undefined behavior by having random memory end up in the input field, or similar)
Problem probably is because we don't store any undo/redo buffer.
For now disabled, will revisit in the future.
2022-06-26 17:14:32 +02:00
Kawe Mazidjatari
5480d450a2 Update imgui_logger.cpp 2022-06-26 17:10:52 +02:00
Kawe Mazidjatari
efe71fbe24 ImGui console UX improvements
* Fixed click-through parent window.
* Keep selection position when lines get cleared.
* Keep cursor position when lines get cleared.
* Ensure cursor visibility when dragging cursor outside rect.
* Falter free scrolling in autocomplete window.
* Falter free scrolling in logging window (window no longer stutters when lines get cleared).
2022-06-26 16:47:00 +02:00
PixieCore
8867b3bd7b Even faster startup now. 2022-06-25 12:05:09 +02:00
PixieCore
232680a2a6 CMemory::FindPattern cache bytes in L1.
* Pre-fetch bytes and cache them in L1.
2022-06-25 11:58:30 +02:00
PixieCore
64cf0d33d7 Fixed convention naming in PatternToBytesAndMask. 2022-06-25 00:10:36 +02:00
PixieCore
5ecac66dba Overloaded FindPatternSIMD that only takes 1 string.
* Uses IDA Style Pattern, Byte Array and Mask get created from that pattern.
2022-06-25 00:08:02 +02:00
PixieCore
39de0c3687 memaddr adjustments. 2022-06-24 23:32:47 +02:00
Kawe Mazidjatari
d7a004a0eb Fixed bug where auto-scrolling occasionally gets disabled
Issue happened when scrolling back, most of the time it will work, but there is always jitter in the first frame after the change which could result in ImGui::GetScrollY() <= ImGui::GetScrollMaxY() resulting in auto-scroll disable.
Only scroll back if ImGui::GetScrollY() <= ImGui::GetScrollMaxY() and always reset value of CConsole::m_nScrollBack.
2022-06-24 18:28:26 +02:00
Kawe Mazidjatari
cdc32531eb Prevent selection in console when scrollbar is active
Fixed issue where scrolling with the scrollbar would select text whilst sliding.
Improved UX by not showing the text edit cursor when scrollbar is hovered.
2022-06-24 17:43:50 +02:00
Kawe Mazidjatari
f0519efbb5 Fix SDKLauncher bug
Fix bug where SDK Launcher would display duplicate map names if server and client VPK's are installed within the same VPK directory.
2022-06-24 17:03:50 +02:00