Raised This Month: $18 Target: $400
 4% 

Communication between two servers


Post New Thread Reply   
 
Thread Tools Display Modes
Gabe Iggy
Veteran Member
Join Date: Mar 2011
Location: Chile
Old 07-30-2020 , 09:49   Re: Communication between two servers
Reply With Quote #11

Quote:
Originally Posted by MaNaReaver View Post
Hey Iggy, I'm unsure on how to install gRIP for Counter-Strike, as there's not much information on it. Could you guide me through it? Also, where should the matterbridge.toml file be placed? Thanks!
You can get the latest version of gRIP here. (don't download the 0.0.0.0 version, which is for some reason marked as the latest release, it's probably a test version that doesn't work.)

Once you download MatterBridge you need to configure the bridges and gateways in the matterbridge.toml file (this file needs to be in the same directory as the MatterBridge executable)

Example of matterbridge.toml on your case use:
PHP Code:
[api.server1]
BindAddress="0.0.0.0:1337"
Token="verysecrettoken"
Buffer=1000
RemoteNickFormat
="{NICK}"

[api.server2]
BindAddress="0.0.0.0:1338"
Token="verysecrettoken"
Buffer=1000
RemoteNickFormat
="{NICK}"

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

[[gateway.inout]]
account="api.server1"
channel="api" 

[[gateway.inout]]
account="api.server2"
channel="api" 
Then configure your servers to point to the IP where MatterBridge is running.
__________________

Last edited by Gabe Iggy; 07-30-2020 at 12:53.
Gabe Iggy is offline
MaNaReaver
Member
Join Date: Apr 2020
Location: India
Old 07-30-2020 , 12:48   Re: Communication between two servers
Reply With Quote #12

Quote:
Originally Posted by Gabe Iggy View Post
You can get the latest version of gRIP here. (don't download the 0.0.0.0 version, which is for some reason marked as the latest release, it's probably a test version that doesn't work.)

Once you download MatterBridge you need to configure the bridges and gateways in the matterbridge.toml file (this file needs to be in the same directory as the MatterBridge executable)

Example of matterbridge.toml on your case use:
PHP Code:
[api.server1]
BindAddress="0.0.0.0:1337"
Token="verysecrettoken"
Buffer=1000
RemoteNickFormat
="{NICK}"

[api.server1]
BindAddress="0.0.0.0:1338"
Token="verysecrettoken"
Buffer=1000
RemoteNickFormat
="{NICK}"

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

[[gateway.inout]]
account="api.server1"
channel="api" 

[[gateway.inout]]
account="api.server2"
channel="api" 
Then configure your servers to point to the IP where MatterBridge is running.
Thanks everyone. I was unsure as to how I should install it, in terms of, should I just extract the files somewhere, or should I compile/build them using sudo apt-get install. Also, I installed MatterBridge using snap, and the folder's in snap/MatterBridge/id. Should I have the file in the snap, bin or meta folder?
__________________
MaNaReaver is offline
Gabe Iggy
Veteran Member
Join Date: Mar 2011
Location: Chile
Old 07-30-2020 , 12:56   Re: Communication between two servers
Reply With Quote #13

All my tests were done by downloading the executable itself.

https://github.com/42wim/matterbridg...es/tag/v1.18.0

In my case I used matterbridge-1.18.0-linux-64bit, it's just a single file so there's no need to use a package manager.
__________________
Gabe Iggy is offline
Old 07-30-2020, 13:02
MaNaReaver
This message has been deleted by MaNaReaver. Reason: Damn, I was looking at the source code zip.
MaNaReaver
Member
Join Date: Apr 2020
Location: India
Old 07-30-2020 , 13:44   Re: Communication between two servers
Reply With Quote #14

Quote:
Originally Posted by Gabe Iggy View Post
All my tests were done by downloading the executable itself.

https://github.com/42wim/matterbridg...es/tag/v1.18.0

In my case I used matterbridge-1.18.0-linux-64bit, it's just a single file so there's no need to use a package manager.
So, I put the executable and .toml file in a folder, and added gRIP module. I also compiled matteramxx, but the relay isn't happening. Also, what do I need to have in amx_matter_bridge_url? Should it be my server url or something else?

This is my toml file:

Code:
[api.myserver1]
BindAddress="35.200.152.63:27010"
Token="token"
Buffer=1000
RemoteNickFormat="{NICK}"

[api.myserver2]
BindAddress="35.200.152.63:27020"
Token="token"
Buffer=1000
RemoteNickFormat="{NICK}"

[discord]
[discord.mydiscord]
Token="token"
Server="server-id"
#Server="Crimson Demons Multimod"
WebhookURL="webhookurl"

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

[[gateway.inout]]
account="discord.mydiscord"
channel="discussion"

[[gateway.inout]]
account="api.myserver1"
channel="api"

[[gateway.inout]]
account="api.myserver2"
channel="api"
Best regards.
__________________
MaNaReaver is offline
Gabe Iggy
Veteran Member
Join Date: Mar 2011
Location: Chile
Old 07-30-2020 , 14:04   Re: Communication between two servers
Reply With Quote #15

I will continue the conversation here.
__________________
Gabe Iggy is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 07-31-2020 , 13:21   Re: Communication between two servers
Reply With Quote #16

if MatterAMXX is difficult for you to use, here's something I have been using for a while now:
https://forums.alliedmods.net/showthread.php?t=318610
__________________

Home of the AMX SUPER
Discord
DruGzOG is offline
Send a message via AIM to DruGzOG
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-31-2020 , 13:39   Re: Communication between two servers
Reply With Quote #17

Quote:
Originally Posted by DruGzOG View Post
if MatterAMXX is difficult for you to use, here's something I have been using for a while now:
https://forums.alliedmods.net/showthread.php?t=318610
"#include <sockets>"
Read the topic.
__________________
HamletEagle is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 08-03-2020 , 21:43   Re: Communication between two servers
Reply With Quote #18

Quote:
Originally Posted by HamletEagle View Post
"#include <sockets>"
Read the topic.
I've had no issues with sockets and reHLDS. Been running it for the past few months.
__________________

Home of the AMX SUPER
Discord
DruGzOG is offline
Send a message via AIM to DruGzOG
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 14:27.


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