AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Communication between two servers (https://forums.alliedmods.net/showthread.php?t=326336)

gabuch2 07-30-2020 09:49

Re: Communication between two servers
 
Quote:

Originally Posted by MaNaReaver (Post 2712300)
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.

MaNaReaver 07-30-2020 12:48

Re: Communication between two servers
 
Quote:

Originally Posted by Gabe Iggy (Post 2712359)
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?

gabuch2 07-30-2020 12:56

Re: Communication between two servers
 
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.

MaNaReaver 07-30-2020 13:44

Re: Communication between two servers
 
Quote:

Originally Posted by Gabe Iggy (Post 2712382)
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.

gabuch2 07-30-2020 14:04

Re: Communication between two servers
 
I will continue the conversation here.

DruGzOG 07-31-2020 13:21

Re: Communication between two servers
 
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

HamletEagle 07-31-2020 13:39

Re: Communication between two servers
 
Quote:

Originally Posted by DruGzOG (Post 2712532)
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.

DruGzOG 08-03-2020 21:43

Re: Communication between two servers
 
Quote:

Originally Posted by HamletEagle (Post 2712537)
"#include <sockets>"
Read the topic.

I've had no issues with sockets and reHLDS. Been running it for the past few months.


All times are GMT -4. The time now is 17:50.

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