Raised This Month: $32 Target: $400
 8% 

[ANY] CheckValve Chat Relay (Mobile Chat Viewer) [5/26/16, v1.0.8]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
341464
Senior Member
Join Date: Dec 2010
Location: GetClientEyePosition
Plugin ID:
5197
Plugin Version:
1.0.8
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Chat Relay plugin for the mobile app, CheckValve.
    Old 05-21-2016 , 02:07   [ANY] CheckValve Chat Relay (Mobile Chat Viewer) [5/26/16, v1.0.8]
    Reply With Quote #1

    CheckValve Chat Relay (SourceMod edition)v1.0.8

    Description:
    Since Android has become mainstream, I'm sure you server owners out there have been looking for RCON/server management apps on Play Store. I discovered CheckValve a while back, and thought it was pretty useful. I, however, did not like the way their Chat Relay worked. You had to set up another Java-based server on the same or a different server just to relay the chat to their mobile client. I contacted the dev to see if it's alright to make a different one based on SourceMod, they agreed. I followed their documentation page and re-created the server using SourceMod and Socket. I had been in contact with the dev for months, and I'm now comfortable releasing this plugin to the public.

    TL;DR - I made the relay server simple and added some extra features.

    Features:
    • Full features from the original Chat Relay. (custom password, ports...etc)
    • Announce chat connection. (optional)
    • Filter unwanted words from the chat to the relay client. (optional, see Compiling below.)
    • Notify the relay client when a player has joined the server. (optional)
    • Notify the relay client when a player is killed (optional, there's even a CVAR for bot kills)
    • Steam ID tags.

    CVARs:
    Code:
    // Should the plugin forward unwanted commands/words?
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_checkvalve_filter "1"
    
    // Should CheckValve forward player connection notifications?
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_checkvalve_notify_connection "1"
    
    // Should CheckValve forward player kill events?
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_checkvalve_notify_kill "1"
    
    // Should CheckValve forward bot kill events?
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_checkvalve_notify_kill_bots "0"
    
    // Port to send & listen to client messages.
    // -
    // Default: "23456"
    // Minimum: "2000.000000"
    // Maximum: "65565.000000"
    sm_checkvalve_port "23456"
    
    // Password required to connect to the server. Must not be empty for security reasons.
    // -
    // Default: "changeme"
    sm_checkvalve_pw "changeme"
    Installation / Download:
    1. Grab the plugin here.
    2. Load the plugin.
    3. Change the CVAR values to your liking under 'tf\cfg\sourcemod\CheckValve.ChatRelay.cfg'
    4. Restart the server. (Or you could reload the plugin, although I haven't tested if that will work properly with socket ports)
    5. If you haven't already, grab the CheckValve app from Play Store.

    Compiling:
    So the word filter works by using a pre-defined list, I haven't made this part user configurable yet. If enough people requested it, I'll do it. So right now if you wanna change the list yourself or dislike some parts of the plugin, you best to re-compile it yourself.
    Source code here

    Include list
    Code:
    #include <socket>
    #include <SteamWorks>
    #include <morecolors>
    #include <bytebuffer>
    #include <smlib>

    Changelog:
    Code:
    	
    	v1.0.8rel
    	+ Added port check between 27000 to 27050, the ports are reserved for Source games in general.
    	+ Added a status command, along with override 'sm_checkvalve_admin', default permission is ADMFLAG_RCON.
    	* Minor message changes.
    	* Fixed RemoveArray stuff.
    
    	v1.0.7rel
    	* Initial SourceMod forum release
    	* Revamped ForwardToClient code (Thanks David)
    
    	v1.0.6rel
    	+ Added an option to announce connection to players
    	* Fixed team buffer size
    
    	v1.0.5rel
    	+ Added message filter (credits to El Diablo's Admin See All Commands) along with CVAR to toggle it
    	+ Added ConVar change notification
    	+ Added IsValidClient check in OnClientSayCommand_Post
    	+ Added client index check in the ForwardToClient function
    	+ Added a fallback when the client disconnects abnormally (Typically on clients using Android M Doze feature or Airplane Mode)
    		NOTE to myself: You should probably implement heartbeat. Probably.
    	* Minor code change in attempt to comply with the 1.7 syntax.
    	* Buffer size optimization
    	* Upped short size to 256, still a bad practice I know. Still no idea how to make it adapt to the client's IP.
    
    	v1.0.4rel
    	+ Added player death notification
    	+ Added CVARs to choose whether or not to forward connection / disconnection message
    	+ Added Steam ID info upon connection
    	* Changed OnClientConnected to OnClientAuthorized in order to obtain Steam ID info
    	* Minor ForwardToClient optimization
    	* Changed char out size to MAX_BUFFER_LENGTH
    	- Removed unused error messages, for now
    
    	v1.0.3rel
    	* Fixed callback not executable error
    	* Added GetTeamName function to get rid of the shitty hardcoded team name code
    Screenshots:
    __________________

    Last edited by 341464; 05-25-2016 at 14:32. Reason: Plugin updates
    341464 is offline
    Send a message via Skype™ to 341464
    nguyenbaodanh
    AlliedModders Donor
    Join Date: Jun 2007
    Location: HCMC, Vietnam
    Old 05-22-2016 , 22:39   Re: [ANY] CheckValve Chat Relay Plugin
    Reply With Quote #2

    cool ! gonna try this
    __________________
    nguyenbaodanh is offline
    Lucky_luck
    AlliedModders Donor
    Join Date: May 2011
    Location: Germany
    Old 05-23-2016 , 09:12   Re: [ANY] CheckValve Chat Relay Plugin
    Reply With Quote #3

    It comes also for IOS?
    Lucky_luck is offline
    341464
    Senior Member
    Join Date: Dec 2010
    Location: GetClientEyePosition
    Old 05-23-2016 , 21:10   Re: [ANY] CheckValve Chat Relay Plugin
    Reply With Quote #4

    Quote:
    Originally Posted by Lucky_luck View Post
    It comes also for IOS?
    AFAIK, this is only available on Android.
    __________________
    341464 is offline
    Send a message via Skype™ to 341464
    341464
    Senior Member
    Join Date: Dec 2010
    Location: GetClientEyePosition
    Old 05-25-2016 , 14:28   Re: [ANY] CheckValve Chat Relay Plugin (Remote Chat View) [5/26/16, v1.0.8]
    Reply With Quote #5

    1.0.8 update is live.

    Code:
    	v1.0.8rel
    	+ Added port check between 27000 to 27050, the ports are reserved for Source games in general.
    	+ Added a status command, along with override 'sm_checkvalve_admin', default permission is ADMFLAG_RCON.
    	* Minor message changes.
    	* Fixed RemoveArray stuff.
    __________________
    341464 is offline
    Send a message via Skype™ to 341464
    d_a_parker
    Junior Member
    Join Date: Aug 2009
    Location: Utica, NY (USA)
    Old 06-07-2016 , 12:02   Re: [ANY] CheckValve Chat Relay (Mobile Chat Viewer) [5/26/16, v1.0.8]
    Reply With Quote #6

    This plugin is really great. I have posted links to this thread on the CheckValve website and also in the CheckValve Google Group, so hopefully more people will know about it if they decide to install a Chat Relay.

    Thanks!
    d_a_parker is offline
    Gumiland
    Member
    Join Date: Jun 2016
    Old 06-21-2016 , 01:37   Re: [ANY] CheckValve Chat Relay (Mobile Chat Viewer) [5/26/16, v1.0.8]
    Reply With Quote #7

    How do I Set the chat relay password? also, tf2\Dedicated\tf\cfg\sourcemod there is no "'sm_checkvalve_admin"

    EDIT: getting this in console
    please help.
    L 06/20/2016 - 21:42:05: [SM] Unable to load plugin "chatrelay.smx": Native "Ste
    amWorks_GetPublicIP" was not found

    if I could just get a zip of everything steamworks, that'd be great. cus when I download it from the sm page, I only get 3 dll's in a bin folder.
    __________________

    Last edited by Gumiland; 06-21-2016 at 01:46.
    Gumiland is offline
    d_a_parker
    Junior Member
    Join Date: Aug 2009
    Location: Utica, NY (USA)
    Old 06-21-2016 , 12:35   Re: [ANY] CheckValve Chat Relay (Mobile Chat Viewer) [5/26/16, v1.0.8]
    Reply With Quote #8

    For SteamWorks, you need to download the SM extension (not just the client libraries, which is what you have). Go to this page and choose the most recent build for your OS:

    http://users.alliedmods.net/~kyles/builds/SteamWorks/

    Extract the files into your addons folder and restart the server. Please note that you'll need the sockets extension for SM as well.

    To change the password and other settings for the Chat Relay plugin, edit the cfg\sourcemod\CheckValve.ChatRelay.cfg file.

    Hope this helps!
    d_a_parker is offline
    lambdaGrunt
    Junior Member
    Join Date: Jul 2016
    Old 04-06-2017 , 23:59   Re: [ANY] CheckValve Chat Relay (Mobile Chat Viewer) [5/26/16, v1.0.8]
    Reply With Quote #9

    Will this work with Half Life 1 ?
    lambdaGrunt is offline
    d_a_parker
    Junior Member
    Join Date: Aug 2009
    Location: Utica, NY (USA)
    Old 04-07-2017 , 23:40   Re: [ANY] CheckValve Chat Relay (Mobile Chat Viewer) [5/26/16, v1.0.8]
    Reply With Quote #10

    I don't think the plugin will work unless the game can run SourceMod. The standalone Chat Relay might work, though. I haven't tested it with HL1, but it works with CS 1.6 and other GoldSrc games.

    https://sites.google.com/site/checkvalveapp/chatrelay
    d_a_parker is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 23:40.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode