210 Commits

Author SHA1 Message Date
IcePixelx
21a10e201b Typos. 2022-01-09 14:36:22 +01:00
IcePixelx
ae09372cc7 Pylon system changes. 2022-01-09 14:35:43 +01:00
Amos
98a428ace9 Fix S2 crash when launching a different version 2022-01-07 01:03:41 +01:00
Amos
c98301d175 Fix LZHAM recompiling pch for each implementation file 2022-01-06 17:30:23 +01:00
Amos
b80be10c4d Compile LZHAM with the solution. Fix missing detours files for sdklauncher 2022-01-06 15:08:39 +01:00
Amos
a0b7bbf366 Compile Microsoft Detours with the solution 2022-01-06 02:22:28 +01:00
Amos
9a3175fb6d Fix console input text reclaim to reflect latest ImGui changes 2022-01-06 01:52:05 +01:00
Amos
556894b3e3 Add connect command fix back
Accidentally removed.
2022-01-05 23:50:14 +01:00
Amos
1612c439d2 Fix project filters 2022-01-05 23:44:01 +01:00
Amos
47fdd4211d Fix for S3
For some reason the same byte pattern wasn't found in the miles dll for the S3 game, even though they where identical. Changed the byte patterns to search for the last 2 bytes of the instruction as well and made the conditional jmp instructions, unconditional for making sure mileswin64.dll doesn't close the process when a debugger is found.
2022-01-05 23:43:51 +01:00
Amos
d52bd5eeec Initial support for S1 2022-01-05 23:02:20 +01:00
IcePixelx
7c3994dfc2 dedicated refuselist 2022-01-05 19:23:53 +01:00
Amos
c486c2d593 Portability to S2 completed
CServer functions are evolving quite heavily over these seasons, so these need a bit of work
2022-01-05 02:11:21 +01:00
Amos
fbcea85631 Fix compiler error caused by merging commits from different branches 2022-01-04 12:11:59 +01:00
Amos
84e7729ca0 Add client and debug utilities + cleanup 2022-01-04 11:56:31 +01:00
Amos
477152b354 Fix compiler error 2021-12-31 03:45:48 +01:00
Amos
5f664d8e6b Create signatures for all used Dedicated functions 2021-12-31 03:44:21 +01:00
Amos
2c7ced128d Heavy dedicated cleanup
* Since the material mode is set to '2', all of the render loops and shader loading functions are no longer called. These have all been removed.
* Added description for patches that missed them
* Traced root caller/cause for certain patches to skip even more unnecessary code and save more memory.
2021-12-30 22:13:56 +01:00
Amos
22c0b5c867 Dedicated server improvements 2021-12-30 17:20:47 +01:00
Amos
6d4f7e345f Fix a typo 2021-12-30 02:47:46 +01:00
Amos
39a8a8fd30 Implement patch to enable 'DrawAllOverlays()'. 2021-12-30 02:36:43 +01:00
Amos
83129e88f8 Fix LLVM compiler error 2021-12-29 22:59:34 +01:00
Amos
c48ed7f7a5 Rename dedicated variables 2021-12-29 18:06:37 +01:00
IcePixelx
d1ba2bd567 Fixed changelevel, needs more research tho. 2021-12-29 15:35:48 +01:00
Amos
4695012571 Fix 'C_PropDoor' not spawning properly on the server 2021-12-29 13:58:03 +01:00
Amos
6a9a00735a Rename hooked command callbacks 2021-12-29 13:57:16 +01:00
Amos
b514f928a6 Use a separate executable for dedicated server
The dedicated server still has directx dll imports which will cause issues with ReShade or 3DMigoto, or trying to load it on a headless machine with no directx installed. The imports have to be cleared to avoid issues. The most convenient approach is to do this with a separate exe rather then patching it in runtime.
2021-12-29 02:16:28 +01:00
Amos
bc8f9400d3 Fix collisions for headless dedicated server 2021-12-29 00:19:01 +01:00
Amos
0e36aa647f Dedicated without ShaderApi and DirectX pre-alpha
The instruction at 'CalcPropStaticFrustumCull' [0x14028F3B0 + 0x5C7] moves RSP + 0x70 into the R13 register.
RSP + 0x70 seems to contain a pointer to collission data for that particular prop model.
When running NoShaderApi() and passing the dedicated server the '-noshaderapi' command line parameter, RSP + 0x70 will be a nullptr.
This has to be fixed to have prop static collissions on the server.
2021-12-28 20:19:17 +01:00
IcePixelx
421d5e3c73 Removed obselete funtion from ImGui::Hotkey 2021-12-28 03:07:37 +01:00
IcePixelx
0228f59062 Added indev Pylon(MasterServer) broadcasting to dedi. Read description for further information.
Dedicated RemoteFunctionCallsChecksum needs fixing because its currently always null.
Hidden needs to be implemented. I wouldn't say its needed currently till the Pylon re-write hits indev branch.
2021-12-28 02:23:13 +01:00
Amos
58fe36911b Attach QHull hook 2021-12-28 01:18:08 +01:00
Amos
324da8d340 Merge branch 'indev' of https://github.com/Mauler125/r5apexsdk into indev 2021-12-28 01:15:25 +01:00
Amos
c382020635 Implement QHull print function properly
Never seems to be called, but the function body was wrong.
2021-12-28 01:15:12 +01:00
IcePixelx
f6a4b011f0 ConVar/ConCommands improvements. 2021-12-28 01:14:56 +01:00
IcePixelx
899bde2af0 Add comments. 2021-12-27 21:30:04 +01:00
IcePixelx
f5208d2b61 Fixed NET::ShutDown recursive calling, fixed decompressed patch header size on decompress. 2021-12-27 20:44:37 +01:00
Amos
e03d74b753 Rename RTech decompression methods 2021-12-27 16:58:07 +01:00
Amos
69161ae6c0 Implement RTech_AsyncLoad hook and concommand
The ConCommand 'rtech_asyncload' allows the user to load specific pak files on-demand.
2021-12-27 16:53:35 +01:00
IcePixelx
54e07952e1 Fixed compilation. 2021-12-27 14:17:34 +01:00
Amos
947049b7e6 Add RPak async load pattern 2021-12-27 03:27:22 +01:00
Amos
0107656b1b Dedicated server inaccessible memory fix
The approach could likely be performed better, however this is a multithreaded operation and isn't very easy to debug. So far this allowed the server to start and change to every level. The root cause has to be identified when the server is stable
2021-12-27 03:15:25 +01:00
Amos
a87eee1818 Fix bug where FCVAR_CHEATS gets stripped regardless of intention 2021-12-27 02:23:03 +01:00
Amos
77c2be57ec Fix crash when setting persistence var in CClient struct 2021-12-27 02:06:03 +01:00
IcePixelx
c7987f8f6b Abit of Vector3 class. 2021-12-26 23:58:06 +01:00
IcePixelx
15bfffdd0f Fixed typo. Properly mask off cheats and dev from concommands and convars. 2021-12-26 22:58:28 +01:00
IcePixelx
c90d3184ea Aligning. 2021-12-26 04:14:28 +01:00
IcePixelx
0ca5b5ae35 Fixed potential crash with _NET_SetKey_f_CompletionFunc. 2021-12-26 02:37:56 +01:00
IcePixelx
c81aca28de Fixed a few asserts regarding the gui. RPak things. Check description.
* Fixed assert on ImGui on IBrowser because ImGui::Begin wasn't followed up by ImGui::End
* FileExists got modernized. Using std library instead of Windows native functions now.
* RTech::DecompressedSize is actually readable now thanks to steyk.
* Same goes for RTech::Decompress
* rtech_decompress prints the decompressed file CRC32 now and writes the file all at once.
* Fixed ImGui assert on spamming SetupImGui();
2021-12-26 02:30:20 +01:00
IcePixelx
8cfc55289b Git client decided not to commit this. 2021-12-25 22:58:51 +01:00