Raised This Month: $7 Target: $400
 1% 

MatterAMXX: Chat relay between many services [Includes API]


Post New Thread Reply   
 
Thread Tools Display Modes
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 08-01-2020 , 10:15   Re: MatterAMXX: Chat relay between many services [Includes API]
Reply With Quote #21

Quote:
Originally Posted by Gabe Iggy View Post
[ALL] MatterAMXX Plugins

The MatterAMXX API allow plugin creators to capture and send messages via MatterAMXX, you can see the plugin in action in the following plugins!

MatterAMXX Lag Checker


This plugin will notify a configured user if the CPU/FPS increase/fall past/below a defined threshold. Triggered if someone says "lag" on the server.

If the user says "lag" and the server is not lagging he will be notified along with the FPS and CPU values.

Requirements:
Console Variables:
  • amx_matter_lagchecker_enabled
    Enables the plugin.
    Default 1.
  • amx_matter_lagchecker_ping_this_person
    Determines the person/s who should be pinged on alert.
    Should be a pingable string, for example "@username" for Telegram or "<@12345678910>" for Discord ID.
    Default [blank string].
  • amx_matter_lagchecker_cpu_threshold
    If the CPU goes over this percentage, an alert should be sent.
    Default 75.
  • amx_matter_lagchecker_fps_threshold
    If the FPS goes below this percentage (based on sys_ticrate), an alert should be sent..
    Default 25.

Changelog:
  • 1.4
    • Initial Release

MatterAMXX RCON

Control the server from anywhere.

This plugin will allow you to control the server's console from any messaging protocol, with full console output.

You can configure which users are allowed to send commands to the server console.

Requirements:
Configuration:

By default the plugin won't accept commands from any user, to do so you need to edit the matteramxx_rcon_accounts.ini file in your AMXX config folder.
Code:
; Add all accounts to have access to Matteramxx RCON
; Any account not on this list will be denied from executing commands
;
; Syntax: username§protocol

;Gabe Iggy#9999§discord
The format is username§protocol. Both are required to disallow impersonation.

Console Variables:
  • amx_matter_rcon_enable
    Enables the plugin.
    Default 1.
  • amx_matter_rcon_dont_ignore_list
    Determines if the plugin should NOT ignore the master account list and accept commands from any user
    Dangerous! A badly configured bridge will allow to anyone to get access to the game console. Set it to 1 unless you really know what are you doing.
    Default 1.
  • amx_matter_rcon_prefix
    The bot prefix to send commands to the console
    Default "!rcon "
  • amx_matter_rcon_hide_cvars
    Determines if the plugin should redact protected cvars. (like rcon_password)
    Default 1.
  • amx_matter_rcon_hide_ips
    Determines if the plugin should redact IPs.
    Default 1.
  • amx_matter_rcon_code_block
    Determines if the plugin should send the output in a code block
    Note that not every protocol supports this feature
    Default 1.

Changelog:
  • 1.4
    • Initial Release

Installation instructions
  • Download all requirements, plus the .sma file.
  • Place include files, in the /scripting/includes directory.
  • Compile the plugin and install the newly generated .amxx files. (Remember to install the latest version of MatterAMXX in your server)
most people nowdays use rehlds, so we can`t use Orpheu, can you make one version for rehlds?
tarsisd2 is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 08-03-2020 , 17:28   Re: MatterAMXX: Chat relay between many services [Includes API]
Reply With Quote #22

Quote:
Originally Posted by MaNaReaver View Post
Yeah, the matterbridge.toml and executable are accessable through the web, but the same error message pops up. I've changed the BindAddress to 0.0.0.0:27010 and 27020. My gateway name's cstrike, and my bridge is set to http://<IP excluding Port>/<Directory of MatterBridge>/ .
I added you to Steam but it seems our timezones do not match as I always find you offline.

I noticed your bridge is set to http://<IP excluding Port>/<Directory of MatterBridge>/, are you reffering to the cvar amx_matter_bridge_url? It must in be http://<IP including Port>. There's an example in the default value.
Code:
g_cvarBridgeUrl = register_cvar("amx_matter_bridge_url", "http://localhost:1337", FCVAR_PROTECTED);

Quote:
Originally Posted by tarsisd2 View Post
most people nowdays use rehlds, so we can`t use Orpheu, can you make one version for rehlds?
Hello, my main Setup uses ReHLDS and all the plugins work. You can check the "ReHLDS" branch of OrpheuSignatures.
https://github.com/GabeIggy/OrpheuSi...es/tree/ReHLDS
__________________

Last edited by gabuch2; 08-03-2020 at 17:28.
gabuch2 is offline
MaNaReaver
Member
Join Date: Apr 2020
Location: India
Old 08-08-2020 , 06:43   Re: MatterAMXX: Chat relay between many services [Includes API]
Reply With Quote #23

Quote:
Originally Posted by Gabe Iggy View Post
I added you to Steam but it seems our timezones do not match as I always find you offline.

I noticed your bridge is set to http://<IP excluding Port>/<Directory of MatterBridge>/, are you reffering to the cvar amx_matter_bridge_url? It must in be http://<IP including Port>. There's an example in the default value.
Code:
g_cvarBridgeUrl = register_cvar("amx_matter_bridge_url", "http://localhost:1337", FCVAR_PROTECTED);



Hello, my main Setup uses ReHLDS and all the plugins work. You can check the "ReHLDS" branch of OrpheuSignatures.
https://github.com/GabeIggy/OrpheuSi...es/tree/ReHLDS
Hey Gabe, my servers are currently down, and I was working on getting them back. I'll get in touch as soon as things get better. Thanks for helping out again
__________________
MaNaReaver is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 08-17-2020 , 11:24   Re: MatterAMXX: Chat relay between many services [Includes API]
Reply With Quote #24

I can't get pass the matterbridge install. I am running debian linux and used snap to install matterbridge, but the instructions go cold after not sure what to do from there. Any idea where it installed as I can't issue the start up commands

Quote:
user@:~# ./matterbridge/matterbridge.toml
-bash: ./matterbridge/matterbridge.toml: No such file or directory

Last edited by iclassdon; 08-17-2020 at 11:27.
iclassdon is offline
Send a message via MSN to iclassdon
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 08-17-2020 , 13:00   Re: MatterAMXX: Chat relay between many services [Includes API]
Reply With Quote #25

Quote:
Originally Posted by iclassdon View Post
I can't get pass the matterbridge install. I am running debian linux and used snap to install matterbridge, but the instructions go cold after not sure what to do from there. Any idea where it installed as I can't issue the start up commands
.toml is the configuration file, you need to run the executable file.

Easier way to do it is to download the binary file for your OS (assuming it's 64-bit Linux)
Code:
wget https://github.com/42wim/matterbridge/releases/download/v1.18.0/matterbridge-1.18.0-linux-64bit
Making it executable
Code:
chmod +x ./matterbridge-1.18.0-linux-64bit
Then running it
Code:
./matterbridge-1.18.0-linux-64bit
__________________
gabuch2 is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 08-17-2020 , 15:48   Re: MatterAMXX: Chat relay between many services [Includes API]
Reply With Quote #26

Thanks.

I got my matterbridge install going. I can't get the module loaded on amxmodx 1.9.

It's placed in the addons/amxmodx/modules folder but it wont auto load. I have also placed the word grip inside the modules.ini and rebooted the server it still won't load.

Quote:
( 43) Load fails: Module/Library "grip" required for plugin. Check modules.ini.

Last edited by iclassdon; 08-17-2020 at 15:51.
iclassdon is offline
Send a message via MSN to iclassdon
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 08-17-2020 , 16:31   Re: MatterAMXX: Chat relay between many services [Includes API]
Reply With Quote #27

Which version of gRIP are you using? For some reason, the repo owner marked a 0.0.0 "test" version as latest release, this doesn't work.

Last stable release is 0.1.5 which you can download here:
https://github.com/In-line/grip/releases/tag/0.1.5-beta
__________________
gabuch2 is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 08-17-2020 , 17:12   Re: MatterAMXX: Chat relay between many services [Includes API]
Reply With Quote #28

Was using "grip-0.0.0.0-test-i686-unknown-linux-gnu". It loads now with the newer version you linked.

I get the message below in my console. I have also pasted my matterbridge.toml config. The bot is connect to irc but it's not relaying chat. Is there something wrong in my config?

PHP Code:
[MatterAMXXConnection failed.
[
MatterAMXXRetrying in 3 seconds...
L 08/17/2020 17:08:16: [gRIPErrorFFI ErrorError/Cancellation/Timeout occurred for this response.

L 08/17/2020 17:08:16: [AMXXDisplaying debug trace (plugin "matteramxx.amxx"version "1.4")
L 08/17/2020 17:08:16: [AMXXRun time error 10native error (native "grip_get_response_body_string")
L 08/17/2020 17:08:16: [AMXX]    [0matteramxx.sma::incoming_message (line 302
PHP Code:
[api.myserver]
BindAddress="x.x.x.x:1337"
Token="verysecrettoken"
Buffer=1000
RemoteNickFormat
="{NAS}"

[irc]
    [
irc.xxxxxxm]
    
Server="irc.xxxxxxm.com:6667"
    
Nick="NASGamers"

[[gateway]]
name="cstrike"
enable=true

[[gateway.inout]]
account="irc.xxxxxxn"
channel="#nasgamers"

[[gateway.inout]]
account="api.myserver"
channel="api" 
Quote:
[MatterAMXX Debug] Message "wow" was sent.
[MatterAMXX Debug] Preparing gJson object.
[MatterAMXX Debug] id is 5.
[MatterAMXX Debug] Fullname is NAS | WaRRioR.
[MatterAMXX Debug] Steam ID is 765612134123141.
[MatterAMXX Debug] Steam ID is from a player.
[MatterAMXX Debug] User is authenticated.
[MatterAMXX Debug] Resulting avatar URL is .
[MatterAMXX Debug] I'm going to send the message.
L 08/17/2020 - 17:41:03: [gRIP] Error: FFI Error: URI parsing error: http/api/message
Caused by: relative URL without a base

L 08/17/2020 - 17:41:03: [AMXX] Displaying debug trace (plugin "matteramxx.amxx", version "1.4")
L 08/17/2020 - 17:41:03: [AMXX] Run time error 10: native error (native "grip_request")
L 08/17/2020 - 17:41:03: [AMXX] [0] matteramxx.sma::send_message_rest (line 541)
L 08/17/2020 - 17:41:03: [AMXX] [1] matteramxx.sma::say_message (line 471)

L 08/17/2020 - 17:42:00: [gRIP] Error: FFI Error: URI parsing error: http/api/message
Caused by: relative URL without a base

L 08/17/2020 - 17:42:00: [AMXX] Displaying debug trace (plugin "matteramxx.amxx", version "1.4")
L 08/17/2020 - 17:42:00: [AMXX] Run time error 10: native error (native "grip_request")
L 08/17/2020 - 17:42:00: [AMXX] [0] matteramxx.sma::send_message_rest (line 541)
L 08/17/2020 - 17:42:00: [AMXX] [1] matteramxx.sma::player_killed (line 520)



Last edited by iclassdon; 08-17-2020 at 20:31.
iclassdon is offline
Send a message via MSN to iclassdon
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 08-17-2020 , 18:19   Re: MatterAMXX: Chat relay between many services [Includes API]
Reply With Quote #29

What's the value of your amx_matter_bridge_url cvar?
__________________
gabuch2 is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 08-17-2020 , 20:32   Re: MatterAMXX: Chat relay between many services [Includes API]
Reply With Quote #30

Quote:
Originally Posted by Gabe Iggy View Post
What's the value of your amx_matter_bridge_url cvar?
my ip and port:1337.

Matterbridge is also launched on port 1337.

Is apache required for this to work?

-update

I also tried with port 27015 and cross referenced the config you posted here. No luck in getting it going.

current cvar:
"amx_matter_bridge_url" is "http://localhost:27015"

Last edited by iclassdon; 08-17-2020 at 20:57.
iclassdon is offline
Send a message via MSN to iclassdon
Reply


Thread Tools
Display Modes

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 04:35.


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