292 Commits

Author SHA1 Message Date
Amos
a4273fedfd Alpha dedicated 2021-10-21 15:56:45 -07:00
IcePixelx
ab12789faf Log system adjustments. 2021-10-20 18:49:48 +02:00
r-ex
7f86722116
changed paint hook for logsystem and fixed some issue (#58)
* changed paint hook

* Update gameclasses.cpp

* fixed vector issue with logsystem (i think)
2021-10-20 18:04:21 +02:00
IcePixelx
cb3aaa7640 Clean up. 2021-10-20 18:03:02 +02:00
Amos
18d6e1f666
Merge pull request #56 from r-ex/indev
logsystem console overlay
2021-10-05 15:29:59 -07:00
rexx
6c65dd0fcd why 2021-10-05 22:10:08 +01:00
rexx
c356dd403c Update hooks.h 2021-10-05 22:01:28 +01:00
rexx
3d770e087d convar for logger overlay, some colour changes 2021-10-05 21:59:27 +01:00
rexx
65ab3770e5 Update patterns.h 2021-10-05 20:56:52 +01:00
rexx
ea336277bd base logsystem 2021-10-05 20:56:31 +01:00
IcePixelx
341bd875e7 Fixed some debug prints. 2021-10-05 00:34:50 +02:00
IcePixelx
ef8b20f513 Removed LockCursor static address when removing the hook. 2021-10-05 00:28:14 +02:00
IcePixelx
17d45a02aa Read description for changes.
* Completely re-wrote the DirectX creation and hooks.
* Using spdlog mostly everywhere now.
* Added prints for when compiled in debug.
* Using LockCursor now to prevent input to the game while in the gui.
* Patched the game to call CMatSystemSurface::LockCursor instead of it calling the inlined version.
* Added rebuild CHostState::FrameUpdate (Not finished yet)
* Added option to print to command prompt again.
* Added log Auto-Clear.
* Added scan for NetChan Encryption Key Pointer.
* Added more error handling when loading gui config.
2021-10-05 00:25:58 +02:00
Amos
27536741f8
Merge pull request #54 from r-ex/indev
native server script functions
2021-09-25 14:58:54 -07:00
rexx
26d78c584e temp dedi patches 2021-09-25 22:54:11 +01:00
rexx
6236a6402d server script functions 2021-09-20 21:06:23 +01:00
Александр Герман
d08387d9ba
static link debug (#53) 2021-09-16 12:42:05 +02:00
r-ex
25c5a5c9af
custom native ui & client script functions (#52)
* custom native ui & client script functions

* spacing is hard

* sq_pushbool, sq_pushstring, sq_getstring, sq_getinteger

* sq_pushinteger, sq_newarray, sq_arrayappend, sq_newtable, sq_newslot

* Re-factored code.

Co-authored-by: IcePixelx <41352111+PixieCore@users.noreply.github.com>
2021-09-14 17:25:22 +02:00
Amos
b42e85b1f4 First work-in-progress dedicated implementation
Based on MrSteyk's dedicated patch.
Additional patches targets the disabling of the client.dll library and VGUI. The disabling of the client.dll library initialization caused several issues to be investigated still (currently loops fine in _Host_RunFrame()). but executing a map command currently makes it only load the mp_common VPK before getting stuck somewhere. Setting hoststate to a valid map with HS_NEW_GAME (manually) does something to the engine but does not force the server to load anything yet.

Added enums and classes from r5dev project.
2021-09-12 16:41:30 -07:00
Amos
fad7906fd8 Update launcher
Adds spdlog library instead for clearer output.
Adds precompiled header for slightly faster compilation.
Updated print text with clearer details.
Renamed to "r5reloaded.exe" instead to match files in game directory
2021-09-12 07:15:42 -07:00
IcePixelx
2da6d71fb3 Alot of changes read description
* Ban list added
* Playlist parser added
* Kick functions added
* Connect uses encryption keys now
* Fixed restricted server commands
1.6
2021-09-08 00:32:03 +02:00
IcePixelx
c89c7c9c6b Removed native console logging, logging to file and imgui console now. 2021-08-30 17:52:10 +02:00
IcePixelx
0e1c930805 Re-factored r5launcher. Using std::filesystem to read startup files now. 2021-08-30 16:39:56 +02:00
IcePixelx
9adbbcdae6 Reverted till i find a proper fix. 2021-08-23 23:07:03 +02:00
IcePixelx
dc635415aa Fixed crash when starting server. 2021-08-23 22:49:47 +02:00
Amos
03a7c2677e Update R5 Reloaded.ico 2021-08-22 17:17:38 -07:00
IcePixelx
880adbf800 Fixed bug with custom maps. 2021-08-21 00:24:34 +02:00
IcePixelx
8496ccc417 Read description for changes!
* Parsing playlist from keyvalues now.
* When hosting a server it will ask for a playlist to be chosen.
* Load playlist on demand into memory.
* Load playlist from disk.
* Added LoadPlaylist hook to clear the MapVPKCache that causes crashes with launchplaylist concommand
* KeyValues class is useable now.
2021-08-20 23:40:44 +02:00
IcePixelx
7dfddb71d7 Merge branch 'indev' 2021-08-20 12:40:53 +02:00
IcePixelx
6af81622b7 Squashed commit of the following:
commit 906dff5aa4289ddda61be508b6b20320f5cfb7bf
Author: IcePixelx <41352111+PixieCore@users.noreply.github.com>
Date:   Fri Aug 20 12:37:09 2021 +0200

    Update r5net.cpp

commit 4f463eb446f5ebf561d42db0f6cb2bed8a43e517
Author: IcePixelx <41352111+PixieCore@users.noreply.github.com>
Date:   Fri Aug 20 12:26:32 2021 +0200

    Fixed error message parsing in r5net.

commit 64aa6e7f97ea9461ed5d5795901e427732fb62bd
Author: IcePixelx <41352111+PixieCore@users.noreply.github.com>
Date:   Thu Aug 19 14:48:31 2021 +0200

    Fixed prints.

commit bb4b4d76366eccd7687bdfe970e50274320c6622
Author: IcePixelx <41352111+PixieCore@users.noreply.github.com>
Date:   Thu Aug 19 14:46:22 2021 +0200

    Added shortcut with launch params.

commit 962afa215e97c75e80cc6644fb8ad64d110dfb60
Author: IcePixelx <41352111+PixieCore@users.noreply.github.com>
Date:   Thu Aug 19 14:35:30 2021 +0200

    Wrong return.

commit 0e171fca6a4662225f1da32e1b12e5450b338c1a
Author: IcePixelx <41352111+PixieCore@users.noreply.github.com>
Date:   Thu Aug 19 14:32:52 2021 +0200

    Changes in description.

    * Added icon to launcher.exe
    * Launcher.exe gets remnamed to Run R5 Reloaded.exe in launcher release compilation configuration.
    * Extended argument buffer for starting the game in launcher.exe.
    * Added exception printing if in the custom ConVars an invalid value gets passed.

commit 70b4c02a9a7b0978d64a1ab7c1db3c76f695eda8
Author: IcePixelx <41352111+PixieCore@users.noreply.github.com>
Date:   Thu Aug 19 01:27:44 2021 +0200

    Read description for all changes.

    * Added ability to register custom ConVar.
    * Added 2 custom ConVars to open the CGameConsole and CCompanion Windows.
    * Changed ResolveRelativeAddress.
    * Added Config System for the Gui.
    * Added ImGui::Hotkey.
    * Added the ability to change 2 hotkeys for opening the window for CGameConsole and CCompanion.
    * Changed pattern for Squirrel_CompilerError to use a String.
    * Added IMemAlloc::AllocWrapper to patterns.h

commit 06127dee1d901d555b8a6b2b4592a12273454d64
Author: BobTheBob <32057864+BobTheBob9@users.noreply.github.com>
Date:   Wed Aug 18 23:17:51 2021 +0100

    prevent squirrel compiler errors from killing game process (#43)

commit a3025e76de885558da4aef07077cbfee4551ed58
Author: Marcii0 <58266292+Marcii0@users.noreply.github.com>
Date:   Thu Aug 19 00:17:18 2021 +0200

    Changed map-select drop down menu, now it displays 'Map Name + Season' instead of file-name. (#41)

    * Host Server shows normal map names

    * Changed a few stuff...

    * redid some stuff that isn't crucial

    * Update CCompanion.cpp

    * Update CCompanion.cpp

    * Updated mapname displaying.

    * Moved "ServerMap" as a static object into CCompanion::HostServerSection().

    Co-authored-by: IcePixelx <41352111+PixieCore@users.noreply.github.com>

commit bbd58bba7567f463e2581559df522d67f3d0b026
Author: IcePixelx <41352111+PixieCore@users.noreply.github.com>
Date:   Tue Aug 17 23:18:35 2021 +0200

    Fixed potential crashes in r5net and added debug prints.

    * Potential crashes were when in certain post functions the returned status wasn't 200.

commit 3558eb9c487d3297ab28451053347c0afae7f15f
Author: IcePixelx <41352111+PixieCore@users.noreply.github.com>
Date:   Tue Aug 17 23:11:29 2021 +0200

    Removed un-used define in hooks.h

commit 54cdb2fb61b2c729e6b0e99e0cd5c1ede3cc5229
Author: IcePixelx <41352111+PixieCore@users.noreply.github.com>
Date:   Tue Aug 17 23:04:53 2021 +0200

    Updated IsFlagSet hooks.

    * Cleaned up code to properly mask off Dev and Cheat flags.
    * Added separate define from _DEBUG so you can define it in release builds for people without C++ Debug Restributeables.

commit 7e7717ff68b5e177e58dd3e7989f35740cdc9236
Author: IcePixelx <41352111+PixieCore@users.noreply.github.com>
Date:   Tue Aug 17 23:03:21 2021 +0200

    Added new patterns to the print function.

commit 768f2341f19d1e2e9b8fd05d1d667f46ab21dc71
Author: IcePixelx <41352111+PixieCore@users.noreply.github.com>
Date:   Tue Aug 17 23:02:14 2021 +0200

    Added separate function to resolve relative addresses in address.h
2021-08-20 12:38:22 +02:00
IcePixelx
906dff5aa4 Update r5net.cpp 2021-08-20 12:37:09 +02:00
IcePixelx
4f463eb446 Fixed error message parsing in r5net. 2021-08-20 12:26:32 +02:00
PixieCore
7bb4fd6313
Merge indev into master. (#44)
* Added separate function to resolve relative addresses in address.h

* Added new patterns to the print function.

* Updated IsFlagSet hooks.

* Cleaned up code to properly mask off Dev and Cheat flags.
* Added separate define from _DEBUG so you can define it in release builds for people without C++ Debug Restributeables.

* Removed un-used define in hooks.h

* Fixed potential crashes in r5net and added debug prints.

* Potential crashes were when in certain post functions the returned status wasn't 200.

* Changed map-select drop down menu, now it displays 'Map Name + Season' instead of file-name. (#41)

* Host Server shows normal map names

* Changed a few stuff...

* redid some stuff that isn't crucial

* Update CCompanion.cpp

* Update CCompanion.cpp

* Updated mapname displaying.

* Moved "ServerMap" as a static object into CCompanion::HostServerSection().

Co-authored-by: IcePixelx <41352111+PixieCore@users.noreply.github.com>

* prevent squirrel compiler errors from killing game process (#43)

* Read description for all changes.

* Added ability to register custom ConVar.
* Added 2 custom ConVars to open the CGameConsole and CCompanion Windows.
* Changed ResolveRelativeAddress.
* Added Config System for the Gui.
* Added ImGui::Hotkey.
* Added the ability to change 2 hotkeys for opening the window for CGameConsole and CCompanion.
* Changed pattern for Squirrel_CompilerError to use a String.
* Added IMemAlloc::AllocWrapper to patterns.h

* Changes in description.

* Added icon to launcher.exe
* Launcher.exe gets remnamed to Run R5 Reloaded.exe in launcher release compilation configuration.
* Extended argument buffer for starting the game in launcher.exe.
* Added exception printing if in the custom ConVars an invalid value gets passed.

* Wrong return.

* Added shortcut with launch params.

* Fixed prints.

Co-authored-by: Marcii0 <58266292+Marcii0@users.noreply.github.com>
Co-authored-by: BobTheBob <32057864+BobTheBob9@users.noreply.github.com>
1.5.3
2021-08-19 15:26:44 +02:00
IcePixelx
64aa6e7f97 Fixed prints. 2021-08-19 14:48:31 +02:00
IcePixelx
bb4b4d7636 Added shortcut with launch params. 2021-08-19 14:46:22 +02:00
IcePixelx
962afa215e Wrong return. 2021-08-19 14:35:30 +02:00
IcePixelx
0e171fca6a Changes in description.
* Added icon to launcher.exe
* Launcher.exe gets remnamed to Run R5 Reloaded.exe in launcher release compilation configuration.
* Extended argument buffer for starting the game in launcher.exe.
* Added exception printing if in the custom ConVars an invalid value gets passed.
2021-08-19 14:32:52 +02:00
IcePixelx
70b4c02a9a Read description for all changes.
* Added ability to register custom ConVar.
* Added 2 custom ConVars to open the CGameConsole and CCompanion Windows.
* Changed ResolveRelativeAddress.
* Added Config System for the Gui.
* Added ImGui::Hotkey.
* Added the ability to change 2 hotkeys for opening the window for CGameConsole and CCompanion.
* Changed pattern for Squirrel_CompilerError to use a String.
* Added IMemAlloc::AllocWrapper to patterns.h
2021-08-19 01:27:44 +02:00
BobTheBob
06127dee1d
prevent squirrel compiler errors from killing game process (#43) 2021-08-19 00:17:51 +02:00
Marcii0
a3025e76de
Changed map-select drop down menu, now it displays 'Map Name + Season' instead of file-name. (#41)
* Host Server shows normal map names

* Changed a few stuff...

* redid some stuff that isn't crucial

* Update CCompanion.cpp

* Update CCompanion.cpp

* Updated mapname displaying.

* Moved "ServerMap" as a static object into CCompanion::HostServerSection().

Co-authored-by: IcePixelx <41352111+PixieCore@users.noreply.github.com>
2021-08-19 00:17:18 +02:00
IcePixelx
bbd58bba75 Fixed potential crashes in r5net and added debug prints.
* Potential crashes were when in certain post functions the returned status wasn't 200.
2021-08-17 23:18:35 +02:00
IcePixelx
3558eb9c48 Removed un-used define in hooks.h 2021-08-17 23:11:29 +02:00
IcePixelx
54cdb2fb61 Updated IsFlagSet hooks.
* Cleaned up code to properly mask off Dev and Cheat flags.
* Added separate define from _DEBUG so you can define it in release builds for people without C++ Debug Restributeables.
2021-08-17 23:04:53 +02:00
IcePixelx
7e7717ff68 Added new patterns to the print function. 2021-08-17 23:03:21 +02:00
IcePixelx
768f2341f1 Added separate function to resolve relative addresses in address.h 2021-08-17 23:02:14 +02:00
IcePixelx
3c641687f1 Fix post-build for r5dev debug compilation. 2021-08-17 22:17:58 +02:00
PixieCore
d9d3a08f95
Added postbuild event for the debug compile. 2021-08-16 16:33:49 +02:00
IcePixelx
6904273ab9 Merge branch 'master' of https://github.com/PixieCore/detours_r5 2021-08-16 16:32:56 +02:00
IcePixelx
01d3be4c66 Prebuild event for debug dll. 2021-08-16 16:32:28 +02:00
PixieCore
1b0e9ee08d
Merge pull request #38 from PixieCore/master
Added lots of stuff to r5net and invalided stryder hostnames.
1.5.2 1.5.1 1.5
2021-08-15 19:59:02 +02:00