Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Garry's Mod RCON Binary module for controlling RCON authentication directly from Lua

NotificationsYou must be signed in to change notification settings

Draiget/gmsv_rcon2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Garry's Mod binary module for controlling RCON authentication directly from Lua!

Supported hooks

OnRconWriteRequest (listenerId, requestId, requestType, data, isLanIpAddress, ip, port)

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.

OnRconCheckPassword (password, listenerId, isLanIpAddress, ip, port)

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.

OnRconLogCommand (listenerId, msg, isKnownListener, isLanIpAddress, ip, port)

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.

Building module

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).

Linux

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

Windows

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 .

Updates & Issues

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

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp