HTTP Server w/ RCon Multiplexer
This is something I was working on a while ago but never got around to releasing because it just needed That One Last Thing™.
Rather than leave it sitting around for the next forever while that doesn't happen, here it is! This release consists of 2 extensions and a handful of partially-completed sample plugins. Links can be found at the bottom of this post. Extensions Conplex Conplex exposes an interface (both C++ and SourcePawn) to multiplex connections onto the game server's existing RCon socket. Conplex is engine-independent but requires a small amount of easy-to-find gamedata. Gamedata is currently provided for TF2, CS:S, and CS:GO. Conplex includes a couple of protections against attacks to support exposing the RCon socket publicly:
Webcon Webcon provides a HTTP server on the RCon port using Conplex. Specifically, this allows the game server's regular connect address to be visited in a web browser. Webcon is engine-independent and requires no gamedata, just Conplex. A rich SourcePawn interface is exposed to allow plugins to handle requests and serve both dynamic and static content. The include file and test plugin (and of course the samples below) should be perused for developer usage information. The ultimate goal is web-based SourceMod configuration and management that can even be used by people hosting with a GSP. Sample Plugins Scoreboard A real-time web-based scoreboard. Screenshot. Made for and styled after TF2, but should work for any game. Browser support was not a concern, so probably only looks correct in Chrome. Web Manager A very incomplete sample showing Steam OpenID login and session persistence. Ideally these functions would be in a reusable library plugin (along with other stuff like HTML escaping). IRC Server Sample for Conplex implementing a basic IRC server. Download Source Code Issue Tracker Please note that none of the sample plugins come compiled, as only the Scoreboard plugin is designed for actual use rather than just a code example. Build Status https://travis-ci.org/asherkin/webcon.svg?branch=master https://ci.appveyor.com/api/projects...aster?svg=true |
Re: HTTP Server w/ RCon Multiplexer
Excellent work! I love those "That One Last Thing™'s".
Server usage just got more interesting. |
Re: HTTP Server w/ RCon Multiplexer
Oh my god, I can use this for the store system... you are awesome!
|
Re: HTTP Server w/ RCon Multiplexer
Just saw this in your signature. Does the scoreboard thing work for the MvM scoreboard or is it (as it usually is) the pvp board only?
|
Re: HTTP Server w/ RCon Multiplexer
Quote:
|
Re: HTTP Server w/ RCon Multiplexer
...granted, the data exists in other entities to give you the MvM score counts. Or at least it should, probably in the tf_objective entity.
|
Re: HTTP Server w/ RCon Multiplexer
I wonder how many people are going to use this exposed to the public, they should at least put it behind a real webserver such as nginx or Apache.
+1 For a PHP Extension for this! |
Re: HTTP Server w/ RCon Multiplexer
pretty cool, thanks for this. i wanted to multiplex the rcon port for a websocket server for like forever already but didnt have the time
|
Re: HTTP Server w/ RCon Multiplexer
Got this error on Linux:
Quote:
|
Re: HTTP Server w/ RCon Multiplexer
Quote:
|
All times are GMT -4. The time now is 01:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.