- Notifications
You must be signed in to change notification settings - Fork1
Garry's Mod RCON Binary module for controlling RCON authentication directly from Lua
Draiget/gmsv_rcon2
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Garry's Mod binary module for controlling RCON authentication directly from Lua!
Main rcon hookOnRconWriteRequest, according engine function is -CServerRemoteAccess::WriteDataRequest
.
On both platforms::WriteDataRequest
checks for password first time and then process RCON requests. But here's a little difference between platforms. In Linux build each request bein logged with external call ofCServerRemoteAccess::LogCommand
(which is a hookOnRconLogCommand), but on Windows this function are force-inlined. Than means, you won't be not able to useOnRconLogCommand
for Windows game server. Although::LogCommand
function exists on both platforms, it is not being called on Windows.
Hook for engine functionCServerRemoteAccess::IsPassword
, which is being called inCServerRemoteAccess::WriteDataRequest
to verity that incoming user password matches server (originally rcon_password console variable). You may not wanted to useOnRconWriteRequest but wish to override default password, or make it dynamic over time - so this is an option.
Hook for engine functionCServerRemoteAccess::LogCommand
, originally it print out messages likercon from \"%s\": %s\n
. You can override printing on Linux platform using this hook.Does not work under Windows, seeOnRconWriteRequest.
Requirements for manual build:
- SSDK2013
- CMake 3.8+
- GCC (g++)
Build variables:
- GMSV_SSDK_PATH - Path toValve Source SDK 2013
- GMSV_PLATFORM - [Optional] Set build platform (only LINUX or WINDOWS values allowed), by default platform is deteching automatically.
- GMSV_TARGET - [Optional] Type of target build, can be Debug or Release (default).
First, go to root folder of gmsv_rcon2 files and configure build with follow commands (example):
cmake -D GMSV_SSDK_PATH=/usr/lib/ssdk-2013 .
make
You can use Visual Studio 2019 (my version is 16.7.6) to open gmsv_rcon2 root folder, then selectx86-debug-win
configuration and pressCtrl+Shit+B
.Another option is to openx64_x86 Cross Tools Command Prompt for VS 2019 and run following commands (example):
cmake -D GMSV_SSDK_PATH=B:\libs\ssdk2013 -A Win32 .
cmake --build .
Module uses specific patterns for signature scanning and should work after game updates, but still better to test it before updating server.In case of problems with newer versions or other things, feel free to open an issue.
About
Garry's Mod RCON Binary module for controlling RCON authentication directly from Lua
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.